/* version: 2026-08-31.1 */
/**
 * Уведомление о сборе cookie.
 * Модуль коробки «Афтоп: Риэлти».
 *
 * версия 2.0
 */

.aftop-cookie {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99998;
    background: #ffffff;
    box-shadow: 0 -2px 16px rgba(0, 0, 0, .16);
    padding: 16px 20px;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity .25s ease, transform .25s ease;
}

.aftop-cookie--visible {
    opacity: 1;
    transform: translateY(0);
}

.aftop-cookie__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.aftop-cookie__text {
    flex: 1 1 320px;
    font-size: 14px;
    line-height: 1.5;
    color: #333333;
}

.aftop-cookie__text a {
    text-decoration: underline;
}

.aftop-cookie__actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

.aftop-cookie__button {
    display: inline-block;
    border: 1px solid transparent;
    border-radius: 3px;
    padding: 10px 22px;
    font-size: 14px;
    line-height: 1.2;
    cursor: pointer;
    transition: opacity .2s ease;
}

.aftop-cookie__button:hover {
    opacity: .85;
}

.aftop-cookie__button--accept {
    /* Перекрывается основным цветом темы из Redux — см. cookie-consent.php. */
    background: #0d75e8;
    color: #ffffff;
}

.aftop-cookie__button--decline {
    background: transparent;
    border-color: #c9c9c9;
    color: #555555;
}

/*
 * Если на сайте покупателя стоит плавающая кнопка чата (Chaty и подобные),
 * баннер наезжает на неё. Тогда в style.css дочерней темы добавляется
 * отступ под кнопку, например: .aftop-cookie { padding-right: 110px; }
 */

@media (max-width: 767px) {
    .aftop-cookie {
        padding: 14px 16px;
    }

    .aftop-cookie__inner {
        gap: 12px;
    }

    .aftop-cookie__actions {
        width: 100%;
    }

    .aftop-cookie__button {
        flex: 1 1 auto;
        text-align: center;
    }
}
