/* NAMESPACE: ccw- (Cookie Consent Widget) */

@media only screen and (max-width: 960px) {
    .ccw-cookie-banner {
        width: 90% !important;
        z-index: 10153 !important;
    }
}

@media only screen and (max-width: 600px) {
    .ccw-cookie-buttons button {
        padding: 10px 5px !important;
        border-radius: 5px !important;
    }

    .ccw-cookie-banner p {
        font-size: 14px;
    }

    .ccw-cookie-modal-content {
        z-index: 10152 !important;
    }

    .ccw-cookie-category p {
        font-size: 14px !important;
    }

    .ccw-cookie-category h3 {
        font-size: 16px !important;
    }

    .ccw-cookie-right {
        width: 20% !important;
    }

    .ccw-cookie-left {
        width: 80% !important;
    }

    .ccw-cookie-banner p b {
        font-size: 16px !important;
    }
}

@media only screen and (max-width: 768px) {
    .ccw-cookie-buttons {
        display: block !important;
    }

    .ccw-cookie-modal {
        height: 100% !important;
        z-index: 10152 !important;
    }

    .ccw-cookie-banner p,
    .ccw-cookie-category p {
        font-size: 14px;
    }

    .ccw-cookie-modal-content {
        border-radius: 0px !important;
        overflow-y: scroll !important;
        height: 100%;
    }

    .ccw-cookie-category h3 {
        font-size: 16px !important;
    }

    .ccw-cookie-right,
    .ccw-cookie-left {
        width: 100% !important;
    }

    #ccw-cookie-settings-btn,
    #ccw-cookie-decline-btn,
    #ccw-cookie-accept-btn,
    #ccw-cookie-cancel-btn,
    #ccw-cookie-confirm-btn {
        width: 100% !important;
        margin-bottom: 10px;
    }

    .ccw-cookie-modal-buttons {
        display: block !important;
    }
}


#ccw-cookie-cancel-btn, #ccw-cookie-confirm-btn {
    padding: 11px 16px;
        color: var(--color-white);
        background: var(--color-primary);
        border: 1px solid transparent;
        font-size: var(--font-size);
        line-height: 1;
        text-align: center;
        transition: opacity .2s ease;
        text-decoration: none;
        transform: scale(1);
        display: inline-block;
        cursor: pointer;
        font-weight: 500;
        margin-right: 10px;
        border-radius: 15px;
}


/* COOKIE BANNER */
.ccw-cookie-banner {
    position: fixed !important;
    bottom: 0;
    width: 720px;
    left: 50%;
    transform: translate(-50%, -15%);
    background-color: #fff;
    color: rgb(113 117 130);
    padding: 18px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.145);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    z-index: 99999;
    transition: 0.8s ease !important;
}

.ccw-cookie-banner h2 {
    margin: 0;
    font-size: 24px;
}

.ccw-cookie-banner p {
    margin: 10px 0;
    color: #757986;
}


/* BUTTONS */
.ccw-cookie-buttons {
    display: flex;
    gap: 10px;
    padding-top: 10px;
}

.ccw-cookie-buttons button {
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
}

#ccw-cookie-settings-btn {
    background-color: #fff;
    color: #279098;
    border: 1px solid #279098;
    font-weight: 500;
}

#ccw-cookie-settings-btn:hover {
    background-color: #279098;
    color: #fff;
    box-shadow: 0 4px 12px rgba(4, 193, 0, 0.3);
    transform: translateY(-2px);
}

#ccw-cookie-decline-btn {
    background-color: #f0f0f0;
    color: #279098;
    border: 1px solid #279098;
        font-weight: 500;
            margin-right: 5px;
}

#ccw-cookie-decline-btn:hover {
    background-color: #279098;
    color: #fff;
    box-shadow: 0 4px 12px rgba(4, 193, 0, 0.3);
    transform: translateY(-2px);
}

#ccw-cookie-accept-btn {
    background-color: #279098;
    color: #fff;
    border: none;
        font-weight: 500;
}

#ccw-cookie-accept-btn:hover {
    background-color: #279098;
    box-shadow: 0 4px 12px rgba(4, 193, 0, 0.3);
    transform: translateY(-2px);
}

.ccw-poli:hover {
    opacity: 1 !important;
    color: #04c100;
}


/* MODAL */
.ccw-cookie-modal {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 1001;
    transition: opacity 0.8s ease !important;
}

.ccw-cookie-modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    width: 720px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.145);
}

.ccw-cookie-category {
    margin-bottom: 20px;
}

/* SWITCHES */
.ccw-switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
}

.ccw-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.ccw-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    border-radius: 34px;
    transition: .4s;
}

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

input:checked+.ccw-slider {
    background-color: #04c100;
}

input:checked+.ccw-slider:before {
    transform: translateX(20px);
}


/* HIDDEN */
.ccw-hidden {
    display: none !important;
    opacity: 0 !important;
}

/* MANUAL COOKIE BUTTONS */
#open-cookie-banner,
#reset-cookie-settings {
    padding: 10px 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 400;
    transition: all 0.3s ease;
}

#open-cookie-banner {
    background-color: #279098;
    color: #fff;
}

#open-cookie-banner:hover {
    background-color: #279098;
    box-shadow: 0 4px 12px rgba(4, 193, 0, 0.3);
    transform: translateY(-2px);
}

#reset-cookie-settings {
    background-color: #f0f0f0;
    color: #279098;
    border: 1px solid #279098;
}

#reset-cookie-settings:hover {
    background-color: #279098;
    color: #fff;
    box-shadow: 0 4px 12px rgba(4, 193, 0, 0.3);
    transform: translateY(-2px);
}

/* Контейнер для кнопок - ПО ЦЕНТРУ */
.ccw-manual-buttons-container {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    margin-top: 12px;
}

@media only screen and (max-width: 768px) {

    #open-cookie-banner,
    #reset-cookie-settings {
        padding: 8px 12px;
        font-size: 11px;
    }

    .ccw-manual-buttons-container {
        flex-direction: column;
        gap: 6px;
    }
}