/* Cookie bar and Choose cookies dialog (shared/consent.mjs; canvas artboards A1 and P1). Brand tokens from shared/tokens.css only. */
.cc-open body { padding-bottom: var(--cc-bar-h, 0px); }
.cc-open .sticky-cta { display: none !important; } /* the site's phone Start bar stays away while the bar is open */

/* Compact (approved 4 Dec, after trying it on an iPhone): the heading only names the landmark for screen readers; one short sentence; 44px buttons. */
.cc-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--surface); color: var(--text); border-top: 1px solid var(--edge);
  box-shadow: 0 -8px 24px rgba(14, 59, 69, .10); font-family: var(--font); font-size: 15px; line-height: 1.4; max-height: 50vh; overflow-y: auto;
  padding-bottom: env(safe-area-inset-bottom); }
.cc-inner { max-width: 1200px; margin: 0 auto; padding: 12px 16px; display: flex; flex-direction: column; gap: 8px; }
.cc-dialog h2 { margin: 0 0 2px; font-family: var(--font-display); font-weight: 600; font-size: 19px; line-height: 1.2; color: var(--text); }
.cc-bar p { margin: 0; }
.cc-bar a, .cc-dialog a { color: var(--accent); }
.cc-bar a { white-space: nowrap; }
/* Phone: Accept all on top, full width; Essential cookies only and Choose cookies centred on one line below it, stacking centred if they can't fit. */
.cc-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 4px; }
.cc-actions .cc-btn { min-height: 44px; font-size: 15px; } /* Accept and Essential cookies only: same type size and target (D13) */
@media (max-width: 480px) { .cc-bar { font-size: 14px; } }
.cc-actions [data-cc="accept"] { flex-basis: 100%; order: -1; }
.cc-actions .cc-link { padding: 0 10px; }
@media (min-width: 760px) {
  .cc-inner { flex-direction: row; align-items: center; gap: 24px; padding: 12px 32px; }
  .cc-text { flex: 1; min-width: 0; }
  /* Computer: Essential cookies only · Choose cookies · Accept all, Accept on the right (D13). */
  .cc-actions { flex-wrap: nowrap; align-items: center; gap: 8px; flex: none; }
  .cc-actions [data-cc="accept"] { flex-basis: auto; order: 0; }
}

/* D13 (approved 4 Dec, Check: adviser): Accept all is the solid button; Essential cookies only (D14, = Reject all) and Choose cookies are text buttons with the same size, target and
   type, in ink (10.8:1 on --surface), underlined so they read as actions. The dialog's own Accept all and Essential cookies only stay identical. */
.cc-btn { min-height: 48px; padding: 0 22px; border-radius: var(--radius-btn); font: inherit; font-size: 16px; cursor: pointer; }
.cc-main { border: 0; background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.cc-quiet { border: 1.5px solid var(--edge); background: var(--surface); color: var(--text); font-weight: 500; }
.cc-link { border: 0; background: none; color: var(--text); font-weight: 600; padding: 0 16px; text-decoration: underline; text-underline-offset: 4px; }
.cc-link:hover { text-decoration-thickness: 2px; }
.cc-btn:focus-visible, .cc-x:focus-visible, .cc-sw input:focus-visible, .cc-bar a:focus-visible, .cc-dialog a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.cc-dialog { width: min(560px, calc(100% - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 0; border-radius: var(--radius); background: var(--surface);
  color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.5; box-shadow: 0 16px 48px rgba(14, 59, 69, .25); overflow-y: auto; }
.cc-dialog::backdrop { background: rgba(14, 59, 69, .45); }
.cc-d-head { display: flex; align-items: flex-start; gap: 12px; padding: 20px 24px 8px; }
.cc-d-head h2 { flex: 1; margin-top: 8px; font-size: 22px; }
.cc-x { flex: none; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border: 0; border-radius: var(--radius-btn); background: transparent; color: var(--text); cursor: pointer; }
.cc-lead, .cc-saved { margin: 0; padding: 0 24px 12px; color: var(--muted); }
.cc-saved { color: var(--text); font-weight: 600; }
.cc-cats { padding: 0 24px; }
.cc-cat { border-top: 1px solid var(--line); padding: 10px 0 14px; }
.cc-cat p { margin: 0; font-size: 15px; color: var(--muted); }
.cc-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; }
.cc-row h3 { margin: 0; font-size: 16px; font-weight: 600; }
.cc-always, .cc-sw { font-size: 15px; font-weight: 600; }
.cc-always { color: var(--muted); }
.cc-sw { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; }
.cc-sw span { min-width: 2em; }
.cc-sw input { appearance: none; margin: 0; flex: none; width: 48px; height: 28px; border-radius: 999px; border: 2px solid var(--edge); background: var(--surface-2); position: relative; cursor: pointer; }
.cc-sw input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--muted); }
.cc-sw input:checked { background: var(--accent); border-color: var(--accent); }
.cc-sw input:checked::after { background: var(--accent-ink); transform: translateX(20px); }
.cc-d-foot { border-top: 1px solid var(--line); padding: 16px 24px 20px; display: flex; flex-direction: column; gap: 10px; }
.cc-d-foot p { margin: 0; font-size: 15px; }
.cc-d-actions { display: flex; gap: 8px; }
.cc-d-actions .cc-btn { flex: 1; padding: 0 12px; }
@media (max-width: 599px) {
  .cc-dialog { width: 100%; max-width: none; max-height: 92vh; margin: auto 0 0; border-radius: var(--radius) var(--radius) 0 0; }
  .cc-d-head, .cc-lead, .cc-saved, .cc-cats, .cc-d-foot { padding-left: 20px; padding-right: 20px; }
  .cc-d-actions { display: grid; grid-template-columns: 1fr; } /* stacked: "Essential cookies only" would wrap in half the width */
  .cc-save { grid-column: 1 / -1; }
}
.cc-sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* The footers' Cookie settings button looks like the links beside it. */
button[data-cookie-settings] { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: inherit; }
