/* 🟩 Основной баннер */
.cookie-banner {
    position: fixed;
    bottom: 10px;
    left: 10px;
    right: 10px;
    background: rgba(30, 30, 30, 0.95);
    color: #fff;
    padding: 15px;
    font-size: 14px;
    z-index: 9999;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    box-sizing: border-box;
    max-width: 100%;
    width: auto;
    overflow: hidden;
    margin: 0 auto;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* 🟨 Текст внутри баннера */
.cookie-text {
    margin: 0;
    font-size: 16px;
    word-wrap: break-word;
}

/* 🟦 Контейнер для кнопок */
.cookie-buttons {
    margin-top: 10px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    box-sizing: border-box;
}

/* 🟧 Общие стили кнопок */
.btn-outline,
.btn-solid {
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    text-align: center;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    white-space: normal;
    word-break: break-word;
}

/* Прозрачная кнопка */
.btn-outline {
    background: transparent;
    border: 1px solid #d4a373;
    color: #d4a373;
}

/* Залитая кнопка */
.btn-solid {
    background: #d4a373;
    color: black;
    border: none;
}

/* 🟥 Модальное окно настроек куки */
.cookie-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.cookie-modal-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    color: #333;
    box-sizing: border-box;
    overflow-y: auto;
    max-height: 90vh;
    word-wrap: break-word;
}

/* Кнопки в модальном окне */
.modal-buttons {
    text-align: right;
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.modal-buttons .btn-outline,
.modal-buttons .btn-solid {
    flex: 0 0 auto;
    width: auto;
    margin-left: 10px;
}

/* 🖥 Десктоп: нормальная ширина кнопок */
@media (min-width: 481px) {
    .btn-outline,
    .btn-solid {
        flex: 0 1 auto;
        width: auto;
    }
}

/* 📱 Мобильные устройства */
@media (max-width: 480px) {
    .cookie-banner {
        padding: 12px;
    }

    .cookie-text {
        font-size: 14px;
    }

    .cookie-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-outline,
    .btn-solid {
        width: 100% !important;
        flex: 1 1 100%;
        margin: 0;
    }

    .modal-buttons {
        flex-direction: column;
        align-items: flex-end;
    }

    .modal-buttons .btn-outline,
    .modal-buttons .btn-solid {
        width: 100%;
        margin: 5px 0 0 0;
    }
}

