/**
 * Стилі модуля cookie-згоди.
 *
 * Перенесено з assets/scss/blocks.scss (.cookie-banner) у плоский CSS,
 * щоб усе, що стосується баннера, лежало в одному модулі.
 * Чекбокси .choice-check — це колишній .squad-check із settings.scss.
 */

/* ========================
   Баннер cookie-згоди
======================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #000;
    padding: 45px 0;
    font-size: 18px;
    z-index: 40;
    transform: translateY(100%);
    opacity: 0;
    visibility: hidden;
    border-top: 1px solid var(--color-orange);
}

.cookie-banner.active {
    transform: none;
    opacity: 1;
    visibility: visible;
    transition: 0.3s;
}

.cookie-banner .fw-bold {
    font-weight: 700;
}

.cookie-banner .banner-inner {
    padding: 0 10px;
    max-width: 1700px;
    margin: auto;
}

.cookie-banner .content-toggle {
    text-decoration: underline;
    margin: 15px 0 0 0;
    cursor: pointer;
}

.cookie-banner .content-toggle:hover {
    text-decoration: none;
}

.cookie-banner .content-toggle.active .tt-1 {
    display: none;
}

.cookie-banner .content-toggle.active .tt-2 {
    display: block;
}

.cookie-banner .content-toggle .tt-2 {
    display: none;
}

.cookie-banner .banner-top {
    display: flex;
    align-items: center;
    column-gap: 20px;
}

.cookie-banner .banner-top .logo {
    width: 150px;
    flex-shrink: 0;
}

.cookie-banner .banner-top .logo img {
    max-width: 100%;
}

.cookie-banner .banner-top .cookie-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    width: 250px;
    height: 55px;
    background: #eeb90f;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

.cookie-banner .banner-top .cookie-btn:hover {
    background: #ffd549;
}

.cookie-banner .banner-top .buttons {
    flex-shrink: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    row-gap: 5px;
}

.cookie-banner .banner-top .buttons .for-btn:not(:last-of-type) {
    margin-bottom: 5px;
}

.cookie-banner .banner-top .buttons .cl-btn {
    width: 100%;
}

.cookie-banner .text a {
    text-decoration: underline;
}

.cookie-banner .text a:hover {
    text-decoration: none;
}

.cookie-banner .save-choice-btn {
    margin-top: 15px;
}

.cookie-banner .banner-content {
    display: none;
    padding: 30px 0 0 0;
}

.cookie-banner .banner-content p:not(:last-of-type) {
    margin-bottom: 20px;
}

/* ========================
   Чекбокси вибору категорій — .choice-check (колишній .squad-check)
======================== */
.choice-check {
    display: flex;
    align-items: center;
    column-gap: 10px;
    padding: 0;
    border: none;
    color: #B7B7B7;
    text-align: left;
}

.choice-check .form-check-input {
    width: 15px;
    height: 15px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    float: none;
    box-shadow: none;
    border-radius: 0;
    margin: 0;
    cursor: pointer;
    background: none;
    position: relative;
}

.choice-check .form-check-input:checked:before {
    opacity: 1;
}

.choice-check .form-check-input:before {
    position: absolute;
    content: '';
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 4px;
    height: 4px;
    background: var(--color-primary);
    opacity: 0;
}

.choice-check .form-check-label {
    margin: 0;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
}

/* ========================
   Адаптив
======================== */
@media (max-width: 767px) {
    .cookie-banner {
        padding: 10px;
        font-size: 12px;
        bottom: 0px;
    }

    .cookie-banner .text {
        --mb: 5px;
    }

    .cookie-banner .banner-top {
        display: block;
        text-align: center;
    }

    .cookie-banner .banner-top .logo {
        width: 150px;
        margin: 0 auto 5px;
        display: none;
    }

    .cookie-banner .banner-top .buttons {
        margin-top: 10px;
        flex-direction: row;
        line-height: 1.1;
    }

    .cookie-banner .banner-top .buttons .for-btn {
        flex-grow: 1;
    }

    .cookie-banner .banner-top .buttons .cl-btn {
        min-height: 30px;
        font-size: 12px;
        padding: 5px 5px;
        border: 1px solid var(--color-light);
        width: 100%;
    }

    .cookie-banner .banner-top .cookie-btn {
        padding: 10px;
        width: 250px;
        height: 45px;
        border-radius: 5px;
    }

    .cookie-banner .banner-content {
        padding: 20px 0 0 0;
    }

    .cookie-banner .banner-content p:not(:last-of-type) {
        margin-bottom: 10px;
    }

    .choice-check {
        margin-left: 0;
        column-gap: 5px;
    }

    .choice-check .form-check-label {
        font-size: 9px;
    }
}
