#consent-root {
    --consent-yellow: #ffcc00;
    font-family: 'Segoe UI', Arial, sans-serif;
    color: #f5f5f5;
    font-size: 16px;
    line-height: 1.6;
    text-align: left;
}
#consent-root *, .consent-map-placeholder * { box-sizing: border-box; }
#consent-root [hidden], .consent-map-placeholder[hidden], iframe[data-cookie-category][hidden] { display: none !important; }
#consent-root button, #consent-root a, .consent-map-placeholder button, .consent-map-placeholder a { touch-action: manipulation; }
#consent-root button { font-family: inherit; }
#consent-root button:focus-visible, #consent-root a:focus-visible,
.consent-settings-link:focus-visible, .consent-map-placeholder button:focus-visible,
.consent-map-placeholder a:focus-visible { outline: 3px solid #ffcc00; outline-offset: 4px; }
#consent-root .consent-button-primary:focus-visible { outline-color: #fff; }
#consent-root h2 { margin: 0; color: #fff; font-size: 1.3rem; line-height: 1.3; font-weight: 800; text-transform: none; }
#consent-root p { margin: 10px 0 0; color: #d3d3d3; font-size: 1rem; line-height: 1.6; }
#consent-root a { color: #ffcc00; text-underline-offset: 4px; }
.consent-banner {
    position: fixed;
    z-index: 10020;
    right: max(20px, env(safe-area-inset-right));
    bottom: max(20px, env(safe-area-inset-bottom));
    left: max(20px, env(safe-area-inset-left));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    max-width: 1200px;
    max-height: calc(100vh - 40px);
    max-height: calc(100dvh - 40px);
    overflow-y: auto;
    margin: 0 auto;
    padding: 26px 28px;
    border: 1px solid #444;
    border-top: 3px solid #ffcc00;
    border-radius: 12px;
    background: #151515;
    box-shadow: 0 12px 50px rgba(0, 0, 0, 0.45);
}
.consent-banner-copy { flex: 1 1 480px; min-width: 0; }
.consent-policy-link { display: inline-block; margin-top: 10px; padding: 4px 0; font-size: 0.875rem; }
.consent-banner-actions { display: grid; grid-template-columns: 1fr 1fr; flex: 0 1 410px; gap: 10px; }
.consent-banner-actions > :last-child { grid-column: 1 / -1; }
.consent-button {
    min-height: 46px;
    padding: 12px 16px;
    border: 1px solid transparent;
    border-radius: 7px;
    font-size: 0.875rem;
    line-height: 1.45;
    font-weight: 750;
    cursor: pointer;
    text-align: center;
    white-space: normal;
    transition: background 150ms ease, border-color 150ms ease;
}
.consent-button-primary { color: #111; background: #ffcc00; border-color: #ffcc00; }
.consent-button-primary:hover { background: #ffda45; border-color: #ffda45; }
.consent-button-outline { color: #f5f5f5; background: transparent; border-color: #777; }
.consent-button-outline:hover { background: #2c2c2c; border-color: #aaa; }
html.consent-dialog-open { overflow: hidden; }
.consent-dialog {
    position: fixed;
    inset: 0;
    width: min(660px, calc(100% - 32px));
    max-width: none;
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    margin: auto;
    padding: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 1px solid #4a4a4a;
    border-top: 3px solid #ffcc00;
    border-radius: 14px;
    background: #171717;
    color: #f5f5f5;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}
.consent-dialog::backdrop { background: rgba(0, 0, 0, 0.68); }
.consent-dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 26px 26px 0; }
.consent-eyebrow { display: block; margin-bottom: 8px; color: #ffcc00; font-size: 0.75rem; letter-spacing: 0.12em; font-weight: 800; }
.consent-close { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; padding: 0; border: 1px solid #555; border-radius: 7px; background: transparent; color: #fff; font-size: 1.8rem; line-height: 1; cursor: pointer; }
.consent-close:hover { background: #333; }
.consent-dialog-body { padding: 10px 26px 22px; }
.consent-category { margin-top: 20px; padding: 18px; border: 1px solid #444; border-radius: 9px; background: #202020; }
.consent-category-label { display: flex; justify-content: space-between; align-items: center; gap: 20px; color: #fff; font-size: 1rem; font-weight: 750; cursor: pointer; }
.consent-badge { display: inline-block; margin-top: 6px; color: #ffcc00; font-size: 0.75rem; font-weight: 700; }
#consent-root .consent-category p { font-size: 0.875rem; }
.consent-switch { position: relative; display: inline-flex; flex: 0 0 48px; width: 48px; min-height: 44px; align-items: center; }
.consent-switch input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; z-index: 1; cursor: pointer; }
.consent-switch > span { display: block; position: relative; width: 48px; height: 28px; border: 1px solid #8b8b8b; border-radius: 20px; background: #4b4b4b; }
.consent-switch > span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform 150ms ease; }
.consent-switch input:checked + span { background: #ffcc00; border-color: #ffcc00; }
.consent-switch input:checked + span::after { background: #111; transform: translateX(20px); }
.consent-switch input:disabled { cursor: default; }
.consent-switch input:disabled + span { opacity: 0.65; }
.consent-switch input:focus-visible + span { outline: 3px solid #ffcc00; outline-offset: 4px; }
#consent-root .consent-more { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 18px; }
.consent-more a { display: inline-flex; align-items: center; min-height: 36px; font-size: 0.875rem; }
.consent-dialog-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 20px 26px 26px; border-top: 1px solid #3b3b3b; background: #171717; }
.consent-dialog-actions > :last-child { grid-column: 1 / -1; }
.consent-notice:not(:empty) { position: fixed; bottom: max(20px, env(safe-area-inset-bottom)); left: 50%; z-index: 10030; transform: translateX(-50%); width: max-content; max-width: calc(100% - 32px); padding: 14px 20px; border: 1px solid #666; border-radius: 8px; background: #151515; color: #fff; box-shadow: 0 8px 28px rgba(0, 0, 0, 0.3); font-size: 0.875rem; }
.consent-settings-link { align-self: flex-start; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; text-align: inherit; }
.footer-legal .consent-settings-link:hover { color: #ffcc00; }
.container > .consent-settings-link { display: block; margin-top: 24px; min-height: 44px; font-size: 1rem; color: #333; }
.container > .consent-settings-link:focus-visible { outline-color: #000; }
.consent-map-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; width: 100%; height: 100%; padding: 24px; overflow-y: auto; background: #171717; color: #fff; text-align: center; }
.consent-map-placeholder h3 { margin: 0; color: #ffcc00; font-size: 1.2rem; }
.consent-map-placeholder p { max-width: 520px; margin: 0; color: #ccc; font-size: 1rem; line-height: 1.6; }
.consent-map-placeholder a { display: inline-flex; align-items: center; min-height: 44px; color: #ffcc00; font-size: 0.875rem; text-underline-offset: 4px; }
.consent-map-placeholder button[hidden] { display: none; }

@media (max-width: 768px) {
    .consent-banner { flex-direction: column; align-items: stretch; gap: 18px; left: max(12px, env(safe-area-inset-left)); right: max(12px, env(safe-area-inset-right)); bottom: max(12px, env(safe-area-inset-bottom)); padding: 20px; max-height: calc(100vh - 96px); max-height: calc(100dvh - 96px); }
    .consent-banner-copy, .consent-banner-actions { flex: none; }
    #consent-root h2 { font-size: 1.2rem; }
    .consent-banner-actions { grid-template-columns: 1fr; }
    .consent-button { min-height: 48px; }
    .consent-dialog-header { padding: 20px 20px 0; }
    .consent-dialog-body { padding: 8px 20px 20px; }
    .consent-category { padding: 14px; }
    .consent-category-label { gap: 12px; }
    .consent-dialog-actions { padding: 18px 20px 20px; }
    .footer-legal .consent-settings-link { align-self: center; min-height: 44px; }
    .consent-map-placeholder { padding: 18px; gap: 10px; }
}

@media (max-width: 380px) {
    .consent-dialog-actions { grid-template-columns: 1fr; }
    .consent-dialog-header, .consent-dialog-body, .consent-dialog-actions { padding-left: 16px; padding-right: 16px; }
}

@media (prefers-reduced-motion: reduce) {
    .consent-button, .consent-switch > span::after { transition: none; }
}
