.cookie-consent {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  left: auto;
  z-index: 1900;
  width: min(100% - 2rem, 680px);
  padding: clamp(1rem, 2.5vw, 1.35rem);
  color: var(--color-text, #172033);
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(0, 59, 115, 0.14);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0, 35, 68, 0.18);
}

.cookie-consent-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: end;
}

.cookie-consent-preferences {
  display: grid;
  gap: 1rem;
}

.cookie-consent-content {
  display: grid;
  gap: 0.45rem;
}

.cookie-consent-kicker {
  color: var(--color-orange, #f58220);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cookie-consent h2 {
  margin: 0;
  color: var(--color-blue-dark, #002b52);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.2;
}

.cookie-consent p {
  max-width: 56rem;
  color: var(--color-muted, #6b7280);
  font-size: 0.94rem;
  line-height: 1.55;
}

.cookie-consent-link,
.footer-cookie-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(245, 130, 32, 0.5);
  text-underline-offset: 0.18em;
}

.cookie-consent-link {
  width: max-content;
  color: var(--color-blue, #003b73);
  font-weight: 700;
  font-size: 0.9rem;
}

.cookie-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: flex-end;
}

.cookie-consent-btn {
  min-height: 42px;
  padding: 0.62rem 0.9rem;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 760;
  line-height: 1;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.cookie-consent-btn:hover,
.cookie-consent-btn:focus-visible {
  transform: translateY(-1px);
}

.cookie-consent-btn-primary {
  color: #ffffff;
  background: var(--color-blue, #003b73);
  border-color: var(--color-blue, #003b73);
}

.cookie-consent-btn-primary:hover,
.cookie-consent-btn-primary:focus-visible {
  background: var(--color-blue-dark, #002b52);
  border-color: var(--color-blue-dark, #002b52);
}

.cookie-consent-btn-secondary {
  color: var(--color-blue, #003b73);
  background: #ffffff;
  border-color: rgba(0, 59, 115, 0.24);
}

.cookie-consent-btn-secondary:hover,
.cookie-consent-btn-secondary:focus-visible,
.cookie-consent-btn-light:hover,
.cookie-consent-btn-light:focus-visible {
  border-color: rgba(245, 130, 32, 0.45);
}

.cookie-consent-btn-light {
  color: var(--color-blue, #003b73);
  background: rgba(0, 59, 115, 0.06);
  border-color: rgba(0, 59, 115, 0.08);
}

.cookie-consent-options {
  display: grid;
  gap: 0.7rem;
}

.cookie-consent-toggle {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 0.85rem;
  background: rgba(245, 247, 250, 0.86);
  border: 1px solid rgba(0, 59, 115, 0.12);
  border-radius: 8px;
}

.cookie-consent-toggle-text {
  display: grid;
  gap: 0.18rem;
}

.cookie-consent-toggle strong {
  color: var(--color-blue-dark, #002b52);
  font-size: 0.95rem;
}

.cookie-consent-toggle small {
  color: var(--color-muted, #6b7280);
  font-size: 0.83rem;
  line-height: 1.45;
}

.cookie-consent-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.cookie-consent-switch {
  position: relative;
  width: 48px;
  height: 28px;
  background: #d8e0e8;
  border-radius: 999px;
  transition: background-color 0.2s ease;
}

.cookie-consent-switch::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 20px;
  height: 20px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 35, 68, 0.22);
  transition: transform 0.2s ease;
}

.cookie-consent-toggle input:checked + .cookie-consent-switch {
  background: var(--color-orange, #f58220);
}

.cookie-consent-toggle input:checked + .cookie-consent-switch::after {
  transform: translateX(20px);
}

.cookie-consent-toggle input:focus-visible + .cookie-consent-switch {
  outline: 3px solid rgba(245, 130, 32, 0.4);
  outline-offset: 3px;
}

.cookie-consent-toggle input:disabled + .cookie-consent-switch {
  opacity: 0.72;
}

@media (max-width: 760px) {
  .cookie-consent {
    right: 1rem;
    bottom: calc(1rem + 72px);
    left: 1rem;
    width: auto;
  }

  .cookie-consent-banner {
    grid-template-columns: 1fr;
  }

  .cookie-consent-actions {
    justify-content: stretch;
  }

  .cookie-consent-btn {
    flex: 1 1 120px;
  }
}
