/* Плашка cookies: ПК — слева внизу, при скролле сворачивается в печеньку; мобайл — полоска у нижнего края */
.ac-cookie {
    position: fixed;
    left: 24px;
    bottom: 24px;
    z-index: 900;
    font-family: Gilroy, sans-serif;
    transition: transform .22s cubic-bezier(0, 0, .58, 1);
}
/* Кнопка «Скачать приложение» стоит в том же углу: bottom 24px + высота 56px + зазор 8px */
body:has(.ebt-btn.visible) .ac-cookie { transform: translateY(-64px); }

.ac-cookie__panel,
.ac-cookie__chip {
    box-sizing: border-box;
    border: 1px solid rgba(44, 47, 60, .1);
    background: #fff;
    box-shadow: 0 14px 40px -14px rgba(0, 0, 0, .45);
    transform-origin: left bottom;
}
.ac-cookie__panel {
    display: flex;
    align-items: center;
    gap: 12px;
    width: max-content;
    max-width: calc(100vw - 48px);
    padding: 6px 6px 6px 18px;
    border-radius: 32px;
    transition: opacity .22s ease, transform .22s ease, visibility 0s;
}
.ac-cookie__chip {
    position: absolute;
    left: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: 50%;
    color: #2c2f3c;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: scale(.72);
    transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
}
.ac-cookie.is-collapsed .ac-cookie__panel {
    position: absolute;
    left: 0;
    bottom: 0;
    opacity: 0;
    visibility: hidden;
    transform: scale(.82);
    transition: opacity .22s ease, transform .22s ease, visibility 0s linear .22s;
}
.ac-cookie.is-collapsed .ac-cookie__chip {
    position: relative;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity .2s ease, transform .2s ease, visibility 0s;
}
.ac-cookie__icon { flex: none; color: #2c2f3c; }
.ac-cookie__text {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    color: #2c2f3c;
}
.ac-cookie__text a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.ac-cookie__accept {
    flex: none;
    height: 44px;
    padding: 0 22px;
    border: 0;
    border-radius: 40px;
    background: #ffe748;
    color: #2c2f3c;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

@media (max-width: 767px) {
    .ac-cookie { left: 0; right: 0; bottom: 0; }
    body:has(.ebt-btn.visible) .ac-cookie { transform: none; }
    /* В каталоге внизу закреплена кнопка «Оформить заказ»: полоска лежит на ней */
    body:has(.bottom-button-mobile) .ac-cookie { bottom: 80px; }
    .ac-cookie__chip { display: none; }
    .ac-cookie__panel,
    .ac-cookie.is-collapsed .ac-cookie__panel {
        position: static;
        display: block;
        width: auto;
        max-width: none;
        padding: 12px 16px calc(20px + env(safe-area-inset-bottom, 0px));
        border: 0;
        border-top: 1px solid rgba(44, 47, 60, .1);
        border-radius: 0;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
    }
    .ac-cookie__icon { display: none; }
    .ac-cookie__text { margin-bottom: 10px; font-size: 13px; }
    .ac-cookie__accept { display: block; width: 100%; }
    /* Низ страницы не должен уходить под полоску */
    body.ac-cookie-open { padding-bottom: 120px; }
}
