:root {
    --tc-z: 1080;
    --tc-surface: #101216;
    --tc-panel: #15181d;
    --tc-text: #f4f4f2;
    --tc-muted: #b6b7b8;
    --tc-accent: #ffffff;
    --tc-border: rgba(255, 255, 255, .14);
    --tc-radius: 0;
    --tc-shadow: 0 18px 52px rgba(0, 0, 0, .32);
    --tc-font: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.tc-modal-open {
    overflow: hidden;
}

.tc-banner {
    position: fixed;
    inset: auto 0 0;
    z-index: var(--tc-z);
    display: none;
    font-family: var(--tc-font);
    color: var(--tc-text);
    background: rgba(16, 18, 22, .98);
    border-top: 1px solid var(--tc-border);
    box-shadow: 0 -12px 40px rgba(0, 0, 0, .22);
    backdrop-filter: blur(14px);
}

.tc-banner[data-visible="1"] {
    display: block;
}

.tc-banner__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 28px;
    max-width: 1440px;
    margin: 0 auto;
    padding: 20px 24px;
}

.tc-banner__title {
    margin-bottom: 5px;
    font-size: 1rem;
    font-weight: 650;
    letter-spacing: .01em;
}

.tc-banner__intro,
.tc-banner__note {
    max-width: 820px;
    color: var(--tc-muted);
    font-size: .875rem;
    line-height: 1.55;
}

.tc-banner__note {
    margin-top: 3px;
    font-size: .8rem;
}

.tc-banner__actions,
.tc-modal__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tc-banner__actions {
    justify-content: flex-end;
}

.tc-link {
    color: var(--tc-text);
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, .45);
    text-underline-offset: 3px;
}

.tc-link:hover,
.tc-link:focus-visible {
    color: var(--tc-text);
    text-decoration-color: currentColor;
}

.tc-btn {
    min-height: 42px;
    padding: 10px 16px;
    border: 1px solid var(--tc-border);
    border-radius: var(--tc-radius);
    font: inherit;
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .015em;
    cursor: pointer;
    transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}

.tc-btn:focus-visible,
.tc-modal__close:focus-visible,
.tc-switch input:focus-visible + .tc-switch__ui {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
}

.tc-btn--choice {
    min-width: 124px;
    color: var(--tc-text);
    background: transparent;
    border-color: rgba(255, 255, 255, .52);
}

.tc-btn--choice:hover {
    color: #111111;
    background: #ffffff;
    border-color: #ffffff;
}

.tc-btn--primary {
    color: #111111;
    background: #ffffff;
    border-color: #ffffff;
}

.tc-btn--primary:hover {
    background: #e8e8e5;
    border-color: #e8e8e5;
}

.tc-btn--secondary {
    color: var(--tc-muted);
    background: transparent;
    border-color: transparent;
}

.tc-btn--secondary:hover {
    color: var(--tc-text);
    background: rgba(255, 255, 255, .07);
}

.tc-modal__backdrop {
    position: fixed;
    inset: 0;
    z-index: calc(var(--tc-z) + 1);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, .66);
}

.tc-modal__backdrop.is-open {
    display: flex;
}

.tc-modal {
    width: min(700px, 100%);
    max-height: calc(100vh - 48px);
    overflow: auto;
    color: var(--tc-text);
    font-family: var(--tc-font);
    background: var(--tc-panel);
    border: 1px solid var(--tc-border);
    border-radius: var(--tc-radius);
    box-shadow: var(--tc-shadow);
}

.tc-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 24px 12px;
}

.tc-modal__title {
    font-size: 1.2rem;
    font-weight: 650;
}

.tc-modal__close {
    width: 40px;
    height: 40px;
    padding: 0;
    color: var(--tc-muted);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    background: transparent;
    border: 0;
}

.tc-modal__close:hover {
    color: var(--tc-text);
}

.tc-modal__body {
    padding: 0 24px 18px;
}

.tc-modal__actions {
    justify-content: flex-end;
    padding: 18px 24px 24px;
    border-top: 1px solid var(--tc-border);
}

.tc-modal__note {
    margin: 18px 0 0;
    color: var(--tc-muted);
    font-size: .82rem;
    line-height: 1.5;
}

.tc-modal__links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
    color: var(--tc-muted);
    font-size: .82rem;
}

.tc-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 20px;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--tc-border);
}

.tc-row__label {
    font-size: .92rem;
    font-weight: 600;
}

.tc-row__desc {
    margin-top: 4px;
    color: var(--tc-muted);
    font-size: .84rem;
    line-height: 1.5;
}

.tc-pill {
    display: inline-block;
    margin-left: 7px;
    padding: 2px 7px;
    color: var(--tc-muted);
    font-size: .68rem;
    font-weight: 550;
    vertical-align: 1px;
    border: 1px solid var(--tc-border);
}

.tc-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
}

.tc-switch input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.tc-switch__ui {
    position: absolute;
    inset: 0;
    cursor: pointer;
    background: #292d34;
    border: 1px solid var(--tc-border);
    border-radius: 999px;
    transition: background-color .18s ease, border-color .18s ease;
}

.tc-switch__ui::after {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    content: "";
    background: #ffffff;
    border-radius: 50%;
    transition: transform .18s ease;
}

.tc-switch input:checked + .tc-switch__ui {
    background: #ffffff;
    border-color: #ffffff;
}

.tc-switch input:checked + .tc-switch__ui::after {
    background: #111111;
    transform: translateX(22px);
}

.tc-switch[data-lock="1"] .tc-switch__ui {
    cursor: not-allowed;
    opacity: .55;
}

.footer-cookie-settings {
    padding: 0;
    font: inherit;
    text-align: left;
    cursor: pointer;
    background: transparent;
    border: 0;
}

@media (max-width: 820px) {
    .tc-banner__inner {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .tc-banner__actions {
        justify-content: stretch;
    }

    .tc-banner__actions .tc-btn {
        flex: 1 1 150px;
    }

    .tc-modal__actions .tc-btn--secondary {
        display: none;
    }
}

@media (max-width: 560px) {
    .tc-banner__inner {
        padding: 18px 16px;
    }

    .tc-banner__actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .tc-banner__actions .tc-btn--secondary {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .tc-modal__backdrop {
        align-items: flex-end;
        padding: 0;
    }

    .tc-modal {
        width: 100%;
        max-height: 92vh;
        border-right: 0;
        border-bottom: 0;
        border-left: 0;
    }

    .tc-modal__head,
    .tc-modal__body {
        padding-right: 18px;
        padding-left: 18px;
    }

    .tc-modal__actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        padding: 16px 18px 20px;
    }

    .tc-modal__actions .tc-btn--primary {
        grid-column: 1 / -1;
        grid-row: 1;
    }

    .tc-modal__actions .tc-btn--choice {
        min-width: 0;
    }
}
