/* =========================================
   XPAND365 COOKIE CONSENT
   ========================================= */

:root {

    --cookie-purple: #7c3aed;
    --cookie-purple-dark: #5b21b6;
    --cookie-purple-light: #ede9fe;

    --cookie-white: #ffffff;
    --cookie-black: #111111;

    --cookie-gray: #6b7280;
    --cookie-light-gray: #f9fafb;

    --cookie-border: #e5e7eb;

}


/* =========================================
   COOKIE BANNER
   ========================================= */

.cookie-banner {

    position: fixed;

    left: 20px;
    right: 20px;
    bottom: 20px;

    z-index: 99990;

    background: var(--cookie-white);

    border: 1px solid var(--cookie-border);

    border-radius: 16px;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.12);

    transform: translateY(130%);

    opacity: 0;

    visibility: hidden;

    transition:
        transform 0.35s ease,
        opacity 0.35s ease,
        visibility 0.35s ease;

}


.cookie-banner.active {

    transform: translateY(0);

    opacity: 1;

    visibility: visible;

}


.cookie-banner-content {

    max-width: 1200px;

    margin: 0 auto;

    padding: 24px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;

}


.cookie-banner-text {

    flex: 1;

}


.cookie-banner-text h2 {

    margin: 0 0 8px;

    color: var(--cookie-black);

    font-size: 20px;

    line-height: 1.3;

}


.cookie-banner-text p {

    margin: 0;

    color: var(--cookie-gray);

    font-size: 14px;

    line-height: 1.6;

}


.cookie-banner-policy {

    margin-top: 7px !important;

}


.cookie-banner-policy a {

    color: var(--cookie-purple);

    text-decoration: none;

    font-weight: 600;

}


.cookie-banner-policy a:hover {

    text-decoration: underline;

}



/* =========================================
   BANNER BUTTONS
   ========================================= */

.cookie-banner-actions {

    display: flex;

    align-items: center;

    justify-content: flex-end;

    gap: 10px;

    flex-shrink: 0;

}


.cookie-btn {

    border: none;

    border-radius: 8px;

    padding: 11px 18px;

    font-family: inherit;

    font-size: 14px;

    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;

}


.cookie-btn:hover {

    transform: translateY(-1px);

}


.cookie-btn-primary {

    color: var(--cookie-white);

    background: var(--cookie-purple);

}


.cookie-btn-primary:hover {

    background: var(--cookie-purple-dark);

}


.cookie-btn-secondary {

    color: var(--cookie-black);

    background: var(--cookie-light-gray);

    border: 1px solid var(--cookie-border);

}


.cookie-btn-secondary:hover {

    background: var(--cookie-purple-light);

    color: var(--cookie-purple-dark);

}



/* =========================================
   MODAL
   ========================================= */

.cookie-modal {

    position: fixed;

    inset: 0;

    z-index: 99999;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 20px;

    background: rgba(0, 0, 0, 0.55);

    opacity: 0;

    visibility: hidden;

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;

}


.cookie-modal.active {

    opacity: 1;

    visibility: visible;

}



/* =========================================
   MODAL CONTENT
   ========================================= */

.cookie-modal-content {

    width: 100%;

    max-width: 620px;

    max-height: 90vh;

    overflow-y: auto;

    background: var(--cookie-white);

    border-radius: 16px;

    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.25);

    transform: translateY(15px);

    transition: transform 0.25s ease;

}


.cookie-modal.active
.cookie-modal-content {

    transform: translateY(0);

}



/* =========================================
   MODAL HEADER
   ========================================= */

.cookie-modal-header {

    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    gap: 20px;

    padding: 24px;

    border-bottom: 1px solid var(--cookie-border);

}


.cookie-modal-header h2 {

    margin: 0 0 6px;

    color: var(--cookie-black);

    font-size: 22px;

}


.cookie-modal-header p {

    margin: 0;

    color: var(--cookie-gray);

    font-size: 14px;

    line-height: 1.5;

}


.cookie-modal-close {

    width: 36px;

    height: 36px;

    flex-shrink: 0;

    border: none;

    border-radius: 50%;

    background: var(--cookie-light-gray);

    color: var(--cookie-black);

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 20px;

    cursor: pointer;

}


.cookie-modal-close:hover {

    background: var(--cookie-purple-light);

    color: var(--cookie-purple-dark);

}



/* =========================================
   COOKIE PREFERENCES
   ========================================= */

.cookie-preferences {

    padding: 10px 24px;

}


.cookie-category {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    padding: 20px 0;

    border-bottom: 1px solid var(--cookie-border);

}


.cookie-category:last-child {

    border-bottom: none;

}


.cookie-category-info {

    flex: 1;

}


.cookie-category-info h3 {

    margin: 0 0 5px;

    color: var(--cookie-black);

    font-size: 16px;

}


.cookie-category-info p {

    margin: 0;

    color: var(--cookie-gray);

    font-size: 13px;

    line-height: 1.55;

}


.cookie-toggle-wrapper {

    flex-shrink: 0;

}



/* =========================================
   ALWAYS ON
   ========================================= */

.cookie-always-active {

    display: inline-block;

    padding: 6px 10px;

    border-radius: 20px;

    background: var(--cookie-purple-light);

    color: var(--cookie-purple-dark);

    font-size: 12px;

    font-weight: 700;

}



/* =========================================
   TOGGLE
   ========================================= */

.cookie-switch {

    position: relative;

    display: inline-block;

    width: 48px;

    height: 26px;

}


.cookie-switch input {

    width: 0;

    height: 0;

    opacity: 0;

}


.cookie-slider {

    position: absolute;

    inset: 0;

    background: #d1d5db;

    border-radius: 30px;

    cursor: pointer;

    transition: 0.25s;

}


.cookie-slider::before {

    content: "";

    position: absolute;

    width: 20px;

    height: 20px;

    left: 3px;

    top: 3px;

    background: var(--cookie-white);

    border-radius: 50%;

    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.2);

    transition: 0.25s;

}


.cookie-switch input:checked
+ .cookie-slider {

    background: var(--cookie-purple);

}


.cookie-switch input:checked
+ .cookie-slider::before {

    transform: translateX(22px);

}



/* =========================================
   MODAL FOOTER
   ========================================= */

.cookie-modal-footer {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;

    padding: 20px 24px;

    border-top: 1px solid var(--cookie-border);

}


.cookie-modal-footer a {

    color: var(--cookie-purple);

    font-size: 14px;

    font-weight: 600;

    text-decoration: none;

}


.cookie-modal-footer a:hover {

    text-decoration: underline;

}



/* =========================================
   FLOATING SETTINGS BUTTON
   ========================================= */

.cookie-settings {

    position: fixed;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    z-index: 99980;
    width: 46px;
    height: 46px;
    border: none;
    border-radius: 50%;
    background: var(--cookie-purple);
    color: var(--cookie-white);
    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 21px;

    cursor: pointer;

    box-shadow:
        0 6px 18px rgba(0, 0, 0, 0.18);

    transition:
        transform 0.2s ease,
        background 0.2s ease;

}


.cookie-settings:hover {

    background: var(--cookie-purple-dark);

    transform: translateY(-2px);

}



/* =========================================
   TABLET / MOBILE
   ========================================= */

@media (max-width: 768px) {

    .cookie-banner {

        left: 10px;

        right: 10px;

        bottom: 10px;

        border-radius: 14px;

    }


    .cookie-banner-content {

        padding: 20px;

        flex-direction: column;

        align-items: stretch;

        gap: 20px;

    }


    .cookie-banner-actions {

        display: grid;

        grid-template-columns: 1fr 1fr;

        gap: 8px;

    }


    .cookie-banner-actions
    .cookie-btn-primary {

        grid-column: 1 / -1;

        order: -1;

    }


    .cookie-modal {

        padding: 10px;

    }


    .cookie-modal-content {

        max-height: 94vh;

        border-radius: 14px;

    }


    .cookie-modal-header {

        padding: 20px;

    }


    .cookie-preferences {

        padding: 5px 20px;

    }


    .cookie-category {

        align-items: flex-start;

    }


    .cookie-modal-footer {

        padding: 18px 20px;

    }


    .cookie-settings {

        right: 14px;

        bottom: 14px;

        width: 42px;

        height: 42px;

        font-size: 19px;

    }

}



/* =========================================
   SMALL MOBILE
   ========================================= */

@media (max-width: 480px) {

    .cookie-banner-text h2 {

        font-size: 18px;

    }


    .cookie-banner-text p {

        font-size: 13px;

    }


    .cookie-banner-actions {

        grid-template-columns: 1fr;

    }


    .cookie-banner-actions
    .cookie-btn-primary {

        grid-column: auto;

    }


    .cookie-category {

        gap: 12px;

    }


    .cookie-category-info h3 {

        font-size: 15px;

    }


    .cookie-category-info p {

        font-size: 12px;

    }

}