/* ===========================
COOKIE SETTINGS MODAL
=========================== */

.ch-cookie-modal{
    display:none;
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.55);
    z-index:9999999;
    justify-content:center;
    align-items:center;
    padding:20px;
}

.ch-cookie-modal.active{
    display:flex;
}

.ch-cookie-modal-box{
    width:100%;
    max-width:720px;
    background:#fff;
    border-radius:14px;
    padding:30px;
    max-height:85vh;
    overflow-y:auto;
    box-shadow:0 20px 60px rgba(0,0,0,.2);
}

.ch-cookie-modal-box h2{
    margin-bottom:10px;
    color:#1e293b;
}

.ch-cookie-modal-box p{
    color:#555;
    line-height:1.7;
}

.cookie-item{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;
    padding:18px 0;
    border-bottom:1px solid #ececec;
}

.cookie-content{
    flex:1;
}

.cookie-content strong{
    display:block;
    margin-bottom:6px;
    color:#111827;
}

.cookie-content p{
    margin:0;
    color:#6b7280;
    font-size:14px;
}

.cookie-modal-footer{
    display:flex;
    justify-content:flex-end;
    gap:15px;
    margin-top:25px;
}


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

.switch{
    position:relative;
    display:inline-block;
    width:52px;
    height:28px;
}

.switch input{
    display:none;
}

.slider{
    position:absolute;
    cursor:pointer;
    inset:0;
    background:#cbd5e1;
    transition:.3s;
    border-radius:40px;
}

.slider:before{
    position:absolute;
    content:"";
    width:22px;
    height:22px;
    left:3px;
    bottom:3px;
    background:#fff;
    transition:.3s;
    border-radius:50%;
}

.switch input:checked + .slider{
    background:#0056d6;
}

.switch input:checked + .slider:before{
    transform:translateX(24px);
}

.switch input:disabled + .slider{
    background:#16a34a;
    cursor:not-allowed;
}


/* ===========================
RESPONSIVE
=========================== */

@media(max-width:768px){

    .cookie-item{
        flex-direction:column;
        align-items:flex-start;
    }

    .cookie-modal-footer{
        flex-direction:column;
    }

    .cookie-modal-footer .ch-cookie-btn{
        width:100%;
    }

}