/* Consent UI is intentionally still, legible and independent of site animations. */
.consent-banner,
.consent-dialog {
  color: #141625;
  background: #f4f5f8;
  font-family: Manrope, Arial, sans-serif;
  text-align: left;
  letter-spacing: normal;
  line-height: 1.6;
  color-scheme: light;
}

.consent-banner {
  position: fixed;
  z-index: 80;
  left: 24px;
  bottom: 24px;
  width: min(680px, calc(100% - 48px));
  max-height: calc(100svh - 120px);
  overflow-y: auto;
  padding: 24px;
  border: 1px solid #c8cede;
  border-top: 3px solid #1f2245;
  box-shadow: 0 12px 48px #1416252b;
  overscroll-behavior: contain;
}

.consent-kicker {
  margin: 0 0 10px;
  color: #515976;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .12em;
}

.consent-banner h2 {
  margin: 0 0 10px;
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -.035em;
  line-height: 1.25;
}

.consent-banner-copy > p:not(.consent-kicker) {
  margin: 0;
  color: #41485f;
  font-size: 13px;
  line-height: 1.65;
}

.consent-banner-copy > p.consent-assurance {
  margin-top: 8px;
}

.consent-banner a,
.consent-dialog a {
  color: #1f2245;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.consent-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.consent-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid #7b839d;
  border-radius: 0;
  background: #f4f5f8;
  color: #1f2245;
  padding: 11px 12px;
  font: 600 12px/1.45 Manrope, Arial, sans-serif;
  text-align: center;
  cursor: pointer;
}

.consent-button:hover {
  background: #e4e8f3;
  border-color: #1f2245;
}

.consent-banner :focus-visible,
.consent-dialog :focus-visible,
.consent-footer-button:focus-visible {
  outline: 3px solid #5364a9;
  outline-offset: 3px;
}

.consent-dialog {
  width: min(680px, calc(100% - 32px));
  max-width: 680px;
  max-height: calc(100svh - 32px);
  margin: auto;
  padding: 28px;
  border: 1px solid #c8cede;
  box-shadow: 0 24px 90px #0006;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.consent-dialog::backdrop {
  background: #141625b8;
  backdrop-filter: blur(3px);
}

.consent-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.consent-dialog-header .consent-kicker {
  margin: 0;
}

.consent-close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border: 1px solid #a7aec2;
  background: transparent;
  color: #1f2245;
  font: 400 27px/1 Arial, sans-serif;
}

.consent-close:hover { background: #e4e8f3; }

.consent-dialog h2 {
  margin: 0;
  font-size: clamp(24px, 4vw, 30px);
  font-weight: 500;
  letter-spacing: -.04em;
  line-height: 1.2;
}

.consent-dialog p {
  margin: 0;
  color: #41485f;
  font-size: 13px;
  line-height: 1.7;
}

.consent-dialog .consent-intro { margin-top: 15px; }

.consent-essential {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  margin-top: 18px;
  border-top: 1px solid #d8dce8;
  border-bottom: 1px solid #d8dce8;
}

.consent-essential h3,
.consent-option strong {
  display: block;
  margin: 0 0 6px;
  color: #1f2245;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.45;
}

.consent-always {
  flex-shrink: 0;
  border: 1px solid #c8cede;
  padding: 4px 7px;
  color: #4d5670;
  font-size: 11px;
  font-weight: 600;
}

.consent-options {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.consent-option {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 14px;
  padding: 20px 0;
  border-bottom: 1px solid #d8dce8;
  cursor: pointer;
}

.consent-option input {
  width: 23px;
  height: 23px;
  margin: 1px 0 0;
  accent-color: #1f2245;
  cursor: pointer;
}

.consent-option > span > span {
  display: block;
  color: #41485f;
  font-size: 13px;
  line-height: 1.7;
}

.consent-option:has(input:disabled),
.consent-option input:disabled { cursor: not-allowed; }

.consent-option:has(input:disabled) strong { color: #515976; }

.consent-option input:disabled {
  outline: 1px dashed #7b839d;
  outline-offset: 3px;
}

.consent-note {
  padding: 15px;
  background: #e8ecf5;
  margin-top: 20px;
  border-left: 2px solid #929fc9;
}

.consent-dialog .consent-note p,
.consent-dialog .consent-revisit { font-size: 12px; }
.consent-dialog .consent-revisit { margin-top: 16px; }
.consent-save { background: #e4e8f3; }

.consent-footer-button {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  min-height: 44px;
  padding: 10px 0;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
  max-width: 100%;
  white-space: normal;
}

.consent-footer-button:hover { color: #1f2245; }

.footer-links {
  flex-wrap: wrap;
  min-width: 0;
  row-gap: 4px;
}

.privacy .consent-button {
  max-width: 100%;
  white-space: normal;
}

.consent-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 520px) {
  .consent-banner {
    left: 12px;
    width: calc(100% - 24px);
    /* Keep the existing fixed WhatsApp action accessible below this panel. */
    bottom: calc(88px + env(safe-area-inset-bottom, 0px));
    max-height: min(470px, 52svh);
    padding: 18px;
  }
  .consent-banner h2 { font-size: 20px; }
  .consent-banner-copy > p:not(.consent-kicker) { font-size: 12px; }
  .consent-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .consent-actions > :last-child { grid-column: 1 / -1; }
  .consent-button { min-height: 46px; padding: 10px 8px; font-size: 12px; }
  .consent-dialog { padding: 20px; }
  .consent-essential { gap: 10px; }
  .consent-always { font-size: 10px; padding: 4px 5px; }
  .consent-option { gap: 12px; }
  .consent-dialog-actions { margin-top: 20px; }
}

@media (forced-colors: active) {
  .consent-banner,
  .consent-dialog,
  .consent-button,
  .consent-close,
  .consent-always { border: 1px solid ButtonText; }
  .consent-note { border-left: 2px solid CanvasText; }
}
