.it-measurement-links { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem 1.2rem; }
.it-measurement-links > :is(a, button) { min-width: 0; max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
/* Stacked footer (below the desktop row): brand and site links first, legal links last. */
@media (max-width: 1279px) { .shared-footer > .it-measurement-links { order: 4; } }
.it-measurement-settings { appearance: none; border: 0; padding: 0; background: transparent; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.it-consent-dialog { box-sizing: border-box; color: #21362a; background: #f7f6ef; font: 400 1rem/1.5 system-ui, sans-serif; text-align: left; overflow-wrap: anywhere; }
/* The banner: one bottom sheet on every page. A short note on the site's own navy card, two equal choices and two text links. */
.it-consent-banner { box-sizing: border-box; color: #f5f1e6; background: #132f3c; font: 400 15px/1.45 'Avenir Next', Avenir, 'Segoe UI', system-ui, -apple-system, sans-serif; text-align: left; overflow-wrap: break-word; -webkit-font-smoothing: antialiased; }
.it-consent-banner *, .it-consent-dialog * { box-sizing: border-box; }
.it-consent-banner[hidden], .it-consent-dialog [hidden] { display: none !important; }
.it-consent-banner { position: fixed; z-index: 10000; inset: auto 1rem 1rem; display: flex; align-items: center; gap: 24px; max-width: 60rem; margin-inline: auto; padding: 16px 20px; border: 1px solid rgba(171, 192, 200, .25); border-radius: 16px; box-shadow: 0 16px 40px rgba(0, 0, 0, .35); max-height: calc(100dvh - 2rem); overflow-y: auto; }
.it-consent-copy { flex: 1 1 24rem; min-width: 0; }
.it-consent-banner h2 { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.it-consent-banner .it-consent-copy > p:first-of-type { display: inline; margin: 0; }
.it-consent-banner .it-consent-status { margin: 6px 0 0; }
.it-consent-dialog h2 { margin: 0 0 .5rem; font: 650 1.15rem/1.3 system-ui, sans-serif; letter-spacing: normal; }
.it-consent-dialog p { margin: 0 0 .75rem; font: inherit; }
.it-consent-dialog a { color: #1e5036; text-decoration: underline; text-underline-offset: .2em; }
.it-consent-banner a { color: #f5f1e6; text-decoration: underline; text-underline-offset: .2em; }
.it-consent-actions { display: flex; flex-wrap: wrap; gap: .65rem; }
.it-consent-banner > .it-consent-actions { flex: 0 0 auto; display: grid; grid-template-columns: repeat(2, minmax(7.5rem, 1fr)); gap: 4px 10px; }
.it-consent-banner .it-consent-button { min-height: 44px; padding: 0 18px; border-radius: 999px; font-family: inherit; font-size: 15px; font-weight: 700; line-height: 1.2; }
/* No thanks and Allow are drawn the same: same size, same outline, same colour. Neither is the bright one. */
.it-consent-banner :is(#it-consent-reject, #it-consent-accept) { border: 1px solid rgba(245, 241, 230, .7); background: transparent; color: #f5f1e6; }
.it-consent-banner :is(#it-consent-reject, #it-consent-accept):hover { background: rgba(245, 241, 230, .1); }
.it-consent-more { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 0 18px; }
.it-consent-link, .it-consent-banner .it-consent-privacy { appearance: none; display: inline-flex; align-items: center; min-height: 44px; margin: 0; padding: 0; border: 0; background: transparent; color: #f5f1e6; font-family: inherit; font-size: 14px; font-weight: 600; line-height: 1.2; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.it-consent-banner :is(.it-consent-button, .it-consent-link, a):focus-visible { outline: 3px solid #ff8065; outline-offset: 3px; }
.it-consent-button { appearance: none; display: inline-flex; justify-content: center; align-items: center; min-height: 44px; padding: .6rem .85rem; border: 1px solid #425447; border-radius: .3rem; background: #f7f6ef; color: #21362a; font: 600 .94rem/1.25 system-ui, sans-serif; cursor: pointer; }
.it-consent-button:hover { background: #e3e9df; }
.it-consent-dialog .it-consent-button:focus-visible, .it-consent-dialog a:focus-visible, .it-consent-dialog input:focus-visible, .it-measurement-settings:focus-visible { outline: 3px solid #185e3b; outline-offset: 3px; }
.it-consent-dialog { position: fixed; width: min(38rem, calc(100% - 2rem)); max-width: calc(100% - 2rem); max-height: calc(100dvh - 2rem); margin: auto; padding: 1.5rem; border: 1px solid #425447; border-radius: .6rem; overflow-y: auto; }
.it-consent-dialog::backdrop { background: #10201699; }
.it-consent-dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .75rem; }
.it-consent-dialog-heading h2 { margin: 0; }
.it-consent-option { padding: 1rem 0; border-top: 1px solid #c8d1c5; }
.it-consent-option label { display: flex; align-items: center; gap: .75rem; min-height: 44px; font-weight: 650; cursor: pointer; }
.it-consent-option input { width: 1.2rem; height: 1.2rem; margin: 0; accent-color: #245739; }
.it-consent-option p { margin: .35rem 0 0; }
.it-consent-full { margin-top: .35rem; }
.it-consent-full > summary { display: inline-flex; align-items: center; min-height: 44px; color: #1e5036; font-weight: 600; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.it-consent-full > summary:focus-visible { outline: 3px solid #185e3b; outline-offset: 3px; }
.it-consent-full > p { font-size: .94rem; }
.it-consent-signal { padding: .75rem; background: #e3e9df; border-radius: .3rem; }
.it-consent-status:empty { display: none; }
.it-consent-status { font-weight: 600 !important; }
.it-consent-dialog > .it-consent-actions { margin: .5rem 0 1rem; }
@media (max-width: 700px) {
  /* Phones: the same bottom sheet as wider screens, compact: three short lines, the two choices side by side, then the
     three text links on one line; about 150px tall at 360px wide, so it clears the Scan button above it. */
  .it-consent-banner { inset: auto 8px calc(8px + env(safe-area-inset-bottom, 0px)); flex-direction: column; align-items: stretch; gap: 8px; padding: 8px 12px 6px; font-size: 13px; line-height: 1.35; max-height: min(220px, calc(100dvh - 16px)); }
  .it-consent-more { gap: 0 14px; }
  .it-consent-banner :is(.it-consent-link, .it-consent-privacy) { min-height: 24px; font-size: 13px; }
  .it-consent-banner .it-consent-button { padding: 0 10px; font-size: 14px; }
  .it-consent-copy, .it-consent-banner > .it-consent-actions { flex: 0 1 auto; }
  .it-consent-banner > .it-consent-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 8px; }
  .it-consent-dialog .it-consent-actions .it-consent-button { flex: 1 1 8rem; }
  .it-consent-dialog { padding: 1rem; }
}
@media (prefers-reduced-motion: reduce) { .it-consent-banner *, .it-consent-dialog * { scroll-behavior: auto; animation: none; transition: none; } }
