/* ================================================================
   GSCG Cookie Consent Banner
   Brandbook: Navy #001648 background + White text + Orange #EB7400 CTA
   GDPR Art.7 + 152-FZ st.9 compliant
   ================================================================ */

.gscg-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  background: #001648;
  color: #FFFFFF;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.18);
  font-family: 'Golos Text', system-ui, sans-serif;
  font-size: 0.9375rem;
  line-height: 1.5;
  transform: translateY(100%);
  transition: transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.gscg-consent--visible {
  transform: translateY(0);
}

.gscg-consent__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: center;
}

@media (max-width: 720px) {
  .gscg-consent__inner {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.gscg-consent__text {
  margin: 0;
}

.gscg-consent__text a {
  color: #EB7400;
  text-decoration: underline;
}

.gscg-consent__text a:hover {
  text-decoration: none;
}

.gscg-consent__actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.gscg-consent__btn {
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.625rem 1.125rem;
  border: 1.5px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
  min-height: 44px;
  min-width: 44px;
}

.gscg-consent__btn--accept {
  background: #EB7400;
  color: #FFFFFF;
  border-color: #EB7400;
}

.gscg-consent__btn--accept:hover {
  background: #C26200;
  border-color: #C26200;
}

.gscg-consent__btn--necessary {
  background: transparent;
  color: #FFFFFF;
  border-color: #FFFFFF;
}

.gscg-consent__btn--necessary:hover {
  background: rgba(255, 255, 255, 0.08);
}

.gscg-consent__btn--settings {
  background: transparent;
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.4);
}

.gscg-consent__btn--settings:hover {
  border-color: #FFFFFF;
  background: rgba(255, 255, 255, 0.08);
}

.gscg-consent__btn:focus-visible {
  outline: 2px solid #EB7400;
  outline-offset: 2px;
}

/* Settings modal */
.gscg-consent-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 22, 72, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.gscg-consent-modal[aria-hidden="false"] {
  display: flex;
}

.gscg-consent-modal__dialog {
  background: #FFFFFF;
  color: #001648;
  border-radius: 8px;
  max-width: 560px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 2rem;
  font-family: 'Golos Text', system-ui, sans-serif;
}

.gscg-consent-modal__title {
  margin: 0 0 1rem 0;
  font-size: 1.25rem;
  font-weight: 700;
}

.gscg-consent-modal__category {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(0, 22, 72, 0.12);
}

.gscg-consent-modal__category:last-of-type {
  border-bottom: none;
}

.gscg-consent-modal__category-info {
  flex: 1;
}

.gscg-consent-modal__category-title {
  margin: 0 0 0.25rem 0;
  font-size: 1rem;
  font-weight: 600;
}

.gscg-consent-modal__category-desc {
  margin: 0;
  font-size: 0.875rem;
  color: rgba(0, 22, 72, 0.7);
}

.gscg-consent-modal__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.gscg-consent-modal__toggle input[type="checkbox"] {
  width: 44px;
  height: 24px;
  cursor: pointer;
}

.gscg-consent-modal__toggle--required {
  opacity: 0.5;
  cursor: not-allowed;
}

.gscg-consent-modal__footer {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.5rem;
  justify-content: flex-end;
}

.gscg-consent-modal__btn {
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.625rem 1.125rem;
  border-radius: 6px;
  cursor: pointer;
  border: 1.5px solid transparent;
  min-height: 44px;
}

.gscg-consent-modal__btn--save {
  background: #EB7400;
  color: #FFFFFF;
}

.gscg-consent-modal__btn--save:hover {
  background: #C26200;
}

.gscg-consent-modal__btn--cancel {
  background: transparent;
  color: #001648;
  border-color: #001648;
}

.gscg-consent-modal__btn--cancel:hover {
  background: rgba(0, 22, 72, 0.06);
}

.gscg-consent-modal__btn:focus-visible {
  outline: 2px solid #EB7400;
  outline-offset: 2px;
}
