/* =========================================
   COOKIE BANNER
========================================= */

.cookie-banner {
    position: fixed;
    left: 20px;
    right: 20px;
    bottom: 20px;
    z-index: 99999;

    background: #ffffff;
    color: #222222;

    border-radius: 14px;
    box-shadow: 0 8px 35px rgba(0, 0, 0, 0.18);

    padding: 22px;
}

.cookie-banner[hidden],
.cookie-modal[hidden] {
    display: none;
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.cookie-banner-text {
    flex: 1;
}

.cookie-banner-text h2 {
    margin: 0 0 8px;
    font-size: 20px;
}

.cookie-banner-text p {
    margin: 5px 0;
    font-size: 14px;
    line-height: 1.5;
}

.cookie-banner-link a {
    text-decoration: underline;
}

.cookie-banner-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}


/* =========================================
   BUTTONS
========================================= */

.cookie-btn {
    border: none;
    border-radius: 8px;
    padding: 11px 18px;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;
}

.cookie-btn-primary {
    background: #222222;
    color: #ffffff;
}

.cookie-btn-secondary {
    background: #eeeeee;
    color: #222222;
}

.cookie-btn:hover {
    opacity: 0.88;
}


/* =========================================
   MODAL
========================================= */

.cookie-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;

    display: flex;
    align-items: center;
    justify-content: center;
}

.cookie-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.cookie-modal-content {
    position: relative;
    z-index: 1;

    width: min(620px, calc(100% - 30px));
    max-height: 90vh;
    overflow-y: auto;

    background: #ffffff;
    color: #222222;

    border-radius: 16px;
    padding: 30px;

    box-shadow: 0 15px 60px rgba(0, 0, 0, 0.25);
}

.cookie-modal-content h2 {
    margin-top: 0;
}

.cookie-modal-content p {
    line-height: 1.55;
    font-size: 14px;
}

.cookie-modal-close {
    position: absolute;
    right: 18px;
    top: 14px;

    border: none;
    background: none;

    font-size: 30px;
    cursor: pointer;
}


/* =========================================
   COOKIE OPTIONS
========================================= */

.cookie-option {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding: 18px 0;
    border-bottom: 1px solid #eeeeee;
}

.cookie-option h3 {
    margin: 0 0 5px;
    font-size: 16px;
}

.cookie-option p {
    margin: 0;
}


/* =========================================
   SWITCH
========================================= */

.cookie-switch {
    position: relative;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
}

.cookie-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-slider {
    position: absolute;
    inset: 0;

    background: #cccccc;
    border-radius: 30px;

    cursor: pointer;
    transition: 0.2s;
}

.cookie-slider:before {
    content: "";

    position: absolute;

    width: 20px;
    height: 20px;

    left: 3px;
    top: 3px;

    background: white;
    border-radius: 50%;

    transition: 0.2s;
}

.cookie-switch input:checked + .cookie-slider {
    background: #222222;
}

.cookie-switch input:checked + .cookie-slider:before {
    transform: translateX(22px);
}

.cookie-switch input:disabled + .cookie-slider {
    opacity: 0.6;
    cursor: not-allowed;
}


/* =========================================
   MODAL ACTIONS
========================================= */

.cookie-modal-actions {
    margin-top: 25px;
    text-align: right;
}

.cookie-modal-policy {
    text-align: center;
    margin-top: 20px;
}


/* =========================================
   PERMANENT BUTTON
========================================= */

.cookie-manage {
    position: fixed;

    bottom: 15px;
    left: 15px;

    z-index: 99998;

    border: none;
    border-radius: 8px;

    padding: 9px 13px;

    background: #222222;
    color: #ffffff;

    font-size: 12px;

    cursor: pointer;

    opacity: 0.85;
}

.cookie-manage:hover {
    opacity: 1;
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 700px) {

    .cookie-banner {
        left: 10px;
        right: 10px;
        bottom: 10px;
        padding: 18px;
    }

    .cookie-banner-content {
        display: block;
    }

    .cookie-banner-actions {
        margin-top: 18px;
        display: grid;
        grid-template-columns: 1fr;
    }

    .cookie-btn {
        width: 100%;
    }

    .cookie-modal-content {
        padding: 24px;
    }

}

/*Footer Ornament Style*/


}
