.cookie-consent-manage {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 120;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.8rem 1rem;
  border: 0;
  border-radius: 999px;
  background: #0d3246;
  color: #ffffff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 18px 40px rgba(17, 38, 60, 0.24);
}

.cookie-consent-manage:hover,
.cookie-consent-manage:focus-visible {
  background: #0f7c82;
  outline: none;
}

.cookie-consent {
  position: fixed;
  inset: auto 1rem 1rem 1rem;
  z-index: 130;
}

.cookie-consent[hidden] {
  display: none !important;
}

.cookie-consent__panel {
  width: min(920px, 100%);
  margin: 0 auto;
  padding: 1.2rem;
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(255, 118, 88, 0.18), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 251, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.84);
  box-shadow:
    0 26px 70px rgba(17, 38, 60, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
  color: #13273d;
}

.cookie-consent__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.8rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(15, 124, 130, 0.08);
  color: #0d3246;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cookie-consent__eyebrow::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #0f7c82, #ff7658);
}

.cookie-consent__title {
  margin: 0;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.9rem, 4vw, 2.5rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.cookie-consent__text,
.cookie-consent__footnote,
.cookie-consent__option-copy,
.cookie-consent__option-state {
  color: #4d6173;
  line-height: 1.7;
}

.cookie-consent__text {
  margin: 0.85rem 0 0;
}

.cookie-consent__options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1rem;
}

.cookie-consent__option {
  display: grid;
  gap: 0.65rem;
  padding: 1rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(19, 39, 61, 0.1);
}

.cookie-consent__option-head {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: flex-start;
}

.cookie-consent__option-title {
  margin: 0;
  font-size: 1rem;
}

.cookie-consent__option-copy {
  margin: 0;
  font-size: 0.94rem;
}

.cookie-consent__option-state {
  font-size: 0.88rem;
  font-weight: 700;
}

.cookie-consent__toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 54px;
  height: 32px;
  flex-shrink: 0;
}

.cookie-consent__toggle input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.cookie-consent__toggle-track {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  background: rgba(19, 39, 61, 0.18);
  transition: background-color 0.2s ease;
}

.cookie-consent__toggle-track::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(17, 38, 60, 0.16);
  transition: transform 0.2s ease;
}

.cookie-consent__toggle input:checked + .cookie-consent__toggle-track {
  background: #0f7c82;
}

.cookie-consent__toggle input:checked + .cookie-consent__toggle-track::after {
  transform: translateX(22px);
}

.cookie-consent__toggle input:focus-visible + .cookie-consent__toggle-track {
  outline: 2px solid rgba(15, 124, 130, 0.45);
  outline-offset: 2px;
}

.cookie-consent__badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  background: rgba(15, 124, 130, 0.08);
  border: 1px solid rgba(15, 124, 130, 0.14);
  color: #0d3246;
  font-size: 0.85rem;
  font-weight: 700;
}

.cookie-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.cookie-consent__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.cookie-consent__button--primary {
  background: #0d3246;
  color: #ffffff;
}

.cookie-consent__button--secondary {
  background: rgba(15, 124, 130, 0.08);
  border-color: rgba(15, 124, 130, 0.18);
  color: #0d3246;
}

.cookie-consent__button--ghost {
  background: transparent;
  border-color: rgba(19, 39, 61, 0.12);
  color: #4d6173;
}

.cookie-consent__button:hover,
.cookie-consent__button:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.cookie-consent__footnote {
  margin: 0.9rem 0 0;
  font-size: 0.92rem;
}

.cookie-consent__footnote a {
  color: #0d3246;
  font-weight: 700;
}

@media (max-width: 900px) {
  .cookie-consent__options {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .cookie-consent {
    inset: auto 0.75rem 0.75rem 0.75rem;
  }

  .cookie-consent__panel {
    padding: 1rem;
    border-radius: 24px;
  }

  .cookie-consent__actions {
    flex-direction: column;
  }

  .cookie-consent__button,
  .cookie-consent-manage {
    width: 100%;
  }

  .cookie-consent-manage {
    right: 0.75rem;
    left: 0.75rem;
    bottom: 0.75rem;
  }
}
