:root {
    --tst-consent-accent: #009fe3;
    --tst-consent-bg: #07131d;
    --tst-consent-panel: #0e2130;
    --tst-consent-text: #f7fafc;
    --tst-consent-muted: #c4d0d9;
    --tst-consent-border: rgba(255,255,255,.18);
}
html.tst-consent-open { overflow: hidden; }

.tst-consent, .tst-consent * { box-sizing: border-box; }
.tst-consent [hidden] { display: none !important; }

.tst-consent__banner {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 2147483000;
    padding: 16px;
    background: rgba(7,19,29,.97);
    color: var(--tst-consent-text);
    border-top: 1px solid var(--tst-consent-border);
    box-shadow: 0 -18px 42px rgba(0,0,0,.28);
    font: 15px/1.5 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.tst-consent__banner-inner {
    width: min(1180px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    gap: 24px;
    align-items: center;
}
.tst-consent__copy h2,
.tst-consent__modal h2,
.tst-consent__category h3 {
    margin: 0;
    color: var(--tst-consent-text);
}
.tst-consent__copy h2 { font-size: 20px; margin-bottom: 5px; }
.tst-consent__copy p { margin: 0; color: var(--tst-consent-muted); }
.tst-consent a { color: #66ccf4; text-decoration: underline; text-underline-offset: 2px; }

.tst-consent__actions,
.tst-consent__modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}
.tst-btn {
    appearance: none;
    border: 1px solid var(--tst-consent-border);
    border-radius: 10px;
    min-height: 42px;
    padding: 9px 16px;
    cursor: pointer;
    font: 700 14px/1.2 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
.tst-btn:hover { transform: translateY(-1px); }
.tst-btn:focus-visible,
.tst-consent__close:focus-visible,
.tst-consent__manage:focus-visible,
.tst-switch input:focus-visible + .tst-switch__slider {
    outline: 3px solid rgba(0,159,227,.45);
    outline-offset: 3px;
}
.tst-btn--accept, .tst-btn--save {
    background: var(--tst-consent-accent);
    border-color: var(--tst-consent-accent);
    color: #00131c;
}
.tst-btn--reject, .tst-btn--settings {
    background: transparent;
    color: var(--tst-consent-text);
}
.tst-btn--reject:hover, .tst-btn--settings:hover {
    background: rgba(255,255,255,.08);
}

.tst-consent__overlay {
    position: fixed; inset: 0;
    z-index: 2147483001;
    background: rgba(0,0,0,.62);
    backdrop-filter: blur(3px);
}
.tst-consent__modal {
    position: fixed;
    inset: 0;
    z-index: 2147483002;
    display: grid;
    place-items: center;
    padding: 22px;
    font: 15px/1.5 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.tst-consent__modal-card {
    width: min(720px, 100%);
    max-height: min(760px, calc(100vh - 44px));
    overflow: auto;
    padding: 24px;
    border-radius: 18px;
    background: var(--tst-consent-panel);
    color: var(--tst-consent-text);
    border: 1px solid var(--tst-consent-border);
    box-shadow: 0 24px 80px rgba(0,0,0,.48);
}
.tst-consent__modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}
.tst-consent__eyebrow {
    margin: 0 0 3px;
    color: #66ccf4;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .1em;
    font-weight: 800;
}
.tst-consent__modal h2 { font-size: clamp(22px, 4vw, 30px); }
.tst-consent__close {
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 1px solid var(--tst-consent-border);
    background: transparent;
    color: var(--tst-consent-text);
    cursor: pointer;
    font-size: 27px;
    line-height: 1;
}
.tst-consent__intro { color: var(--tst-consent-muted); }
.tst-consent__category {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    gap: 20px;
    align-items: center;
    margin-top: 12px;
    padding: 18px;
    border: 1px solid var(--tst-consent-border);
    border-radius: 14px;
    background: rgba(255,255,255,.035);
}
.tst-consent__category h3 { font-size: 16px; margin-bottom: 4px; }
.tst-consent__category p { margin: 0; color: var(--tst-consent-muted); }
.tst-consent__status { color: #9edff8; font-weight: 800; white-space: nowrap; }
.tst-consent__privacy { color: var(--tst-consent-muted); }
.tst-consent__modal-actions { margin-top: 20px; justify-content: flex-end; }

.tst-switch { position: relative; width: 52px; height: 30px; flex: 0 0 auto; }
.tst-switch input { opacity: 0; width: 1px; height: 1px; position: absolute; }
.tst-switch__slider {
    position: absolute; inset: 0;
    border-radius: 999px;
    background: #51616d;
    cursor: pointer;
    transition: background .15s ease;
}
.tst-switch__slider::after {
    content: "";
    position: absolute;
    width: 22px; height: 22px;
    left: 4px; top: 4px;
    border-radius: 50%;
    background: #fff;
    transition: transform .15s ease;
}
.tst-switch input:checked + .tst-switch__slider { background: var(--tst-consent-accent); }
.tst-switch input:checked + .tst-switch__slider::after { transform: translateX(22px); }

.tst-consent__manage {
    position: fixed;
    left: 14px;
    bottom: 14px;
    z-index: 2147482999;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 999px;
    padding: 8px 12px;
    background: #0b1c28;
    color: #fff;
    box-shadow: 0 8px 24px rgba(0,0,0,.24);
    cursor: pointer;
    font: 700 12px/1 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.tst-consent__manage:hover { background: #123248; }
.tst-sr-only {
    position: absolute !important;
    width: 1px !important; height: 1px !important;
    padding: 0 !important; margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0,0,0,0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

@media (max-width: 780px) {
    .tst-consent__banner-inner { grid-template-columns: 1fr; gap: 14px; }
    .tst-consent__actions { display: grid; grid-template-columns: 1fr; }
    .tst-btn { width: 100%; }
    .tst-consent__modal-actions { display: grid; grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    .tst-consent *, .tst-consent *::before, .tst-consent *::after { transition: none !important; }
}
