:root {
    --sfc-gdpr-primary: #25327b;
    --sfc-gdpr-accent: #21afec;
    --sfc-gdpr-text: #231f20;
    --sfc-gdpr-muted: #62677a;
    --sfc-gdpr-border: #e5e7f0;
    --sfc-gdpr-surface: #ffffff;
}

html.sfc-gdpr-open,
html.sfc-gdpr-open body {
    overflow: hidden;
}

#sfc-gdpr-overlay {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 20px;
    background: rgba(20, 28, 75, 0.62);
    backdrop-filter: blur(2px);
    font-family: Montserrat, Arial, sans-serif;
}

#sfc-gdpr-overlay *,
#sfc-gdpr-overlay *::before,
#sfc-gdpr-overlay *::after {
    box-sizing: border-box;
}

#sfc-gdpr-modal {
    width: min(100%, 460px);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 32px 32px 24px;
    border: 1px solid rgba(37, 50, 123, 0.08);
    border-radius: 16px;
    outline: none;
    background: var(--sfc-gdpr-surface);
    box-shadow: 0 24px 60px rgba(15, 23, 70, 0.25);
    color: var(--sfc-gdpr-text);
    text-align: center;
    animation: sfcGdprFadeIn 0.25s ease-out;
}

#sfc-gdpr-modal h2 {
    margin: 0 0 10px;
    color: var(--sfc-gdpr-primary);
    font-family: inherit;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.3;
}

#sfc-gdpr-modal > p {
    margin: 0 0 22px;
    color: var(--sfc-gdpr-muted);
    font-size: 14px;
    line-height: 1.65;
}

.sfc-toggle {
    display: flex;
    gap: 18px;
    align-items: center;
    justify-content: space-between;
    min-height: 46px;
    padding: 10px 0;
    border-top: 1px solid var(--sfc-gdpr-border);
    color: var(--sfc-gdpr-text);
    font-size: 14px;
    text-align: left;
}

.sfc-toggle:first-of-type {
    border-top: 0;
}

.sfc-toggle label {
    margin: 0;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

.sfc-toggle input[type="checkbox"] {
    flex: 0 0 auto;
    width: 19px;
    height: 19px;
    margin: 0;
    accent-color: var(--sfc-gdpr-accent);
    cursor: pointer;
}

.sfc-toggle input[type="checkbox"]:disabled {
    cursor: not-allowed;
    opacity: 0.72;
}

#sfc-gdpr-buttons {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

#sfc-gdpr-buttons button {
    flex: 1 1 0;
    min-height: 44px;
    margin: 0;
    padding: 11px 15px;
    border: 1px solid transparent;
    border-radius: 8px;
    box-shadow: none;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    text-transform: none;
    cursor: pointer;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

#sfc-accept-all {
    border-color: var(--sfc-gdpr-accent);
    background: var(--sfc-gdpr-accent);
    color: #ffffff;
}

#sfc-accept-all:hover,
#sfc-accept-all:focus-visible {
    border-color: var(--sfc-gdpr-primary);
    background: var(--sfc-gdpr-primary);
    color: #ffffff;
}

#sfc-save-preferences {
    border-color: var(--sfc-gdpr-primary);
    background: #ffffff;
    color: var(--sfc-gdpr-primary);
}

#sfc-save-preferences:hover,
#sfc-save-preferences:focus-visible {
    border-color: var(--sfc-gdpr-primary);
    background: var(--sfc-gdpr-primary);
    color: #ffffff;
}

#sfc-gdpr-modal .sfc-gdpr-policy-link {
    display: inline-block;
    margin-top: 18px;
    color: var(--sfc-gdpr-primary);
    font-size: 13px;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

#sfc-gdpr-modal .sfc-gdpr-policy-link:hover,
#sfc-gdpr-modal .sfc-gdpr-policy-link:focus-visible {
    color: var(--sfc-gdpr-accent);
}

#sfc-gdpr-buttons button:focus-visible,
#sfc-gdpr-modal a:focus-visible,
.sfc-toggle input:focus-visible {
    outline: 3px solid rgba(33, 175, 236, 0.35);
    outline-offset: 3px;
}

@keyframes sfcGdprFadeIn {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 520px) {
    #sfc-gdpr-overlay {
        align-items: flex-end;
        padding: 12px;
    }

    #sfc-gdpr-modal {
        max-height: calc(100vh - 24px);
        padding: 26px 20px 20px;
        border-radius: 14px;
    }

    #sfc-gdpr-buttons {
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    #sfc-gdpr-modal {
        animation: none;
    }

    #sfc-gdpr-buttons button {
        transition: none;
    }
}

