

.consent-embed { position: relative; }

.consent-embed > iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.consent-gate {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    min-height: 220px;
    padding: 30px 24px;
    border-radius: var(--radius, 18px);
    text-align: center;

    background:
        radial-gradient(130% 120% at 50% 0%, rgba(var(--color-primary-rgb, 26, 43, 73), 0.10), rgba(var(--color-primary-rgb, 26, 43, 73), 0) 68%),
        var(--color-accent, #f2f2f2);
}

.consent-gate-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    max-width: 420px;
}

.consent-gate-icon {
    width: 30px;
    height: 30px;
    color: var(--color-primary, #1a2b49);
    opacity: 0.75;
}

.consent-gate-title {
    margin: 2px 0 0;
    font-weight: 600;
    font-size: 1rem;
    color: var(--color-primary, #1a2b49);
}

.consent-gate-text {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.55;
    color: var(--text-muted, #666666);
}

.consent-gate-btn { margin-top: 6px; }

.consent-gate-link {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    font-size: 0.8rem;
    color: var(--text-muted, #666666);
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.consent-gate-link:hover { color: var(--color-primary, #1a2b49); }

@media (max-width: 560px) {
    .consent-gate { padding: 20px 16px; min-height: 180px; }
    .consent-gate-text { display: none; }
}

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

.consent-modal {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.consent-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 14, 22, 0.55);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.consent-modal-panel {
    position: relative;
    width: min(560px, 100%);
    max-height: min(88vh, 780px);
    overflow-y: auto;
    box-sizing: border-box;
    padding: 32px 30px 26px;
    border-radius: var(--radius, 18px);
    background: var(--white, #ffffff);
    box-shadow: 0 24px 70px rgba(10, 14, 22, 0.28);
}

.consent-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--text-muted, #666666);
    cursor: pointer;
}

.consent-modal-close:hover { background: var(--color-accent, #f2f2f2); }
.consent-modal-close svg { width: 15px; height: 15px; fill: none; }

.consent-modal-panel h2 {
    margin: 0 0 8px;
    font-size: 1.22rem;
    color: var(--color-primary, #1a2b49);
}

.consent-modal-intro {
    margin: 0 0 22px;
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--text-muted, #666666);
}

.consent-option { padding: 16px 0; border-top: 1px solid var(--border, #eaeae6); }

.consent-option-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.consent-option-label {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-primary, #1a2b49);
    cursor: pointer;
}

.consent-option-fixed .consent-option-label { cursor: default; }

.consent-option-always {
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--text-muted, #666666);
}

.consent-option-text {
    margin: 8px 0 0;
    font-size: 0.84rem;
    line-height: 1.6;
    color: var(--text-muted, #666666);
}

.consent-option-provider {
    margin: 6px 0 0;
    font-size: 0.78rem;
    color: var(--text-muted, #666666);
    opacity: 0.85;
}

.consent-switch { flex: 0 0 auto; display: inline-flex; cursor: pointer; }
.consent-switch input { position: absolute; opacity: 0; width: 0; height: 0; }

.consent-switch-track {
    position: relative;
    display: block;
    width: 44px;
    height: 25px;
    border-radius: 25px;
    background: rgba(var(--color-primary-rgb, 26, 43, 73), 0.16);
    transition: background 0.18s ease;
}

.consent-switch-track::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 19px;
    height: 19px;
    border-radius: 50%;
    background: var(--white, #ffffff);
    box-shadow: 0 1px 3px rgba(10, 14, 22, 0.28);
    transition: transform 0.18s ease;
}

.consent-switch input:checked + .consent-switch-track { background: var(--color-primary, #1a2b49); }
.consent-switch input:checked + .consent-switch-track::after { transform: translateX(19px); }
.consent-switch input:focus-visible + .consent-switch-track { box-shadow: var(--focus-glow, 0 0 0 3px rgba(26, 43, 73, 0.16)); }

.consent-modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border, #eaeae6);
}

.consent-modal-actions .btn { flex: 1 1 auto; text-align: center; }

.consent-modal-foot {
    margin: 16px 0 0;
    font-size: 0.8rem;
    color: var(--text-muted, #666666);
}

.consent-modal-foot a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.consent-modal-foot a:hover { color: var(--color-primary, #1a2b49); }

@media (max-width: 560px) {
    .consent-modal { padding: 0; align-items: flex-end; }
    .consent-modal-panel {
        width: 100%;
        max-height: 92vh;
        border-radius: var(--radius, 18px) var(--radius, 18px) 0 0;
        padding: 26px 20px 22px;
    }
    .consent-modal-actions .btn { flex: 1 1 100%; }
}

.consent-settings-link {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.consent-settings-link:hover { text-decoration: underline; }
