/* Cookie banner and settings dialog. Same look for all three buttons on purpose. */
.consent-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: #0f1b2d; color: #fff;
  padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
  border-top: 3px solid #f2b043;
  display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: center;
  font-size: 1rem; line-height: 1.45;
}
.consent-banner .consent-text { margin: 0; max-width: 46em; flex: 1 1 22em; }
body.has-consent-banner { padding-bottom: var(--consent-h, 0); }

.consent-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.consent-btn {
  font: inherit; font-weight: 700; min-height: 48px; min-width: 96px; padding: 10px 18px;
  background: #fff; color: #0f1b2d; border: 2px solid #fff; border-radius: 8px; cursor: pointer;
}
.consent-btn:hover { background: #f2b043; border-color: #f2b043; }
.consent-btn:focus-visible, .consent-dialog input:focus-visible, .consent-dialog a:focus-visible {
  outline: 3px solid #f2b043; outline-offset: 2px;
}
.consent-dialog .consent-btn { background: #0f1b2d; color: #fff; border-color: #0f1b2d; }
.consent-dialog .consent-btn:hover { background: #1f3350; border-color: #1f3350; }
.consent-dialog .consent-btn:focus-visible { outline-color: #c31432; }

.consent-dialog {
  width: min(32rem, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto;
  padding: 20px; border: 0; border-radius: 12px; background: #fbfaf7; color: #1d1d1f;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .35);
}
.consent-dialog::backdrop { background: rgba(15, 27, 45, .6); }
.consent-dialog h2 { margin: 0 0 12px; font-size: 1.4rem; }
.consent-row {
  display: grid; grid-template-columns: 24px 1fr; gap: 4px 12px; align-items: start;
  padding: 12px 0; border-top: 1px solid #dcd8cf;
}
.consent-row input { width: 24px; height: 24px; margin: 0; }
.consent-row label { font-weight: 700; font-size: 1.05rem; }
.consent-help { grid-column: 2; margin: 0; color: #55555c; font-size: .95rem; }
.consent-more { margin: 4px 0 16px; }
.consent-dialog .consent-actions { border-top: 1px solid #dcd8cf; padding-top: 16px; }

.consent-notice {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; margin: 0;
  background: #fff4d9; color: #1d1d1f; border: 1px solid #f2b043; border-radius: 8px; padding: 12px 14px;
}
@media (max-width: 480px) {
  .consent-banner .consent-actions { width: 100%; }
  .consent-banner .consent-btn { flex: 1 1 0; min-width: 0; padding: 10px 8px; white-space: nowrap; }
}
