/* Reserve measured space before the final phone navigation. Putting it on the
   outer shell would end the nav's sticky container above the fixed notice. */
.site-shell .site-footer { --footer-tail-space: var(--space-10); padding-bottom: calc(var(--footer-tail-space) + var(--consent-clearance, 0px)); }
.consent-ui { font: 16px/1.5 var(--font); color: var(--ink); }
.consent-banner { position: fixed; left: 22px; right: 22px; bottom: 22px; z-index: 70; max-width: 1040px; margin-inline: auto; }
.consent-banner .consent-banner-icon { width: 48px; height: 48px; border-radius: 16px; }
.consent-banner .consent-body { gap: 4px; }
.consent-banner .consent-body p, .consent-banner p.consent-body { margin: 0; }
.consent-banner .consent-body > p { color: var(--prose); }
.consent-banner h2 { margin: 0; font-size: 17px; line-height: 1.3; }
.consent-banner .link { color: var(--teal); }
.consent-banner .consent-body p.consent-links, .consent-dialog p.consent-links { display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 4px 0 0 -14px; }
.consent-banner-controls { flex: 1 1 280px; min-width: 0; }
.consent-banner .consent-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
.consent-banner .button { white-space: normal; text-align: center; padding-block: 10px; line-height: 1.25; }
.consent-signal { color: var(--teal-dark); font-weight: 650; }
.consent-feedback { min-height: 1.5em; font-size: 14px; line-height: 1.6; color: var(--teal-dark); }
.consent-banner .consent-feedback { margin: 10px 0 0; }
.consent-feedback.is-error { color: var(--danger-fg); font-weight: 650; }
.consent-confirmation > .tool-icon { width: 40px; height: 40px; border-radius: 50%; }
.consent-confirmation .consent-body { font-weight: 600; }
.consent-dialog { width: min(690px, calc(100% - 32px)); max-height: calc(100dvh - 40px); padding: 30px; overflow-y: auto; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-card); box-shadow: var(--shadow-float); font: 16px/1.5 var(--font); }
.consent-dialog::backdrop { background: rgb(16 28 45 / 48%); }
.consent-dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.consent-dialog-heading .eyebrow { display: block; margin-bottom: 6px; }
.consent-dialog h2 { margin: 0; }
.consent-dialog #consent-dialog-description { color: var(--muted); }
.consent-choice-list { background: var(--canvas); border-radius: var(--radius-inner); }
.consent-choice-list .list-row { align-items: flex-start; }
.consent-choice-list label.list-row { cursor: pointer; }
.consent-choice-list label:has(input:disabled) { cursor: default; }
.consent-current { font-size: 14px; color: var(--muted); margin-block: 12px; }
.consent-dialog .consent-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.consent-dialog .consent-actions .button { flex: 1 1 160px; white-space: normal; line-height: 1.25; padding-block: 12px; }

@container shell (max-width: 760px) {
  .site-shell .site-footer { --footer-tail-space: var(--space-8); }
  .consent-banner { left: 12px; right: 12px; bottom: calc(92px + env(safe-area-inset-bottom, 0px)); padding: 18px; border-radius: 22px; gap: 12px; max-height: calc(100dvh - 116px - env(safe-area-inset-bottom, 0px)); overflow-y: auto; }
  .consent-banner .consent-banner-icon { display: none; }
  .consent-banner .consent-body, .consent-banner-controls { flex-basis: 100%; }
  .consent-banner .consent-actions .button { font-size: 14px; padding-inline: 10px; }
  .consent-dialog { padding: 20px; }
  .consent-dialog .consent-choice-list .list-row { padding-inline: 14px; gap: 12px; }
}
