/* Cookie Banner Styles */
.cookie-banner {
    position: fixed;
    z-index: 9999;
    padding: 20px;
    color: #ffffff;
    background-color: #666666;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    max-width: 100%;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.5;
    font-size: 14px;
}

/* Позиционирование */
.cookie-banner-top {
    top: 0;
    left: 0;
    right: 0;
    border-radius: 0 0 5px 5px;
}

.cookie-banner-bottom {
    bottom: 0;
    left: 0;
    right: 0;
    border-radius: 5px 5px 0 0;
}

.cookie-banner-bottom-left {
    bottom: 20px;
    left: 20px;
    border-radius: 5px;
    max-width: 50%;
}

.cookie-banner-bottom-right {
    bottom: 20px;
    right: 20px;
    border-radius: 5px;
    max-width: 50%;
}

/* Контент баннера */
.cookie-banner-content {
    display: flex;
    align-items: stretch;
    /* Растягиваем на всю высоту */
    gap: 0;
    /* Убираем отступ между изображением и контентом */
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    /* Убираем внутренние отступы у контейнера */
}

.cookie-banner-image {
    flex: 0 0 auto;
    /* Не сжимаем и не растягиваем изображение */
    display: flex;
    align-items: center;
    padding: 10px;
    /* Отступы внутри контейнера изображения */
}

.cookie-banner-image img {
    height: 100%;
    /* Занимает всю высоту контейнера */
    width: auto;
    /* Ширина подстраивается автоматически */
    max-width: 200px;
    /* Максимальная ширина изображения */
    object-fit: contain;
    /* Сохраняем пропорции */
    border-radius: 4px 0 0 4px;
    /* Закругляем только левые углы */
}

.cookie-banner-text-content {
    flex: 1;
    /* Занимает оставшееся пространство */
    padding: 15px 20px;
    /* Отступы для текстового контента */
}

.cookie-banner-title {
    margin-top: 0;
    margin-bottom: 10px;
    color: inherit;
    font-size: 18px;
    font-weight: 600;
}

.cookie-banner-text {
    margin-bottom: 15px;
    line-height: 1.5;
}

.cookie-banner-link {
    color: inherit;
    text-decoration: underline;
    display: inline-block;
    margin-top: 8px;
    opacity: 0.9;
    transition: opacity 0.2s ease;
}

.cookie-banner-link:hover {
    color: inherit;
    opacity: 1;
    text-decoration: none;
}

.cookie-banner-button {
    background-color: transparent;
    color: inherit;
    border: 1px solid currentColor;
    border-radius: 3px;
    padding: 8px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    outline: none;
}

.cookie-banner-button:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Адаптивность */
@media (max-width: 992px) {

    .cookie-banner-bottom-left,
    .cookie-banner-bottom-right {
        max-width: 80%;
    }
}

@media (max-width: 768px) {
    .cookie-banner {
        padding: 15px;
    }

    .cookie-banner-bottom-left,
    .cookie-banner-bottom-right {
        max-width: 90%;
        left: 5%;
        right: 5%;
        bottom: 10px;
    }

    .cookie-banner-title {
        font-size: 16px;
        margin-bottom: 8px;
    }

    .cookie-banner-text {
        font-size: 13px;
        margin-bottom: 12px;
    }

    .cookie-banner-button {
        padding: 6px 16px;
        font-size: 13px;
    }
}

/* Анимация появления */
@keyframes cookieBannerFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cookie-banner {
    animation: cookieBannerFadeIn 0.5s ease-out forwards;
}

/* Для верхнего баннера */
.cookie-banner-top {
    animation-name: cookieBannerFadeInTop;
}

@keyframes cookieBannerFadeInTop {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}