/* ───────────────────────────────────────────
 * Попап согласия на cookie / обработку ПДн
 * Самодостаточный (брендовые цвета зашиты — :root кабинета на главной не грузится)
 * ─────────────────────────────────────────── */

.nbc-cookie {
    position: fixed;
    box-sizing: border-box;
    z-index: 99990;
    right: 24px;
    bottom: 24px;
    width: 380px;
    max-width: calc(100vw - 32px);
    background: #ffffff;
    color: #1a1a1a;
    border-radius: 12px;
    box-shadow: 0 6px 28px rgba(0, 0, 0, .16);
    padding: 22px 22px 20px;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: opacity .35s ease, transform .35s ease;
}

.nbc-cookie.is-visible {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

.nbc-cookie__text {
    margin: 0 0 16px;
    padding-right: 14px;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 500;
}

.nbc-cookie__link {
    color: #c73133;
    text-decoration: underline;
    transition: color .2s ease;
}

.nbc-cookie__link:hover,
.nbc-cookie__link:focus {
    color: #a5282a;
}

.nbc-cookie__btn {
    display: block;
    width: 100%;
    background: #FFC107;
    color: #1a1a1a;
    border: 0;
    border-radius: 8px;
    padding: 13px 18px;
    font-family: inherit;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: background .2s ease;
}

.nbc-cookie__btn:hover {
    background: #FFB300;
}

.nbc-cookie__close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 28px;
    height: 28px;
    border: 0;
    background: transparent;
    color: #9a9a9a;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    border-radius: 6px;
    transition: color .2s ease;
}

.nbc-cookie__close:hover {
    color: #1a1a1a;
}

/* Мобилка: по центру снизу, гарантированные отступы 16px от всех краёв
   (left/right инсеты + margin-inline:auto для центровки; safe-area снизу
   для айфонов и панелей браузера). Анимация — базовый translateY. */
@media (max-width: 768px) {
    .nbc-cookie {
        left: 16px;
        right: 16px;
        bottom: calc(16px + env(safe-area-inset-bottom, 0px));
        width: auto;
        max-width: 400px;
        margin-inline: auto;
        padding: 18px 16px 16px;
    }
}
