.site-consent {
    position: fixed;
    inset: 0;
    z-index: 2200;
    display: grid;
    place-items: center;
    box-sizing: border-box;
    padding: clamp(16px, 4vw, 40px);
    color: white;
    font-family: Arial, sans-serif;
}

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

.site-consent__backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 12%, rgba(56, 189, 248, .22), transparent 34%),
        radial-gradient(circle at 85% 88%, rgba(99, 102, 241, .24), transparent 38%),
        rgba(2, 6, 23, .92);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}

.site-consent__dialog {
    position: relative;
    width: min(100%, 680px);
    max-height: calc(100vh - 32px);
    max-height: calc(100svh - 32px);
    overflow: auto;
    box-sizing: border-box;
    padding: clamp(24px, 5vw, 44px);
    border: 1px solid rgba(125, 211, 252, .24);
    border-radius: 30px;
    background:
        radial-gradient(circle at top left, rgba(56, 189, 248, .14), transparent 42%),
        radial-gradient(circle at bottom right, rgba(99, 102, 241, .16), transparent 40%),
        rgba(8, 15, 35, .96);
    box-shadow:
        0 32px 100px rgba(0, 0, 0, .58),
        0 0 0 1px rgba(255, 255, 255, .035) inset;
}

.site-consent__eyebrow {
    display: inline-flex;
    margin-bottom: 14px;
    color: #7dd3fc;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.site-consent__dialog h2 {
    margin: 0;
    color: white;
    font-size: clamp(32px, 6vw, 54px);
    line-height: 1.04;
}

.site-consent__dialog > p {
    color: #cbd5e1;
    line-height: 1.65;
}

.site-consent__agreement {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 13px;
    align-items: start;
    margin-top: 26px;
    padding: 18px;
    border: 1px solid rgba(125, 211, 252, .18);
    border-radius: 18px;
    color: #e2e8f0;
    background: rgba(255, 255, 255, .045);
    cursor: pointer;
    line-height: 1.55;
}

.site-consent__agreement:focus-within {
    border-color: rgba(125, 211, 252, .7);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, .13);
}

.site-consent__agreement input {
    width: 21px;
    height: 21px;
    margin: 2px 0 0;
    accent-color: #38bdf8;
}

.site-consent__agreement a {
    color: #7dd3fc;
    font-weight: 700;
}

.site-consent__error {
    min-height: 22px;
    margin: 8px 0 0;
    color: #fca5a5 !important;
    font-size: 14px;
}

.site-consent__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.site-consent__actions .btn {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 12px 18px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 12px;
    color: white;
    background: rgba(255, 255, 255, .055);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}

.site-consent__actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 18px rgba(56, 189, 248, .24);
}

.site-consent__actions .btn-primary {
    border: 0;
    background: linear-gradient(135deg, #38bdf8, #6366f1);
}

.site-consent__actions .btn:disabled {
    opacity: .42;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.site-consent__note {
    margin-bottom: 10px;
    font-size: 14px;
}

.site-consent__leave {
    display: inline-flex;
    padding: 8px 0;
    color: rgba(255, 255, 255, .62);
    font-size: 14px;
}

.site-consent__leave:hover {
    color: white;
}

body.site-consent-open {
    overflow: hidden;
}

@media (max-width: 640px) {
    .site-consent {
        padding: 10px;
    }

    .site-consent__dialog {
        max-height: calc(100vh - 20px);
        max-height: calc(100svh - 20px);
        padding: 24px 18px;
        border-radius: 22px;
    }

    .site-consent__dialog h2 {
        font-size: clamp(29px, 10vw, 40px);
    }

    .site-consent__agreement {
        padding: 15px;
    }

    .site-consent__actions {
        display: grid;
    }

    .site-consent__actions .btn {
        width: 100%;
    }
}

@media (orientation: landscape) and (max-height: 620px) {
    .site-consent {
        align-items: start;
        padding: 8px;
    }

    .site-consent__dialog {
        max-height: calc(100vh - 16px);
        max-height: calc(100svh - 16px);
        padding-top: 20px;
        padding-bottom: 20px;
    }
}
