/* Shared cookie notice, dialog and manual settings. Inherit each surface's font. */
.analytics-consent, .consent-dialog, .consent-card { font-family: inherit; color: var(--consent-text, #20231f); text-align: left; font-variant-numeric: lining-nums; }
.analytics-consent[hidden], .consent-card [hidden] { display: none !important; }
.consent-dialog:not([open]) { display: none; }
.analytics-consent *, .consent-card * { box-sizing: border-box; }
.analytics-consent { position: fixed; z-index: 500; left: max(24px, env(safe-area-inset-left)); bottom: max(24px, env(safe-area-inset-bottom)); width: min(540px, calc(100% - 48px)); max-height: calc(100dvh - 32px); overflow-y: auto; background: var(--consent-surface, #fff); border: 1px solid var(--consent-border, #e8e9e1); border-radius: 20px; box-shadow: 0 12px 60px var(--consent-notice-shadow, #18211721); padding: 24px; }
.consent-notice-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.analytics-consent h2 { margin: 0; font-family: inherit; font-size: 20px; line-height: 1.3; font-weight: 700; letter-spacing: 0; }
.consent-notice-heading a { font-size: 13px; padding: 8px 0 8px 10px; text-decoration: none; white-space: nowrap; }
.analytics-consent > p { margin: 12px 0 20px; color: var(--consent-muted, #62695d); line-height: 1.5; font-size: 15px; }
.analytics-consent a, .consent-card a { color: var(--consent-accent, #0b7459); text-decoration: underline; text-decoration-color: var(--consent-link-line, #b9d0bf); text-underline-offset: 3px; }
.analytics-consent .consent-notice-heading a { text-decoration: none; }
.consent-dialog { padding: 0; border: 0; border-radius: 24px; width: min(580px, calc(100% - 40px)); max-width: calc(100% - 24px); max-height: calc(100dvh - 40px); margin: auto; background: var(--consent-surface, #fff); box-shadow: 0 28px 110px var(--consent-dialog-shadow, #12201924); overflow: auto; overscroll-behavior: contain; }
.consent-dialog::backdrop { background: var(--consent-backdrop, rgba(24,34,29,.3)); backdrop-filter: blur(2px); }
body:has(.consent-dialog[open]) { overflow: hidden; }
.consent-card { padding: 30px 32px 26px; background: var(--consent-surface, #fff); }
.consent-card-header { position: relative; padding: 0 32px 0 0; margin-bottom: 34px; }
.consent-card .consent-card-header h2 { font-family: inherit; font-size: 22px; line-height: 1.3; letter-spacing: -.25px; font-weight: 700; margin: 0; color: var(--consent-text, #20231f); }
.consent-card-header h2:focus { outline: none; }
.consent-close { position: absolute; right: -17px; top: -15px; display: grid; place-items: center; width: 40px; height: 40px; border: 0; padding: 0; background: var(--consent-close, #f3f4f1); color: var(--consent-text, #20231f); border-radius: 50%; cursor: pointer; }
.consent-close:hover { background: var(--consent-close-hover, #e8ebe5); }
.consent-close svg { display: block; }
.consent-card fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.consent-card fieldset:disabled { opacity: .6; }
.consent-options { display: grid; gap: 28px; }
.consent-option { display: grid; grid-template-columns: 22px 1fr; gap: 14px; cursor: pointer; }
.consent-necessary { cursor: default; }
.consent-option input { appearance: none; width: 21px; height: 21px; padding: 0; margin: 2px 0 0; border: 1.5px solid var(--consent-control-border, #b9c0b8); border-radius: 5px; background: var(--consent-surface, #fff); display: grid; place-content: center; cursor: inherit; }
.consent-option input:checked { background: var(--consent-accent, #0b7459); border-color: var(--consent-accent, #0b7459); }
.consent-option input:checked::after { content: ""; width: 10px; height: 6px; border-left: 2px solid white; border-bottom: 2px solid white; transform: translateY(-1px) rotate(-45deg); }
.consent-option input:disabled { background: var(--consent-disabled, #a9c9bc); border-color: var(--consent-disabled, #a9c9bc); opacity: 1; }
.consent-option input:disabled:checked::after { border-color: var(--consent-disabled-check, white); }
.consent-option-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 19px; line-height: 1.3; font-weight: 700; }
.consent-always-on { font-size: 11px; line-height: 1.5; font-weight: 400; color: var(--consent-badge-text, #687565); background: var(--consent-badge, #f1f4ee); border-radius: 5px; padding: 2px 7px; }
.consent-description { display: block; margin-top: 8px; font-size: 16px; line-height: 1.45; color: var(--consent-body, #4d534b); }
.consent-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 32px; }
.consent-actions button { border: 0; border-radius: 13px; font: inherit; font-size: 16px; line-height: 1.25; font-weight: 700; padding: 16px 18px; min-height: 52px; cursor: pointer; transition: background .15s; }
.consent-actions .consent-primary { background: var(--consent-accent, #0b7459); color: #fff; }
.consent-actions .consent-primary:hover { background: var(--consent-accent-hover, #075a45); }
.consent-actions .consent-secondary { background: var(--consent-secondary, #f0f2ee); color: var(--consent-text, #2e352b); }
.consent-actions .consent-secondary:hover { background: var(--consent-secondary-hover, #e5e9e1); }
.analytics-consent .consent-actions { margin-top: 0; gap: 10px; }
.analytics-consent .consent-actions button { font-size: 14px; padding: 14px 10px; min-height: 48px; border-radius: 11px; }
.consent-card .consent-policy { text-align: center; font-size: 13px; line-height: 1.5; color: var(--consent-muted, #62695d); margin: 23px 0 0; }
.analytics-consent .consent-policy { margin: 14px 0 0; font-size: 12px; }
.consent-card .consent-note { font-size: 12px; line-height: 1.5; text-align: center; color: var(--consent-note, #72796c); margin: 12px 0 0; }
.consent-status:empty { display: none; }
.analytics-consent .consent-status, .consent-card .consent-status { padding: 12px 14px; margin: 16px 0 0; background: var(--consent-status-background, #edf4e8); border-radius: 8px; font-size: 14px; line-height: 1.5; color: var(--consent-status-text, #07513f); }
.consent-card .consent-unavailable { margin: 16px 0 0; color: var(--consent-muted, #62695d); font-size: 14px; line-height: 1.5; }
.analytics-consent :focus-visible, .consent-card :focus-visible, .analytics-settings-button:focus-visible { outline: 3px solid var(--consent-focus, #176bdb); outline-offset: 3px; }
.consent-card-header h2:focus-visible { outline: none; }
.consent-visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.analytics-settings-button { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.ft-bottom .analytics-settings-button { margin-left: 12px; }
@media (max-width: 640px) {
  .consent-dialog { width: calc(100% - 24px); max-height: calc(100dvh - 24px); border-radius: 20px; }
  .consent-card { padding: 26px 22px 22px; }
  .consent-card-header { margin-bottom: 29px; padding-right: 26px; }
  .consent-card .consent-card-header h2 { font-size: 21px; max-width: 250px; }
  .consent-close { right: -12px; top: -13px; width: 36px; height: 36px; }
  .consent-option { grid-template-columns: 21px 1fr; gap: 12px; }
  .consent-option-heading { font-size: 18px; }
  .consent-description { font-size: 15px; }
  .consent-actions { gap: 10px; margin-top: 25px; }
  .consent-actions button { font-size: 15px; min-height: 48px; padding: 14px 12px; }
  .consent-card .consent-policy { font-size: 12px; margin-top: 20px; }
  .consent-card .consent-note { font-size: 11px; }
  .analytics-consent { left: max(12px, env(safe-area-inset-left)); bottom: max(12px, env(safe-area-inset-bottom)); width: calc(100% - 24px); padding: 20px; }
  .analytics-consent .consent-actions { grid-template-columns: 1fr; gap: 8px; }
  .analytics-consent h2 { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) { .consent-actions button { transition: none; } }
