/* All selectors are component-scoped: no shared glass navigation/footer overrides. */
#th-cc { color: #112f47; font: 1rem/1.5 system-ui, sans-serif; }
#th-cc *, #th-cc *::before, #th-cc *::after { box-sizing: border-box; }
#th-cc [hidden] { display: none !important; }
#th-cc .th-cc__banner { position: fixed; inset: auto 1rem 4.5rem; z-index: 10001; display: flex; flex-direction: column; margin: auto; max-width: 58rem; max-height: min(70dvh, 38rem); overflow: hidden; padding: clamp(1rem, 3vw, 1.5rem); border: 2px solid #026EBD; border-radius: 1rem; background: #fff; box-shadow: 0 0.5rem 2rem #112f4740; }
#th-cc .th-cc__copy { min-height: 0; overflow: auto; }
#th-cc h2 { color: #112f47; font: 700 1.35rem/1.3 system-ui, sans-serif; margin: 0 0 0.75rem; }
#th-cc p { color: #112f47; font: inherit; margin: 0.75rem 0; }
#th-cc button { appearance: none; display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; max-width: 100%; padding: 0.65rem 1rem; border: 2px solid #026EBD; border-radius: 0.5rem; background: #026EBD; color: #fff; font: 600 1rem/1.35 system-ui, sans-serif; white-space: normal; cursor: pointer; text-align: center; }
#th-cc button:hover { background: #112f47; border-color: #112f47; }
#th-cc button:disabled { cursor: not-allowed; background: #526573; border-color: #526573; color: #fff; }
#th-cc button:focus-visible, #th-cc input:focus-visible { outline: 3px solid #112f47; outline-offset: 3px; box-shadow: 0 0 0 3px #fff; }
#th-cc .th-cc__actions { display: flex; flex-shrink: 0; flex-wrap: wrap; gap: 0.75rem; margin-top: 1rem; }
#th-cc-accept, #th-cc-reject { flex: 1 1 14rem; }
#th-cc-manage { flex: 1 1 12rem; }
#th-cc .th-cc__settings { position: fixed; inset: auto auto 0.75rem 0.75rem; z-index: 10000; width: 48px; height: 48px; min-height: 48px; padding: 0; border: 0; border-radius: 50%; background: #f5faff; color: #112f47; box-shadow: 0 6px 20px rgba(24,63,94,.18); }
#th-cc .th-cc__settings svg { display: block; width: 24px; height: 24px; flex: 0 0 24px; color: #026EBD; pointer-events: none; }
#th-cc .th-cc__settings:hover { background: #e8f4fd; color: #112f47; }
@supports ((backdrop-filter: blur(14px)) or (-webkit-backdrop-filter: blur(14px))) {
    #th-cc .th-cc__settings { background: linear-gradient(130deg,rgba(255,255,255,.22),rgba(255,255,255,.06) 48%,rgba(214,235,252,.14)); -webkit-backdrop-filter: blur(14px) saturate(155%); backdrop-filter: blur(14px) saturate(155%); }
    #th-cc .th-cc__settings:hover { background: linear-gradient(130deg,rgba(255,255,255,.36),rgba(237,247,254,.20)); }
}
@media (prefers-reduced-transparency: reduce) {
    #th-cc .th-cc__settings { background: #f5faff; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
#th-cc .th-cc__status:not(:empty) { position: fixed; inset: auto 0.75rem 4.25rem auto; max-width: min(34rem, calc(100vw - 1.5rem)); max-height: 30dvh; overflow: auto; margin: 0; padding: 0.75rem; border: 2px solid #112f47; border-radius: 0.5rem; background: #fff; z-index: 10002; }
#th-cc:has(dialog[open]) .th-cc__status:not(:empty) { position: static; }
#th-cc dialog { color: #112f47; background: #fff; width: min(42rem, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem); overflow: auto; padding: clamp(1rem, 4vw, 2rem); border: 2px solid #026EBD; border-radius: 1rem; }
#th-cc dialog::backdrop { background: #112f47b3; }
#th-cc .th-cc__choice { display: flex; align-items: flex-start; gap: 0.65rem; padding: 1rem 0; font-weight: 700; cursor: pointer; }
#th-cc input[type="checkbox"] { flex: 0 0 auto; margin: 0.15rem 0 0; width: 1.4rem; height: 1.4rem; accent-color: #026EBD; }
#th-cc code { overflow-wrap: anywhere; }
@media (max-width: 30rem) {
    #th-cc .th-cc__banner { inset-inline: 0.5rem; }
    #th-cc .th-cc__actions { flex-direction: column; }
    #th-cc .th-cc__actions button { flex: 0 0 auto; width: 100%; }
}
@media (prefers-reduced-motion: reduce) { #th-cc * { scroll-behavior: auto; } }
@media (forced-colors: active) { #th-cc button { border: 2px solid ButtonText; } }
