/* COOKIE BANNER */

.cookie-banner {
    position: fixed;
    left: 24px;
    right: 24px;
    bottom: 24px;
    z-index: 9999;
    display: none;
}

.cookie-banner.show {
    display: block;
    animation: cookieFadeUp 0.35s ease;
}

.cookie-banner__content {
    max-width: 1210px;
    margin: 0 auto;
    background: rgba(252, 251, 246, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid #DBDBDB;
    border-radius: 22px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.10);
    padding: 26px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
}

.cookie-banner__text {
    max-width: 760px;
}

.cookie-banner__title {
    font-size: 22px;
    line-height: 28px;
    color: #000;
    font-weight: 600;
}

.cookie-banner__description {
    font-size: 16px;
    line-height: 24px;
    color: #7e7e7c;
}

.cookie-banner__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    min-width: 320px;
}

.cookie-btn {
    border: none;
    border-radius: 999px;
    padding: 14px 22px;
    font-family: "Inter Tight", Arial;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.cookie-btn:hover {
    transform: translateY(-2px);
}

.cookie-btn-primary {
    background-color: #000;
    color: #fff;
}

.cookie-btn-primary:hover {
    background-color: #1d1d1d;
}

.cookie-btn-secondary {
    background-color: transparent;
    color: #000;
    border: 1px solid #DBDBDB;
}

.cookie-btn-secondary:hover {
    background-color: #f2f1eb;
}

.cookie-btn-light {
    background-color: #efeee8;
    color: #000;
}

.cookie-btn-light:hover {
    background-color: #e7e5dd;
}

/* MODAL */

.cookie-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
}

.cookie-modal.show {
    display: block;
}

.cookie-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.cookie-modal__box {
    position: relative;
    z-index: 2;
    width: calc(100% - 40px);
    max-width: 760px;
    margin: 80px auto;
    background-color: #FCFBF6;
    border: 1px solid #DBDBDB;
    border-radius: 26px;
    padding: 32px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.16);
}

.cookie-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookie-modal__header h3 {
    font-size: 34px;
    line-height: 38px;
}

.cookie-modal__close {
    border: none;
    background: #efeee8;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.25s ease;
}

.cookie-modal__close:hover {
    background: #e5e3db;
    transform: rotate(90deg);
}

.cookie-modal__intro {
    font-size: 16px;
    line-height: 24px;
    color: #7e7e7c;
}

.cookie-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 18px 0;
    border-top: 1px solid #DBDBDB;
}

.cookie-option__title {
    font-size: 20px;
    line-height: 24px;
    color: #000;
    font-weight: 600;
}

.cookie-option__text {
    font-size: 15px;
    line-height: 22px;
    color: #7e7e7c;
    max-width: 500px;
}

.cookie-switch--active {
    background-color: #efeee8;
    color: #000;
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.cookie-modal__actions {
    display: flex;
    justify-content: flex-end;
}

/* SWITCH */

.switch {
    position: relative;
    display: inline-block;
    width: 58px;
    height: 34px;
    flex-shrink: 0;
}

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

.slider {
    position: absolute;
    inset: 0;
    background-color: #d8d6ce;
    border-radius: 999px;
    transition: 0.3s ease;
    cursor: pointer;
}

.slider:before {
    content: "";
    position: absolute;
    width: 26px;
    height: 26px;
    left: 4px;
    top: 4px;
    background-color: white;
    border-radius: 50%;
    transition: 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

.switch input:checked + .slider {
    background-color: #000;
}

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

/* ANIMATIONS */

@keyframes cookieFadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* MOBILE */

@media (max-width: 600px) {
    .cookie-banner {
        left: 12px;
        right: 12px;
        bottom: 12px;
    }

    .cookie-banner__content {
        padding: 18px;
        border-radius: 18px;
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-banner__title {
        font-size: 18px;
        line-height: 24px;
    }

    .cookie-banner__description {
        font-size: 14px;
        line-height: 21px;
    }

    .cookie-banner__actions {
        min-width: auto;
        width: 100%;
        justify-content: stretch;
    }

    .cookie-btn {
        width: 100%;
        text-align: center;
    }

    .cookie-modal__box {
        width: calc(100% - 20px);
        margin: 20px auto;
        padding: 22px 18px;
        border-radius: 20px;
    }

    .cookie-modal__header h3 {
        font-size: 24px;
        line-height: 28px;
    }

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

    .cookie-modal__actions {
        justify-content: stretch;
    }

    .cookie-modal__actions .cookie-btn {
        width: 100%;
    }
}