

@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 400;
  src: url(https://gstatic.com) format('truetype');
}
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 600;
  src: url(https://gstatic.com) format('truetype');
}

@import url('https://googleapis.com');

:root {
    --color-main-bg: #ff0000 !important; /* Фоновый цвет баннера */
    --color-accent: #7433E9 !important;  /* Цвет кнопки */
    --color-text-main: #FFFFFF !important; /* Белый цвет для всего текста */
}

.gc-main-content:not(.with-left-menu) .top-notification-wrapper {
    display: none !important;
}

.common-banner-wrapper.hide_banners {
    display: none !important;
}

.info-wrapper .common-banner-wrapper {
    position: relative !important;
}

/* Основной контейнер баннера */
.common-banner-wrapper {
    display: flex !important;
    align-items: center !important;
    box-sizing: border-box !important;
    position: fixed !important;
    bottom: 12px !important;
    left: 90px !important;
    z-index: 999 !important;
    width: auto !important;
    max-width: 620px !important;
    
    /* Базовая фиксированная высота, расширяется при росте текста */
    min-height: 70px !important;
    height: auto !important;
    max-height: none !important;
    
    /* Равномерный вертикальный отступ + место под крестик справа */
    padding: 10px 42px 10px 16px !important;
    background-color: var(--color-main-bg) !important;
    border-radius: 10px !important;
    font-family: 'Unbounded', Arial, sans-serif !important;
}

/* Внутренний ряд */
.banner-wrapper-content {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 16px !important;
    width: 100% !important;
    margin: 0 !important;
    font-family: 'Unbounded', Arial, sans-serif !important;
}

/* Контейнер текста — занимает всё свободное место */
.banner-content {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    color: var(--color-text-main) !important;
    font-family: 'Unbounded', Arial, sans-serif !important;
}

.banner-title {
    font-size: 12px !important; 
    font-weight: bold !important;
    line-height: 1.35 !important;
    margin: 0 !important;
    text-transform: uppercase !important;
    color: var(--color-text-main) !important;
    font-family: 'Unbounded', Arial, sans-serif !important;
}

.banner-subtitle {
    display: inline-block !important;
    font-size: 11px !important;
    font-weight: bold !important;
    line-height: 1.3 !important;
    margin: 4px 0 0 0 !important;
    padding: 2px 5px !important;
    background-color: #ffffff !important;
    color: #000000 !important;
    font-family: 'Unbounded', Arial, sans-serif !important;
}

/* Кнопка — жестко зафиксирована справа */
.banner-link {
    flex-shrink: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 12px 16px !important;
    background-color: #ffffff !important;
    color: #000000 !important;
    border-radius: 2px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
    margin: 0 !important;
    font-family: 'Unbounded', Arial, sans-serif !important;
}

.banner-link:hover {
    background-color: #8827fb !important;
    color: #ffffff !important;
}

/* Крестик закрытия */
.banner-close {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    right: 12px !important;
    font-size: 20px !important;
    line-height: 1 !important;
    color: var(--color-text-main) !important;
    cursor: pointer !important;
    font-weight: bold !important;
}

.banner-close:hover {
    color: var(--color-accent) !important;
}

/* Планшеты */
@media (max-width: 768px) {
    .common-banner-wrapper {
        left: 10px !important;
        right: 10px !important;
        bottom: 30px !important;
        max-width: calc(100% - 20px) !important;
        min-height: 64px !important;
        padding: 8px 38px 8px 12px !important;
    }

    .banner-title {
        font-size: 11px !important;
    }

    .banner-subtitle {
        font-size: 10px !important;
    }

    .banner-link {
        padding: 10px 12px !important;
        font-size: 10px !important;
    }
}

/* Мобильные экраны */
@media (max-width: 480px) {
    .common-banner-wrapper {
        left: 6px !important;
        right: 6px !important;
        bottom: 20px !important;
        max-width: calc(100% - 12px) !important;
        min-height: 56px !important;
        padding: 8px 32px 8px 10px !important;
    }

    .banner-wrapper-content {
        gap: 10px !important;
    }

    .banner-title {
        font-size: 10.5px !important;
        line-height: 1.3 !important;
    }

    .banner-subtitle {
        font-size: 9.5px !important;
    }

    .banner-link {
        padding: 8px 10px !important;
        font-size: 9.5px !important;
        width: auto !important;
    }

    .banner-close {
        right: 8px !important;
        font-size: 18px !important;
    }
}

