.cartPage {
    max-width: 1320px;
    margin: 0 auto;
}

.cartContainer {
    display: flex;
    gap: 30px;
    margin-top: 25px;
}

.cartItems {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cartItem {
    display: flex;
    align-items: center;
    background: #fff1e9;
    padding: 15px;
    border-radius: 12px;
    gap: 20px;
}

.cartItem img {
    aspect-ratio: 3/2;
    object-fit: cover;
    height: 100px;
    border-radius: 8px;
}

.cartInfo {
    flex: 1;
}

.cartTitle {
    font-weight: 500;
    color: #3D1F14;
}

.cartStructure {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 5px;
}

.cartStructureItem {
    display: flex;
    align-items: center;
    gap: 5px;
}

.cartStructureItem img {
    width: 18px;
    height: 18px;
}

.cartStructureItem p {
    color: #999;
    font-size: 14px;
}

.cartPriceContainer {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 5px;
}

.cartPrice {
    font-size: 16px;
    color: #3D1F14;
    font-weight: 500;
    transition: .4s;
}

.cartPriceOld {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;    
}

.cartCount {
    display: flex;
    align-items: center;
    gap: 5px;
    background: #fff;
    padding: 5px;
    border-radius: 100px;
}

.cartCount input {
    text-align: center;
    width: 55px;
    height: 36px;
    background: #FFF0E5;
    color: #F56800;
    border-radius: 20px;
}

.cartCount button {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f56800;
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

.cartCount button img {
    width: 10px;
    height: 16px;
}

.cartCount span {
    font-weight: bold;
}

.cartForm {
    width: 420px;
    background: #FFF5EE;
    padding: 20px;
    border-radius: 12px;
}

.cartForm h3 {
    padding-bottom: 15px;
    border-bottom: 1px solid #DDDDDD;
    color: #131313;
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 20px;
}

.cartForm label {
    font-weight: 500;
    color: #131313;
    display: block;
    margin-top: 15px;
    font-size: 14px;
}

.cartForm input,
.cartForm select,
.cartForm textarea {
    width: calc(100% - 30px);
    padding: 15px;
    margin-top: 10px;
    font-size: 14px;
    border-radius: 28px;
    background: #FFE6D3;
    color: #F56800;
}

.cartForm input::placeholder {
    color: #F56800;
}

.cartForm select {
    width: 100%;
    border-right: 12px solid transparent;
}

.radioGroup {
    margin-top: 6px;
    margin-bottom: 15px;
}

.radioGroup label {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 10px;
    color: #999;
    font-weight: unset;
    cursor: pointer;
}

.radioGroup label input {
    width: 20px;
    height: 20px;
    margin: 0;
    accent-color: #F56800;
}

.radioGroup input:checked + span {
    color: #F56800;
}

textarea {
    min-height: 80px;
    resize: vertical;
}

.cartTotal {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
}

.cartTotal span {
    color: #131313;
    font-weight: unset;
}

.cartTotal p {
    color: #F56800;
    font-size: 16px;
    font-weight: unset;
}

.orderBtn {
    width: 100%;
    padding: 15px;
    background: #f56800;
    color: white;
    border: none;
    border-radius: 40px;
    font-weight: unset;
    font-size: 14px;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: #FFF5EE;
    margin: 15% auto;
    padding: 20px;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
}

.modal-content h3 {
    padding-bottom: 15px;
    border-bottom: 1px solid #DDDDDD;
    color: #131313;
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 20px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #F56800;
    text-decoration: none;
    cursor: pointer;
}

#confirmTime {
    width: 100%;
    padding: 15px;
    background: #f56800;
    color: white;
    border: none;
    border-radius: 40px;
    font-size: 14px;
    margin-top: 20px;
}

#addressFields input,
#addressFields select {
    width: calc(100% - 30px);
    padding: 15px;
    margin-top: 10px;
    font-size: 14px;
    border-radius: 28px;
    background: #FFE6D3;
    color: #F56800;
}

#addressFields select {
    width: 100%;
}

.addressGrid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.addressGrid input,
.addressGrid select {
    width: calc(100% - 30px);
}

#apartmentFields,
#houseFields {
    grid-column: span 2;
}

#apartmentFields input {
    width: calc(50% - 40px);
    display: inline-block;
}

#apartmentFields input:first-child {
    margin-right: 14px;
}

@media (max-width: 1200px) {
    .cartContainer {
        flex-direction: column;
    }
        
    .cartItem {
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
        align-items: center;
        text-align: center;
        background: #fff1e9;
        padding: 15px;
        border-radius: 12px;
        gap: 20px;
    }

    .cartForm {
        width: calc(100% - 20px);
        padding: 10px;
    }

    .cartStructureItem {
        display: flex;
        justify-content: center;
    }

    .cartStructure {
        justify-content: center;
        width: 100%;
    }

	.cartPriceContainer{
		display: flex;
		justify-content: center;
		align-items: center;
		gap: 10px;
		margin-top: 5px;
	}

    .addressGrid {
        grid-template-columns: 1fr;
    }

    #apartmentFields,
    #houseFields {
        grid-column: span 1;
    }

    #apartmentFields input {
        width: calc(100% - 30px);
        display: block;
    }

    #apartmentFields input:first-child {
        margin-right: 0;
    }
}

.cartEmptyContainer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 60vh;
}

.cartEmptyImg {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 65px;
    height: 65px;
    border-radius: 20px;
    background: #FFE6D3;
}

.cartEmptyImg img {
    width: 35px;
    opacity: 0.5;
}

.cartEmptyContainer p {
    font-size: 16px;
    margin-top: 15px;
    color: #131313;
}

.cartEmptyContainer .btn {
    margin-top: 15px;
}

.formAgreement{
    display: flex;
    margin-bottom: 25px;
    width: 100%;
}

.formAgreement label{
    display: flex;
    gap: 10px;
    align-items: center;
    justify-self: start;
    text-align: left;
}

.formAgreement label input{
    width: auto;
    margin: 0;
}

.formAgreement span{
    display: inline-block;
    font-weight: unset;
    color: #999;
}

.formAgreement span a{
    color: #F56800;
    text-decoration: underline;
}

.formAgreement span a:hover{
    text-decoration: none;
}