body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f8f8;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #333;
    color: #fff;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-header .logo {
    font-size: 24px;
}

.site-header .site-name {
    font-size: 18px;
}

main {
    padding-top: 60px;
}

h1 {
    text-align: center;
    margin-top: 80px;
}

#cart-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 20px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    background-color: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cart-item .info {
    flex: 1;
}

.cart-item .buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.buttonCart {
    padding: 10px 15px;
    background-color: #2e8b57;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

.buttonCart:hover {
    background-color: #267a4d;
}

input[type="text"] {
    padding: 8px;
    width: 100%;
    margin: 10px 0;
}

.buttonCart:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.buttonCart:active {
    background-color: #3e9c6a;
}

#order-form {
    background-color: #f9f9f9; /* Светлый фон */
    padding: 20px;
    border-radius: 8px; /* Скругленные углы */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Легкая тень */
    width: 90%;
    max-width: 90%; /* Ограничиваем ширину формы */
    /*max-width: 800px;*/
    margin: 0 auto;
    font-family: 'Arial', sans-serif;
}

#order-form h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
    text-align: center;
}

#order-form label {
    font-size: 16px;
    color: #555;
    display: block;
    margin-bottom: 8px;
}

#order-form input[type="text"] {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

#order-form input[type="checkbox"] {
    margin-right: 10px;
}

#order-form button {
    width: 100%;
    padding: 12px;
    background-color: #2E8B57; /* Зеленый цвет для кнопки */
    color: white;
    font-size: 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    box-sizing: border-box;
    transition: background-color 0.3s ease;
}

#order-form button:hover {
    background-color: #247a4d; /* Темный оттенок при наведении */
}

#order-form button:disabled {
    background-color: #bbb; /* Дизактивированная кнопка */
    cursor: not-allowed;
}



#empty-cart-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    padding: 20px;
    margin: 40px auto;
    width: 80%;
    max-width: 500px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    font-family: Arial, sans-serif;
}

#empty-cart-message p {
    color: #333;
    font-size: 1.2em;
    margin-bottom: 15px;
}

#empty-cart-message .button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    font-weight: bold;
}

#empty-cart-message .button:hover {
    background-color: #0056b3;
}

/* Стили для кнопок - и + и удалить */
#order-form .cart-actions {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    flex-wrap: wrap; /* Позволяет элементам переноситься */
}

#order-form .cart-actions button {
    padding: 10px 15px;
    background-color: #ccc;
    color: white;
    font-size: 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-bottom: 10px; /* Добавляем отступ снизу для кнопки удаления */
}

#order-form .cart-actions button:hover {
    background-color: #bbb;
}

#order-form input[type="checkbox"] {
    display: inline-block;
    margin-left: 10px; /* Немного отступаем чекбокс от текста */
}

input[type="text"]:disabled {
    background-color: #e0e0e0; /* Темный серый фон */
    color: #6c6c6c; /* Темный цвет текста */
    border: 1px solid #b0b0b0; /* Темный цвет рамки */
    cursor: not-allowed; /* Указывает, что поле недоступно */
    opacity: 1; /* Убирает прозрачность по умолчанию */
}

#order-form label {
    display: inline-block;
}


.error-message {
    color: red;
    font-size: 16px;
    margin-top: 10px;
    text-align: center;
}

/* Стили для всплывающего окна */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.popup-content p {
    font-size: 18px;
    margin-bottom: 20px;
}

.popup-content .button {
    padding: 10px 20px;
    background-color: #2e8b57;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 16px;
    border: none;
    cursor: pointer;
}

.popup-content .button:hover {
    background-color: #247a4d;
}

/* Общие стили для блока с информацией */
.info-message {
    background-color: #fff4e5; /* Светло-желтый фон */
    border: 1px solid #f1c40f; /* Желтая рамка */
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    display: flex;
    align-items: flex-start;
}

.info-icon {
    font-size: 24px; /* Размер иконки */
    margin-right: 15px; /* Отступ от иконки */
    color: #f39c12; /* Цвет иконки (желтый) */
}

.info-text {
    font-size: 14px; /* Размер шрифта */
    color: #333; /* Цвет текста */
}

.info-text p {
    margin: 5px 0;
}

.info-text ul {
    list-style-type: disc;
    margin-left: 20px;
}

.info-text strong {
    font-weight: bold;
}

.checkbox-container {
    margin: 15px 0;
}

.storage-terms-link {
    text-decoration: underline;
    color: black;
    cursor: pointer;
    font-weight: bold;
}

.info-popup {
    position: absolute;
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 300px;
    z-index: 1000;
}

.info-popup h3 {
    margin-top: 0;
}

.info-popup ul {
    padding-left: 20px;
}

@media (max-width: 768px) {
    #order-form {
        padding: 15px;
        margin: 0 10px;
    }

    #order-form h2 {
        font-size: 20px; /* Уменьшаем размер заголовка */
        margin-bottom: 15px;
    }

    #order-form label {
        font-size: 14px;
    }

    #order-form input[type="text"] {
        padding: 12px;
        font-size: 14px;
    }

    #order-form input[type="checkbox"] {
        width: auto; /* Не расширяется на всю ширину */
        margin-right: 10px;
    }

    #order-form button {
        padding: 14px;
        font-size: 16px;
        width: 100%;
    }

    /* Размещение кнопок + и - на одной линии, а удалить под ними */
    #order-form .cart-actions {
        flex-direction: column;
        gap: 10px;
        align-items: center;
        justify-content: flex-start;
    }

    /* Кнопка удалить на новой строке */
    #order-form .cart-actions .delete-button {
        width: 100%;
        margin-top: 10px;
    }

    /* Кнопки + и - должны быть компактными */
    #order-form .cart-actions .increase-decrease-buttons {
        width: auto;
        display: flex;
        gap: 10px;
    }

    .cart-item {
        flex-direction: column;
    }
}
