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

:root {
    --consent-bg: rgba(255, 255, 255, .96);
    --consent-ink: #09090b;
    --consent-muted: #626773;
    --consent-line: rgba(9, 9, 11, .12);
    --consent-yellow: #ffd21f;
    --consent-yellow-soft: #fff5bf;
    --consent-shadow: 0 24px 70px rgba(0, 0, 0, .3);
}

.consent-shell {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    width: 100%;
    min-height: 100dvh;
    padding: 18px;
    overflow-x: hidden;
    overflow-y: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(8, 10, 15, .54);
    backdrop-filter: blur(4px);
    pointer-events: auto;
}


body.site-bg > .consent-shell {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
}

.consent-shell[hidden] {
    display: none;
}

.consent-card {
    width: min(100%, 680px);
    max-width: calc(100vw - 36px);
    padding: 22px;
    color: var(--consent-ink);
    background: var(--consent-bg);
    border: 1px solid rgba(255, 210, 31, .42);
    border-radius: 8px;
    box-shadow: var(--consent-shadow);
    backdrop-filter: blur(18px);
    pointer-events: auto;
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
}

.consent-main {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    align-items: stretch;
}

.consent-copy strong {
    display: block;
    margin: 0 0 6px;
    font-size: 18px;
    line-height: 1.2;
}

.consent-copy p {
    max-width: none;
    margin: 0;
    color: var(--consent-muted);
    font-size: 14px;
    line-height: 1.45;
}

.consent-policy-link {
    display: inline-flex;
    width: fit-content;
    margin-top: 10px;
    color: var(--consent-ink);
    font-size: 13px;
    font-weight: 700;
    text-decoration-color: var(--consent-yellow);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

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

.consent-btn {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 0 18px;
    color: var(--consent-ink);
    font: 700 14px/1 'Satoshi', Arial, sans-serif;
    background: linear-gradient(180deg, #ffe36d 0%, var(--consent-yellow) 100%);
    border: 1px solid rgba(9, 9, 11, .16);
    border-radius: 999px;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75), 0 8px 18px rgba(255, 210, 31, .18);
}

.consent-btn:hover {
    background: linear-gradient(180deg, #ffdf54 0%, #ffc400 100%);
}

.consent-btn.secondary {
    background: rgba(255, 255, 255, .72);
    border-color: rgba(9, 9, 11, .14);
    box-shadow: none;
}

.consent-preferences {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--consent-line);
}

.consent-preferences[hidden] {
    display: none;
}

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

.consent-option {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    min-height: 74px;
    padding: 12px;
    background: rgba(255, 255, 255, .66);
    border: 1px solid var(--consent-line);
    border-radius: 8px;
}

.consent-option input {
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
    accent-color: var(--consent-yellow);
}

.consent-option strong {
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
}

.consent-option span {
    display: block;
    color: var(--consent-muted);
    font-size: 12px;
    line-height: 1.35;
}

.consent-save-row {
    display: flex;
    justify-content: flex-end;
}

@media (max-width: 760px) {
    .consent-shell {
        padding: 14px;
        overflow-x: clip;
    }

    .consent-card {
        width: 100%;
        max-width: calc(100vw - 28px);
        max-height: calc(100dvh - 28px);
        padding: 18px;
        border-radius: 8px;
    }

    .consent-main {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .consent-copy p {
        max-width: none;
    }

    .consent-actions,
    .consent-save-row {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        width: 100%;
    }

    .consent-options {
        grid-template-columns: minmax(0, 1fr);
    }

    .consent-btn {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        white-space: normal;
    }
}
