/* Плашка о cookie (разметка - templates/nero/desktop.php, логика - assets/js/consent.js).
   Стоит над нижним меню, той же ширины и в том же тёмном стекле; на телефоне меню прижато к низу - плашка над ним. */
.ab-cookies {
    position: fixed;
    left: 50%;
    bottom: calc(2rem + var(--ab-bottom-nav-h, 72px) + 12px);
    transform: translateX(-50%);
    z-index: 1040;
    width: 90%;
    max-width: 37.875rem;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px 16px 14px 20px;
    background: linear-gradient(180deg, rgba(35, 35, 35, 0.9) 0%, rgba(27, 27, 27, 0.96) 100%);
    backdrop-filter: blur(10px) saturate(160%);
    -webkit-backdrop-filter: blur(10px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.375rem;
    box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.6);
    color: var(--white, #F8FAF9);
    font-size: 12px;
    line-height: 1.5;
    animation: ab-cookies-in .3s cubic-bezier(.2, .7, .2, 1) both;
}
.ab-cookies[hidden] { display: none; }
.ab-cookies__text { margin: 0; flex: 1; min-width: 0; color: var(--gray-medium, #ACACAC); }
.ab-cookies__text a { color: var(--white, #F8FAF9); text-decoration: underline; text-underline-offset: 2px; }
.ab-cookies__act { display: flex; align-items: center; justify-content: flex-end; gap: 16px; }
.ab-cookies__ok {
    height: 36px;
    padding: 0 18px;
    border: 0;
    border-radius: 12px;
    background: var(--white, #F8FAF9);
    color: var(--black, #1B1B1B);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: opacity .15s, transform .15s;
}
.ab-cookies__ok:hover { opacity: .9; }
.ab-cookies__ok:active { transform: translateY(1px); }
.ab-cookies__off {
    padding: 0;
    border: 0;
    background: none;
    color: var(--gray-text, #898A8A);
    font: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
    white-space: nowrap;
}
.ab-cookies__off:hover { color: var(--white, #F8FAF9); }
.ab-cookies button:focus-visible { outline: 2px solid var(--white, #F8FAF9); outline-offset: 2px; }

@keyframes ab-cookies-in { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* телефон (как у нижнего меню в style.css - до 768px): меню прижато к низу во всю ширину */
@media (max-width: 768px) {
    .ab-cookies {
        bottom: calc(var(--ab-bottom-nav-h, 72px) + 8px);
        width: calc(100% - 16px);
        gap: 10px;
        padding: 14px 16px;
        border-radius: 18px;
    }
    .ab-cookies__act { justify-content: space-between; }
    .ab-cookies__ok { flex: 1; order: 2; }
}

@media (prefers-reduced-motion: reduce) {
    .ab-cookies { animation: none; }
}

/* Кнопка «показать уведомление о cookie ещё раз» в тексте Политики (раздел 8) - выглядит как ссылка */
.legal-cookies-reset { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
