/* ==========================================================================
   MyBanner Plugin — стили нижней полосы
   ========================================================================== */

/* ── Основной контейнер ──────────────────────────────────────────────────── */
#mybanner-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    padding: 5px 52px 5px 20px;

    background: #FFFFFF;
    color: #333333;

    font-size: 0.9rem;
    line-height: 1.5;

    box-shadow: 0 -3px 12px rgba(0, 0, 0, 0.1);

    /* Плавное появление */
    animation: mybanner-slidein 0.35s ease both;
}

/* ── Текст ───────────────────────────────────────────────────────────────── */
.mybanner-text {
    flex: 1;
    text-align: center;
    word-break: break-word;
}

/* ── Кнопка закрытия ─────────────────────────────────────────────────────── */
.mybanner-close {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);

    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;

    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    color: #999999;

    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;

    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.mybanner-close:hover,
.mybanner-close:focus-visible {
    background: rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 0, 0, 0.3);
    color: #333333;
    outline: none;
}

/* ── Анимация появления ──────────────────────────────────────────────────── */
@keyframes mybanner-slidein {
    from {
        opacity: 0;
        transform: translateY(100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Адаптив для малых экранов ───────────────────────────────────────────── */
@media (max-width: 480px) {
    #mybanner-bar {
        font-size: 0.82rem;
        padding: 10px 44px 10px 14px;
    }

    .mybanner-close {
        right: 10px;
        width: 24px;
        height: 24px;
        font-size: 1rem;
    }
}
