/* Мои Стили */

.overlay.active {
    opacity: 1;
    visibility: visible;
}
input#phoneInput {
    padding-left: 74px;
    width: 100%;
    font-size: 80%;
}

label {
    display: flex;
    align-items: center;
    margin: 10px 0;
    cursor: pointer;
    font-size: 18px;
}

label input {
    display: none;
}

.custom-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid #37815a;
    margin-right: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 3px;
}

.custom-checkbox::after {
    content: "";
    width: 10px;
    height: 10px;
    display: none;
    background: #37815a;
}

label input:checked + .custom-checkbox::after {
    display: block;
}

.cart-button {
    position: relative;
    height: 20px;
    margin-right: 1px;
    background: transparent;
    border: 1px solid #4a4a4a;
    color: white;
    padding: 15px;
    border-radius: 0;
    cursor: pointer;
    font-size: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1001;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    z-index: 999;
}

.cart-button:hover {
    transform: scale(1.1);
}

.cart-button .fa-cart-plus {
    font-size: 18px;
}

.cart-count {
    position: absolute;
    top: 0px;
    right: 0px;
    background: red;
    color: white;
    padding: 2px 6px;
    font-size: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
	z-index: 999;
}

.cart-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    transition: 0.3s;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

.cart {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow-y: auto;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #ddd;
    background: #37815a;
    color: white;
}

.close-btn {
    background: #fff;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #121212;
    padding: 10px 15px 10px 15px;
}

.close-btn:hover {
background: #c43b3b;
    color: #ffffff;
}

.cart-items {
    padding: 20px;
    margin: 0;
    flex: 1;
    list-style-position: inside;
    font-size: 16px;
    background: #d2d2d2;
    color: #000;
}

.cart-items li {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    position: relative;
}

.cart-items li button {
    background: none;
    border: none;
    color: red;
    cursor: pointer;
    font-size: 14px;
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid #ddd;
    background: #37815a;
    color: white;
    font-size: 14px;
}

.phone-input {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.phone-input input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-right: 10px;
}


.submit-btn {
    background: #5d5d5d;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: -30px;
}

.submit-btn:hover {
    background: #c43b3b;
}

.submit-btn .fas {
    font-size: 18px;
}

.privacy-container {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.privacy-container input {
    margin-right: 10px;
    width: 20px;
    height: 20px;
    border-radius: 3px;
    background-color: #27a7e7;
    border: 2px solid #27a7e7;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.privacy-container input:checked {
    background-color: #27a7e7;
}

.privacy-container input:checked::after {
    content: "";
    width: 10px;
    height: 10px;
    display: block;
    background: white;
    position: absolute;
}

.privacy-policy {
    font-size: 12px;
    display: block;
    text-align: left;
}

.details-btn {
    font-size: 85%;
    margin: 5px;
    background-color: #27a7e7;
    color: white;
    border: none;
    padding: 10px 10px;
    border-radius: 5px;
    cursor: pointer;
} 

.details-btn:hover {
    background-color: #0056b3;
}

@media (max-width: 1186px) {
    .cart-overlay {
        width: 60%; /* Устанавливаем ширину корзины на 60% */
    }
	.cart-button .fa-cart-plus {
    font-size: 20px;
}
.cart-button {
    top: -2px;
    right: 30px;
    background: transparent;
    color: white;
    padding: 15px;
    border: 1px solid #2b2b2b;
    border-radius: 0%;
    
}
}
 
 
@media (max-width: 768px) {
	
	.cart-button {
        right: 10px;
        z-index: 999;
    }

.cart-count {
    top: 5px;
}
    label.product {
        display: block;
        align-items: left;
        justify-content: space-between; /* Разделить элементы */
        width: 100%; /* Занять всю ширину */
        margin: 5px 0; /* Уменьшить отступы */
		float: left;
    }

    .product-checkbox {
        margin-right: 10px; /* Отступ между чекбоксом и кнопкой */
    }

    .details-btn {
        margin-left: auto; /* Сдвинуть кнопку вправо */
        background-color: #27a7e7;
        color: white;
        border: none;
        padding: 5px 10px;
        border-radius: 5px;
        cursor: pointer;
    }

    .details-btn:hover {
        background-color: #0056b3;
    }
    .cart-items, .cart-footer, .cart-header, .container {
        padding: 10px;
        font-size: 14px;
    }

    .custom-checkbox {
        width: 50px;
        height: 16px;
		float: left;
    }

    .custom-checkbox::after {
        width: 8px;
        height: 8px;
    }

    .cart-overlay {
        width: 75%;
        right: -100%;
    }

    label {
        font-size: 16px;
    }

    h1 {
        font-size: 20px;
    }

    /* Стили для мобильной версии */
    .modal-content {
        height: 80%;
        width: auto;
        top: 50px;
        backdrop-filter: blur(10px);
        background: transparent;
    }
    .phone-input input {
        margin-right: -50px; /* Отодвигаем инпут вправо */
    }
	
}