/* Site-wide cookie consent manager */
.cookie-consent[hidden],
.cookie-consent [hidden],
.cookie-settings-button[hidden] {
  display: none !important;
}

.cookie-consent {
  position: fixed;
  inset: 0;
  z-index: 10000;
  color: #17252a;
  font-family: Inter, Arial, sans-serif;
}

.cookie-consent__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 22, 27, .52);
  opacity: 0;
  transition: opacity .25s ease;
}

.cookie-consent__panel {
  position: relative;
  width: 100%;
  max-height: min(90vh, 850px);
  overflow-y: auto;
  background: #fff;
  border-bottom: 5px solid #2d9a92;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .22);
  transform: translateY(-105%);
  transition: transform .28s ease;
  outline: none;
}

.cookie-consent.is-visible .cookie-consent__backdrop { opacity: 1; }
.cookie-consent.is-visible .cookie-consent__panel { transform: translateY(0); }

.cookie-consent__inner {
  position: relative;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 30px 0 28px;
}

.cookie-consent__close {
  position: absolute;
  top: 14px;
  right: 0;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: #eef6f6;
  color: #185f5a;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.cookie-consent__intro { padding-right: 58px; }

.cookie-consent__eyebrow {
  margin: 0 0 7px;
  color: #247e77;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.cookie-consent h2 {
  margin: 0 0 10px;
  color: #102e34;
  font-size: clamp(1.5rem, 3vw, 2.35rem);
  line-height: 1.15;
}

.cookie-consent__intro > p:not(.cookie-consent__eyebrow) {
  max-width: 940px;
  margin: 0 0 8px;
  line-height: 1.6;
}

.cookie-consent__small,
.cookie-consent__notice {
  color: #526267;
  font-size: .88rem;
}

.cookie-consent a { color: #176b65; text-decoration: underline; }

.cookie-consent__actions,
.cookie-consent__save-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.cookie-button,
.cookie-text-button,
.cookie-settings-button {
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

.cookie-button {
  min-height: 46px;
  padding: 10px 22px;
  border: 2px solid #2d9a92;
  border-radius: 8px;
}

.cookie-button--accept { background: #2d9a92; color: #fff; }
.cookie-button--reject { background: #fff; color: #185f5a; }
.cookie-button--manage { background: #e9f4f4; color: #153e42; border-color: #b8d8d6; }
.cookie-button:hover { filter: brightness(.96); transform: translateY(-1px); }

.cookie-consent__manager {
  margin-top: 24px;
  border-top: 1px solid #d9e5e5;
  padding-top: 14px;
}

.cookie-category {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  padding: 16px 4px;
  border-bottom: 1px solid #e4ecec;
}

label.cookie-category { cursor: pointer; }
.cookie-category h3,
.cookie-active h3 { margin: 0 0 4px; font-size: 1rem; }
.cookie-category p,
.cookie-active p { margin: 0; color: #58686c; font-size: .9rem; line-height: 1.45; }

.cookie-category__required {
  padding: 6px 10px;
  border-radius: 999px;
  background: #e7f4ec;
  color: #236b3d;
  font-size: .78rem;
  font-weight: 800;
  white-space: nowrap;
}

.cookie-switch { position: relative; display: inline-flex; }
.cookie-switch input { position: absolute; opacity: 0; }
.cookie-switch span {
  position: relative;
  width: 50px;
  height: 28px;
  border-radius: 999px;
  background: #aab6b8;
  transition: background .2s ease;
}
.cookie-switch span::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 5px rgba(0,0,0,.25);
  transition: transform .2s ease;
}
.cookie-switch input:checked + span { background: #2d9a92; }
.cookie-switch input:checked + span::after { transform: translateX(22px); }
.cookie-switch input:focus-visible + span { outline: 3px solid rgba(45,154,146,.28); outline-offset: 3px; }
.cookie-switch input:disabled + span { opacity: .55; cursor: not-allowed; }

.cookie-active {
  margin-top: 22px;
  padding: 18px;
  border: 1px solid #d7e4e4;
  border-radius: 10px;
  background: #f8fbfb;
}

.cookie-active__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}

.cookie-text-button {
  padding: 6px 2px;
  border: 0;
  background: transparent;
  color: #176b65;
  text-decoration: underline;
}

.cookie-table-wrap { overflow-x: auto; }
.cookie-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.cookie-table th,
.cookie-table td { padding: 10px; text-align: left; border-bottom: 1px solid #dfe8e8; vertical-align: top; }
.cookie-table th { color: #29464a; font-size: .76rem; letter-spacing: .04em; text-transform: uppercase; }
.cookie-table td:first-child { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere; }

.cookie-status {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  background: #edf0f0;
  color: #5f6a6c;
  white-space: nowrap;
}
.cookie-status--active { background: #e3f3e8; color: #22693a; font-weight: 750; }

.cookie-settings-button {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 9000;
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid #236f69;
  border-radius: 8px;
  background: #fff;
  color: #185f5a;
  box-shadow: 0 4px 18px rgba(0,0,0,.16);
  font-size: .78rem;
}

.cookie-consent-open { overflow: hidden; }

@media (max-width: 680px) {
  .cookie-consent__inner { width: min(100% - 28px, 1180px); padding: 22px 0; }
  .cookie-consent__intro { padding-right: 42px; }
  .cookie-consent__actions { display: grid; }
  .cookie-button { width: 100%; }
  .cookie-category { gap: 12px; }
  .cookie-active { padding: 14px; }
  .cookie-active__heading { align-items: flex-start; flex-direction: column; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-consent__backdrop,
  .cookie-consent__panel,
  .cookie-switch span,
  .cookie-switch span::after { transition: none; }
}
