.consent-open {
    overflow: hidden;
}

.consent-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(4, 7, 11, 0.56);
    backdrop-filter: blur(7px);
}

.consent-dialog {
    width: min(610px, 100%);
    max-height: min(720px, calc(100vh - 36px));
    overflow: auto;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 22px;
    background: #151c26;
    color: #f5f7fb;
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.58);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.consent-dialog h2,
.consent-dialog p {
    margin: 0;
}

.consent-dialog h2 {
    margin-bottom: 9px;
    font-size: 25px;
}

.consent-dialog p {
    color: #b7c1ce;
    font-size: 14px;
    line-height: 1.55;
}

.consent-options {
    display: grid;
    gap: 9px;
    margin: 18px 0;
}

.consent-option {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    padding: 11px;
    background: rgba(255, 255, 255, 0.035);
}

.consent-option input {
    width: 17px;
    height: 17px;
    margin: 2px 0 0;
    accent-color: #f4ca55;
}

.consent-option strong,
.consent-option span {
    display: block;
}

.consent-option strong {
    color: #f6f8fb;
    font-size: 14px;
}

.consent-option span {
    margin-top: 4px;
    color: #aeb9c7;
    font-size: 13px;
    line-height: 1.45;
}

.consent-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.consent-actions button {
    min-height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 7px;
    padding: 0 12px;
    background: #242c38;
    color: #f5f7fb;
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 850;
}

.consent-actions .consent-primary {
    border-color: #f4ca55;
    background: #f4ca55;
    color: #171202;
}

.consent-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}

.consent-links a {
    color: #8db8ff;
    font-size: 12px;
    font-weight: 750;
    text-decoration: none;
}

.legal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    padding: 19px 16px 24px;
    background: #090c11;
}

.legal-footer nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

.legal-footer a,
.legal-footer button {
    border: 0;
    padding: 0;
    color: #aeb9c7;
    background: transparent;
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

@media (max-width: 520px) {
    .consent-dialog {
        padding: 17px;
    }

    .consent-actions button {
        width: 100%;
    }
}

.consent-dialog {
    border-color: var(--theme-border);
    border-radius: 16px;
    background: rgba(15, 20, 32, 0.98);
    box-shadow: var(--theme-glow);
}

.consent-actions .consent-primary {
    border-color: var(--theme-accent);
    color: #ffffff;
    background: var(--theme-accent);
}

.legal-footer {
    border-color: var(--theme-border);
    background: rgba(10, 13, 20, 0.84);
}
