/* =========================================
   BANNER STRUCTURE (RESPONSIVE & FUNCTIONAL)
   ========================================= */

[x-cloak] { display: none !important; }

/* 1. Затемнение (Оверлей) */
.custom-banner-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background-color: rgba(0, 0, 0, 0.6) !important; /* Легкое затемнение */
    backdrop-filter: blur(8px); /* Сильный блюр фона (современно) */
    z-index: 9999999 !important;
    
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px !important;
}

/* 2. Модальное окно (Контейнер) */
.custom-banner-modal {
    position: relative !important;
    background: transparent !important;
    width: 100%;
    max-width: 480px; /* Компактный размер */
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15); /* Мягкая дорогая тень */
    animation: bannerFadeIn 0.3s ease-out forwards;
}

/* 3. Кнопка закрытия (Абсолютно новая) */
.custom-banner-close {
    position: absolute !important;
    top: 15px !important;
    right: 15px !important;
    width: 32px !important;
    height: 32px !important;
    
    background: rgba(0, 0, 0, 0.05) !important; /* Еле серый круг */
    border: none !important;
    border-radius: 50% !important;
    color: #333 !important;
    
    font-size: 20px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 20 !important; /* Поверх контента */
    transition: all 0.2s ease;
}

.custom-banner-close:hover {
    background: rgba(0, 0, 0, 0.1) !important;
    transform: rotate(90deg); /* Эффект при наведении */
}

/* Анимация */
@keyframes bannerFadeIn {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}