/* ==========================================================================
   БАННЕР КУКИ (на основе React-компонента)
   ========================================================================== */

.cookie-notice {
    /* Скрыт по умолчанию */
    display: none;

    /* Позиционирование: fixed bottom-10 left-1/2 transform -translate-x-1/2 */
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    
    /* Размеры: max-w-[900px] w-[calc(100%-32px)] */
    width: calc(100% - 32px);
    max-width: 900px;
    z-index: 900; /* Ниже шапки */
    
    /* Оформление: bg-white shadow-lg rounded-3xl */
    background: #F4F4F4;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    border-radius: 24px;
}

/* Класс для появления (добавляется через JS) */
.cookie-notice--visible {
    display: block;
    animation: slideUp 0.4s ease forwards;
}

@keyframes slideUp {
    from { opacity: 0; transform: translate(-50%, 20px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

/* Внутренняя сетка: flex items-center gap-5 px-6 py-5 */
.cookie-notice__inner {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 12px;
}

/* Текст */
.cookie-notice__text {
    flex: 1 1 auto;
    font-size: 14px;
    line-height: 1.5;
    color: var(--color-text-soft, #666);
}

.cookie-notice__text p + p {
    margin-top: 8px;
}

.cookie-notice__text a {
    color: var(--color-teal);
    text-decoration: underline;
    text-underline-offset: 2px;
}

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

/* Кнопка (стилизуем под базовую кнопку Next.js Button size="xs") */
.cookie-notice__btn {
    flex: 0 0 auto;
    padding: 10px 24px;
    background: #00CEC824;
    color: #00808A;
    border: none;
    border-radius: 12px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
    white-space: nowrap;
}


/* ==========================================================================
   АДАПТИВ (max-md: < 768px)
   ========================================================================== */

@media (max-width: 767px) {
    .cookie-notice {
        /* max-md:flex-col max-md:items-stretch max-md:gap-4 */
        bottom: 16px;
        width: calc(100% - 32px);
        /* rounded-xl */
        border-radius: 12px; 
    }

    .cookie-notice__inner {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        
        /* max-md:px-3 max-md:py-3 */
        padding: 12px 0; 
    }

    .cookie-notice__text {
        /* max-md:text-left max-md:text-[12px] */
        text-align: left;
        font-size: 12px;
        line-height: 1.4;
    }

    .cookie-notice__btn {
        /* max-md:w-full */
        width: 100%;
        padding: 12px;
    }
}