/* ==========================================================================
   Consent banner + "Your Privacy Choices" control
   Reject is given the same size, weight and prominence as Accept, as required
   where consent must be as easy to refuse as to give.
   ========================================================================== */

.consent-banner {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 1200;
  background: var(--bg-surface-elevated, #ffffff);
  border-top: 3px solid var(--brand-cue, #1e40af);
  box-shadow: 0 -8px 32px rgba(7, 17, 63, 0.18);
  padding: 1.25rem 1rem calc(1.25rem + env(safe-area-inset-bottom, 0px));
}

.consent-inner {
  max-width: 68rem;
  margin: 0 auto;
}

.consent-title {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main, #10193a);
}

.consent-body {
  margin: 0 0 0.75rem;
  max-width: 62ch;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-main, #10193a);
}

.consent-status:empty { display: none; }

.consent-status {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--brand-cue, #1e40af);
}

.consent-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}

.consent-btn {
  flex: 0 0 auto;
  min-width: 9.5rem;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-sm, 6px);
  border: 2px solid var(--brand-cue, #1e40af);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.consent-accept {
  background: var(--brand-cue, #1e40af);
  color: #ffffff;
}

.consent-reject {
  background: transparent;
  color: var(--brand-cue, #1e40af);
}

.consent-accept:hover { filter: brightness(1.1); }
.consent-reject:hover { background: rgba(30, 64, 175, 0.08); }

.consent-btn:focus-visible,
.consent-link:focus-visible,
.footer-privacy-choices:focus-visible {
  outline: 3px solid var(--brand-cue, #1e40af);
  outline-offset: 2px;
}

.consent-link {
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: underline;
  color: var(--text-main, #10193a);
}

/* Footer "Your Privacy Choices" control, styled as a link, with the US opt-out icon */
.footer-privacy-choices {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.footer-privacy-choices svg { flex: 0 0 auto; }

@media (max-width: 480px) {
  .consent-btn { flex: 1 1 100%; min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .consent-btn { transition: none; }
}

/* Dismiss control. The banner is non-modal and is not a cookie wall, so it
   must be possible to put it away without answering - by this button or by
   Escape. Declining stays a separate, explicit action. */
.consent-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--text-main, #10193a);
  cursor: pointer;
}

.consent-close:hover { background: rgba(16, 25, 58, 0.08); }

.consent-close:focus-visible {
  outline: 3px solid var(--brand-cue, #1e40af);
  outline-offset: 2px;
}

.consent-inner { position: relative; }
