.has-consent-dialog {
    overflow: hidden;
}

.consent-banner,
.consent-banner * {
    box-sizing: border-box;
}

.consent-banner[hidden],
.consent-tab-panel[hidden],
.consent-details[hidden],
.consent-close[hidden] {
    display: none !important;
}

.consent-banner {
    position: fixed;
    inset: 0;
    z-index: 10000;
    color: #fff;
    font-family: Lato, Arial, sans-serif;
}

.consent-backdrop {
    display: grid;
    width: 100%;
    height: 100%;
    padding: 24px;
    overflow-y: auto;
    place-items: center;
    background: rgba(5, 6, 9, .82);
    backdrop-filter: blur(14px);
}

.consent-dialog {
    width: min(820px, 100%);
    max-height: min(820px, calc(100vh - 48px));
    overflow: hidden;
    border: 1px solid rgba(91, 142, 255, .38);
    border-radius: 28px;
    background:
        radial-gradient(circle at 90% 0, rgba(204, 72, 151, .16), transparent 36%),
        radial-gradient(circle at 0 100%, rgba(76, 137, 255, .16), transparent 38%),
        #1a1a1b;
    box-shadow: 0 32px 90px rgba(0, 0, 0, .5);
    outline: none;
}

.consent-header {
    position: relative;
    display: grid;
    grid-template-columns: 170px 1fr;
    gap: 34px;
    padding: 34px 38px 28px;
}

.consent-header > img {
    width: 170px;
    height: auto;
    margin-top: 7px;
}

.consent-header h2 {
    margin: 0 0 10px;
    color: #fff;
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -.035em;
}

.consent-header p {
    margin: 0;
    color: #aaa;
    font-size: 15px;
    line-height: 1.65;
}

.consent-close {
    position: absolute;
    top: 20px;
    right: 22px;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid #3d3d40;
    border-radius: 50%;
    color: #fff;
    background: #202022;
    font: 300 25px/34px Arial, sans-serif;
    cursor: pointer;
}

.consent-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 0 38px;
    border-bottom: 1px solid #333337;
}

.consent-tab {
    position: relative;
    padding: 17px 12px;
    border: 0;
    color: #909094;
    background: transparent;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.consent-tab::after {
    position: absolute;
    right: 12px;
    bottom: -1px;
    left: 12px;
    height: 2px;
    content: "";
    background: transparent;
}

.consent-tab.is-active {
    color: #fff;
}

.consent-tab.is-active::after {
    background: #5790ff;
}

.consent-panels {
    max-height: min(330px, 38vh);
    padding: 8px 38px;
    overflow-y: auto;
    scrollbar-color: #5790ff #202022;
    scrollbar-width: thin;
}

.consent-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: start;
    padding: 23px 0;
    border-bottom: 1px solid #303034;
}

.consent-item:last-child {
    border-bottom: 0;
}

.consent-item-copy strong {
    display: block;
    margin-bottom: 7px;
    color: #fff;
    font-size: 16px;
}

.consent-item-copy p {
    max-width: 630px;
    margin: 0;
    color: #a6a6aa;
    font-size: 14px;
    line-height: 1.6;
}

.consent-item-copy .consent-details {
    margin-top: 10px;
    color: #c1c1c5;
}

.consent-more {
    margin-top: 9px;
    padding: 0;
    border: 0;
    color: #71a2ff;
    background: transparent;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.consent-item-control {
    padding-top: 3px;
}

.consent-required {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    padding: 0 11px;
    border: 1px solid rgba(87, 144, 255, .45);
    border-radius: 999px;
    color: #88aeff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.consent-switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 30px;
}

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

.consent-switch .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.consent-switch > span:last-child {
    position: absolute;
    inset: 0;
    border: 1px solid #49494e;
    border-radius: 999px;
    background: #2b2b2e;
    cursor: pointer;
    transition: .2s ease;
}

.consent-switch > span:last-child::before {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    content: "";
    background: #8c8c91;
    transition: .2s ease;
}

.consent-switch input:checked + span {
    border-color: #5790ff;
    background: #396fcf;
}

.consent-switch input:checked + span::before {
    transform: translateX(22px);
    background: #fff;
}

.consent-switch input:focus-visible + span,
.consent-button:focus-visible,
.consent-tab:focus-visible,
.consent-close:focus-visible,
.consent-more:focus-visible,
.footer-consent-settings:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.consent-empty {
    margin: 24px 0;
    padding: 24px;
    border: 1px dashed #3c3c41;
    border-radius: 15px;
    color: #99999e;
    text-align: center;
}

.consent-footer {
    padding: 24px 38px 30px;
    border-top: 1px solid #333337;
}

.consent-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.consent-button {
    min-height: 48px;
    padding: 10px 16px;
    border: 1px solid #414146;
    border-radius: 999px;
    color: #fff;
    background: #242426;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.consent-button:hover {
    transform: translateY(-1px);
    border-color: #6b6b72;
}

.consent-button-primary {
    border-color: #5790ff;
    color: #101116;
    background: #5790ff;
}

.consent-button-secondary {
    border-color: rgba(87, 144, 255, .6);
}

.consent-privacy-link {
    display: table;
    margin: 16px auto 0;
    color: #94949a;
    font-size: 12px;
    text-decoration: underline;
}

.footer-consent-settings {
    display: block;
    margin-top: 12px;
    padding: 0;
    border: 0;
    color: #888;
    background: transparent;
    font: inherit;
    font-size: 12px;
    cursor: pointer;
}

.footer-consent-settings:hover {
    color: #fff;
}

@media (max-width: 700px) {
    .consent-backdrop {
        align-items: end;
        padding: 0;
    }

    .consent-dialog {
        max-height: 94vh;
        border-right: 0;
        border-bottom: 0;
        border-left: 0;
        border-radius: 24px 24px 0 0;
    }

    .consent-header {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 26px 20px 22px;
    }

    .consent-header > img {
        width: 142px;
        margin: 0;
    }

    .consent-header h2 {
        padding-right: 26px;
        font-size: 25px;
    }

    .consent-close {
        top: 16px;
        right: 16px;
    }

    .consent-tabs {
        padding: 0 12px;
    }

    .consent-tab {
        padding: 14px 5px;
        font-size: 12px;
    }

    .consent-panels {
        max-height: 31vh;
        padding: 4px 20px;
    }

    .consent-item {
        gap: 12px;
        padding: 18px 0;
    }

    .consent-footer {
        padding: 18px 20px 22px;
    }

    .consent-actions {
        grid-template-columns: 1fr;
    }

    .consent-button-primary {
        grid-row: 1;
    }
}
