


/* =========================================================
   PRIVACY CONSENT
========================================================= */

.privacy-consent-overlay {
    position: fixed;
    inset: 0;

    z-index: 999999;

    display: flex;
    align-items: flex-end;
    justify-content: center;

    padding: 20px;

    pointer-events: none;
}

.privacy-consent-overlay.is-hidden {
    display: none;
}


/* =========================================================
   MAIN BANNER
========================================================= */

.privacy-consent-modal {
    position: relative;

    width: min(100%, 1100px);

    background: #000000e0;

    border: 1px solid #e5e7eb;

    border-radius: 20px;

    box-shadow:
        0 20px 60px rgba(15, 23, 42, 0.16);

    overflow: hidden;

    pointer-events: auto;

    animation:
        privacyBannerIn 0.35s ease;
}


@keyframes privacyBannerIn {

    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}


/* =========================================================
   ACCENT
========================================================= */

.privacy-consent-accent {
    height: 4px;

    background:
        linear-gradient(
            90deg,
            #2563eb,
            #3b82f6,
            #f97316
        );
}


/* =========================================================
   INNER
========================================================= */

.privacy-consent-inner {
    padding: 26px 30px 24px;
}


/* =========================================================
   BRAND
========================================================= */

.privacy-consent-brand {
    display: flex;

    align-items: center;

    gap: 14px;

    margin-bottom: 18px;
}


.privacy-consent-icon {
    width: 46px;
    height: 46px;

    display: flex;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 14px;

    background: #eff6ff;

    color: #2563eb;

    font-size: 19px;
}


.privacy-consent-label {
    display: block;

    margin-bottom: 3px;

    color: #2563eb;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 1.6px;
}


.privacy-consent-heading h2 {
    margin: 0;

        color: #ff9207;

    font-size: 21px;

    line-height: 1.25;

    font-weight: 750;
}


/* =========================================================
   DESCRIPTION
========================================================= */

.privacy-consent-description {
    margin: 0 0 18px;

    max-width: 850px;

    color: white;

    font-size: 14px;

    line-height: 1.7;
}


/* =========================================================
   STATUS
========================================================= */

.privacy-consent-status {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 10px;

    margin-bottom: 17px;
}


.privacy-status-item {
    display: flex;

    align-items: center;

    gap: 8px;

    padding: 11px 13px;

    background: #f8fafc;

    border: 1px solid #e8edf3;

    border-radius: 11px;

    color: #475569;

    font-size: 12px;

    white-space: nowrap;
}


.privacy-status-item strong {
    margin-left: auto;

    color: #64748b;

    font-size: 10px;

    font-weight: 700;
}


.privacy-status-dot {
    width: 7px;
    height: 7px;

    flex-shrink: 0;

    border-radius: 50%;
}


.necessary-dot {
    background: #22c55e;
}


.analytics-dot {
    background: #3b82f6;
}


.advertising-dot {
    background: #f97316;
}


/* =========================================================
   LINKS
========================================================= */

.privacy-consent-links {
    display: flex;

    align-items: center;

    gap: 8px;

    margin-bottom: 20px;
}


.privacy-consent-links a {
    color: #2563eb;

    font-size: 12px;

    font-weight: 650;

    text-decoration: none;
}


.privacy-consent-links a:hover {
    text-decoration: underline;
}


.privacy-consent-links span {
    color: #cbd5e1;

    font-size: 11px;
}


/* =========================================================
   ACTIONS
========================================================= */

.privacy-consent-actions {
    display: flex;

    justify-content: flex-end;

    align-items: center;

    gap: 10px;

    padding-top: 17px;

    border-top: 1px solid #eef2f7;
}


.privacy-btn {
    min-height: 42px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 8px;

    padding: 0 17px;

    border-radius: 10px;

    border: 1px solid transparent;

    font-family: inherit;

    font-size: 12px;

    font-weight: 700;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}


.privacy-btn:hover {
    transform: translateY(-1px);
}


.privacy-btn-settings {
    background: #ffffff;

    color: #475569;

    border-color: #dbe3ec;
}


.privacy-btn-settings:hover {
    background: #f8fafc;
}


.privacy-btn-secondary {
    background: #ffffff;

        color: #47556970;

    border-color: #dbe3ec;
}


.privacy-btn-secondary:hover {
    background: #f8fafc;
}


.privacy-btn-primary {
    background: #3325eb;
    /* background: #2563eb; */

    color: #ffffff;

    border-color: #ffffff;

    box-shadow:
        0 7px 18px rgba(37, 99, 235, 0.18);
}


.privacy-btn-primary:hover {
    background: #1d4ed8;

    border-color: #1d4ed8;
}


/* =========================================================
   PREFERENCES OVERLAY
========================================================= */

.privacy-preferences-overlay {
    position: fixed;

    inset: 0;

    z-index: 1000000;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 20px;

    background:
        rgba(15, 23, 42, 0.48);

    backdrop-filter: blur(5px);

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;
}


.privacy-preferences-overlay.is-visible {
    opacity: 1;

    visibility: visible;

    pointer-events: auto;
}


/* =========================================================
   PREFERENCES MODAL
========================================================= */

.privacy-preferences-modal {
    width: min(100%, 650px);

    max-height: min(90vh, 760px);

    overflow-y: auto;

    background: #ffffff;

    border: 1px solid #e5e7eb;

    border-radius: 20px;

    box-shadow:
        0 25px 80px rgba(15, 23, 42, 0.25);

    padding: 28px;

    transform: translateY(12px) scale(0.98);

    transition:
        transform 0.25s ease;
}


.privacy-preferences-overlay.is-visible
.privacy-preferences-modal {
    transform: translateY(0) scale(1);
}


/* =========================================================
   PREFERENCES HEADER
========================================================= */

.privacy-preferences-header {
    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    gap: 20px;

    padding-bottom: 18px;

    border-bottom: 1px solid #eef2f7;
}


.privacy-preferences-header h2 {
    margin: 0;

    color: #111827;

    font-size: 22px;

    line-height: 1.3;

    font-weight: 750;
}


.privacy-preferences-close {
    width: 38px;
    height: 38px;

    display: flex;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border: 1px solid #e2e8f0;

    border-radius: 10px;

    background: #ffffff;

    color: #64748b;

    cursor: pointer;

    font-size: 16px;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}


.privacy-preferences-close:hover {
    background: #f8fafc;

    color: #111827;
}


/* =========================================================
   PREFERENCES DESCRIPTION
========================================================= */

.privacy-preferences-description {
    margin: 18px 0;

    color: #64748b;

    font-size: 13px;

    line-height: 1.7;
}


/* =========================================================
   PREFERENCE ITEM
========================================================= */

.privacy-preference-item {
    display: grid;

    grid-template-columns: 42px minmax(0, 1fr) auto;

    align-items: center;

    gap: 14px;

    padding: 17px 0;

    border-bottom: 1px solid #eef2f7;
}


.privacy-preference-icon {
    width: 42px;
    height: 42px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 12px;

    font-size: 16px;
}


.privacy-preference-icon.necessary {
    background: #ecfdf5;

    color: #16a34a;
}


.privacy-preference-icon.analytics {
    background: #eff6ff;

    color: #2563eb;
}


.privacy-preference-icon.advertising {
    background: #fff7ed;

    color: #ea580c;
}


/* =========================================================
   PREFERENCE CONTENT
========================================================= */

.privacy-preference-title {
    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 8px;

    margin-bottom: 5px;

    color: #1e293b;

    font-size: 13px;

    font-weight: 750;
}


.privacy-preference-content p {
    margin: 0;

    color: #64748b;

    font-size: 12px;

    line-height: 1.6;
}


.privacy-required,
.privacy-optional {
    display: inline-flex;

    align-items: center;

    min-height: 21px;

    padding: 0 7px;

    border-radius: 6px;

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 0.4px;

    text-transform: uppercase;
}


.privacy-required {
    background: #ecfdf5;

    color: #15803d;
}


.privacy-optional {
    background: #f1f5f9;

    color: #64748b;
}


/* =========================================================
   TOGGLE
========================================================= */

.privacy-toggle {
    position: relative;

    display: inline-flex;

    width: 48px;
    height: 27px;

    flex-shrink: 0;

    cursor: pointer;
}


.privacy-toggle input {
    position: absolute;

    opacity: 0;

    width: 1px;
    height: 1px;
}


.privacy-toggle-track {
    position: absolute;

    inset: 0;

    border-radius: 999px;

    background: #cbd5e1;

    transition:
        background 0.2s ease;
}


.privacy-toggle-thumb {
    position: absolute;

    width: 21px;
    height: 21px;

    top: 3px;
    left: 3px;

    border-radius: 50%;

    background: #ffffff;

    box-shadow:
        0 2px 5px rgba(15, 23, 42, 0.2);

    transition:
        transform 0.2s ease;
}


.privacy-toggle input:checked
+ .privacy-toggle-track {
    background: #2563eb;
}


.privacy-toggle input:checked
+ .privacy-toggle-track
.privacy-toggle-thumb {
    transform: translateX(21px);
}


.privacy-toggle.disabled {
    opacity: 0.7;

    cursor: not-allowed;
}


/* =========================================================
   PREFERENCES FOOTER
========================================================= */

.privacy-preferences-footer {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;

    padding-top: 20px;
}


.privacy-preferences-footer a {
    color: #2563eb;

    font-size: 12px;

    font-weight: 650;

    text-decoration: none;
}


.privacy-preferences-footer a:hover {
    text-decoration: underline;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

    .privacy-consent-overlay {
        align-items: flex-end;

        padding: 10px;
    }


    .privacy-consent-modal {
        border-radius: 17px;
    }


    .privacy-consent-inner {
        padding: 21px;
    }


    .privacy-consent-status {
        grid-template-columns: 1fr;
    }


    .privacy-status-item {
        white-space: normal;
    }


    .privacy-consent-actions {
        display: grid;

        grid-template-columns: 1fr 1fr;
    }


    .privacy-btn-settings {
        grid-column: 1 / -1;
    }


    .privacy-btn {
        width: 100%;
    }


    .privacy-preferences-modal {
        padding: 21px;

        border-radius: 17px;
    }


    .privacy-preference-item {
        grid-template-columns:
            38px minmax(0, 1fr) auto;

        gap: 11px;
    }


    .privacy-preference-icon {
        width: 38px;
        height: 38px;
    }


    .privacy-preferences-footer {
        flex-direction: column;

        align-items: stretch;
    }


    .privacy-preferences-footer a {
        text-align: center;
    }

}


@media (max-width: 430px) {

    .privacy-consent-inner {
        padding: 18px;
    }


    .privacy-consent-heading h2 {
        font-size: 18px;
    }


    .privacy-consent-description {
        font-size: 13px;
    }


    .privacy-consent-actions {
        grid-template-columns: 1fr;
    }


    .privacy-btn-settings {
        grid-column: auto;
    }


    .privacy-preferences-header h2 {
        font-size: 19px;
    }

}




.privacy-toggle-always-on {
    cursor: not-allowed;
}


.privacy-toggle-always-on
.privacy-toggle-track {
    background: #22c55e;
}


.privacy-toggle-always-on
.privacy-toggle-thumb {
    transform: translateX(21px);
}


