/* ============================================================
   Cookie Consent RUS — Стили всплывающего баннера
   ============================================================ */

/* --- Панель --- */
.ccr-bar {
        position: fixed;
        left: 0;
        right: 0;
        z-index: 99999;
        background: var(--ccr-bg, #1e293b);
        color: var(--ccr-text, #f1f5f9);
        box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.25);
        transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
                    opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.ccr-bar[hidden] {
        display: block !important;
        pointer-events: none;
}

/* Позиционирование */
.ccr-bar--bottom {
        bottom: 0;
        transform: translateY(100%);
}
.ccr-bar--top {
        top: 0;
        transform: translateY(-100%);
}

/* Анимация появления */
.ccr-bar.ccr-bar--visible {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
}
.ccr-bar.ccr-bar--hidden-anim {
        transform: translateY(100%);
        opacity: 0;
        pointer-events: none;
}
.ccr-bar--top.ccr-bar--hidden-anim {
        transform: translateY(-100%);
}

/* --- Внутренний контейнер --- */
.ccr-bar__inner {
        max-width: 1200px;
        margin: 0 auto;
        padding: 16px 24px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 20px;
        flex-wrap: wrap;
}

/* --- Текст сообщения --- */
.ccr-bar__text {
        flex: 1 1 400px;
        font-size: 14px;
        line-height: 1.65;
        min-width: 0;
}

.ccr-bar__text a {
        text-decoration: underline;
        color: inherit;
        transition: opacity 0.2s;
}
.ccr-bar__text a:hover {
        opacity: 0.8;
}

/* --- Кнопки --- */
.ccr-bar__actions {
        flex: 0 0 auto;
        display: flex;
        gap: 10px;
        flex-shrink: 0;
}

.ccr-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 10px 24px;
        font-size: 14px;
        font-weight: 600;
        line-height: 1;
        border: none;
        border-radius: 6px;
        cursor: pointer;
        transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
        white-space: nowrap;
        font-family: inherit;
}

.ccr-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
        background-color: var(--ccr-btn-hover-bg, inherit) !important;
}
.ccr-btn:active {
        transform: translateY(0);
        box-shadow: none;
}
.ccr-btn:focus-visible {
        outline: 2px solid #fff;
        outline-offset: 2px;
}

/* Принять */
.ccr-btn--accept {
        background: var(--ccr-accept-bg, #22c55e) !important;
        background-color: var(--ccr-accept-bg, #22c55e) !important;
        color: var(--ccr-accept-color, #ffffff) !important;
}
.ccr-btn--accept:hover {
        opacity: 0.92;
        background-color: var(--ccr-accept-bg, #22c55e) !important;
}

/* Отклонить */
.ccr-btn--decline {
        background: var(--ccr-decline-bg, #64748b) !important;
        background-color: var(--ccr-decline-bg, #64748b) !important;
        color: var(--ccr-decline-color, #ffffff) !important;
}
.ccr-btn--decline:hover {
        opacity: 0.92;
        background-color: var(--ccr-decline-bg, #64748b) !important;
}

/* --- Адаптивность --- */
@media (max-width: 640px) {
        .ccr-bar__inner {
                flex-direction: column;
                text-align: center;
                padding: 14px 16px;
                gap: 12px;
        }

        .ccr-bar__text {
                flex: 1 1 auto;
                font-size: 13px;
        }

        .ccr-bar__actions {
                width: 100%;
                justify-content: center;
        }

        .ccr-btn {
                padding: 10px 20px;
                font-size: 13px;
                flex: 1 1 auto;
                max-width: 180px;
        }
}
