html, body{
    height: 100%;
}
body {
    min-height: calc(var(--vh) * 100);
}
.main-wrapper {
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    min-height: 100%;
}
.form-group-label {
    margin-bottom: 15px;
}
.cart h1 {
    margin-left: 24px;
}
.cart p {
    margin: 0 24px;
}
.cart h2 {
    margin-left: 24px;
}
footer {
    flex: 0 0 auto;
}
.cart-section {
    flex: 2;
    min-width: 300px;
}

.order-section {
    margin-top: 40px;
}

h2 {
    margin-bottom: 20px;
    padding-bottom: 10px;
}

.cart-item {
    display: flex;
    padding: 32px 5px 0 24px;
    justify-content: space-between;
    align-items: center;
    text-align: center;
}
.item-image-name {
    display: flex;
    align-items: center;
    width: 300px;
}
.item-image {
    width: 100px;
    height: 100px;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}
.item-image img {
    width: 100%;
    height: 100%;
}

.item-details {
    width: 50px;
}
.item-price {
    width: 100px;
    margin-right: 10px;
    font-weight: 500;
    white-space: nowrap;
}
.cart-header .item-price {
    font-weight: 400;
    text-align: center;
}
.quantity-controls {
    width: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.quantity-btn {
    width: 49px;
    height: 49px;
    border: none;
    background-color: #9BDBAD;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
}

.quantity {
    width: 40px;
    text-align: center;
}

.remove-btn {
    background: none;
    border: none;
    cursor: pointer;
    margin-top: 10px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 32px;
    font-weight: 500;
}
.summary-row span:first-child {
}
.summary-row span:last-child {
    color: #3CB05E;
}
.summary-row-delivery {
    font-size: 18px;
    flex-wrap: wrap;
    font-weight: 400;
}
.summary-row-delivery p {
    width: 100%;
    color: #5F6C72;
    font-size: 14px;
}
.total {
    font-size: 18px;
    margin-top: 10px;
    padding-top: 10px;
    font-weight: 400;
    flex-wrap: wrap;
}
.total p {
    width: 100%;
    color: #5F6C72;
    font-size: 14px;
}
.total button {
    color: #fff;
    background-color: #3CB05E;
    border: none;
    outline: none;
    text-align: center;
    padding: 16px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.3s ease;
    text-transform: uppercase;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    margin: 40px auto 15px;
    align-items: center;
    white-space: nowrap;
    width: 100%;
    text-align: center;
    justify-content: center;
}
.total button:disabled {
    background-color: #DDDDDE;
    cursor: default;
}

.form-group {
    margin: 0 24px;
    margin-bottom: 15px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}
.form-group div:first-child {
    width: 35%;
}
.form-group div:last-child {
    width: 60%;
}
.form-group span {
    font-size: 12px;
    color: #5F6C72;
}
label {
    display: block;
    margin-bottom: 5px;
    font-weight: 400;
    color: #5F6C72;
    font-size: 16px;
}

input, select {
    width: 100%;
    padding: 18px 10px;
    border: 1px solid #B1BABE;
    border-radius: 10px;
    font-size: 16px;
    outline: none;
}

.form-row {
    display: flex;
    gap: 15px;
}
.payment-methods {
    margin: 0 24px;
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}
.payment-methods p {
    width: 100%;
}
.payment-method {
    text-align: left;
    cursor: pointer;
    position: relative;
    padding-left: 40px;
    margin-right: 20px;
}
.payment-method:before {
    content: '';
    border: 1px solid #B1BABE;
    width: 30px;
    height: 30px;
    display: inline-block;
    border-radius: 50%;
    position: absolute;
    left: 0;
    top: 15px;
}
.payment-method.active:after {
    content: '';
    width: 18px;
    height: 18px;
    display: flex;
    border-radius: 50%;
    position: absolute;
    top: 22px;
    left: 7px;
    background: #3CB05E;
}
.payment-method img {
    width: 80px;
    height: auto;
    max-height: 50px;
    object-fit: contain;
}

.checkout-btn {
    display: none;
}
.cart-section {
    margin-top: 40px;
}
.cart-and-total {
    display: flex;
    flex-wrap: wrap;
}

.cart-and-total .cart {
    width: 65%;
    margin-right: 24px;
    padding: 30px 0;
}
.order-section .cart-and-total .cart {
    /*padding: 30px 24px;*/
}
.order-section .cart-and-total .cart.payment {
    margin-top: 40px;
    margin-bottom: 60px;
}
.order-section .cart-and-total .cart.payment p {
    color: #5F6C72;
    font-size: 18px;
    margin-bottom: 32px;
}
.cart-and-total .cart h2,
.cart-and-total .cart h1 {
    padding-bottom:  24px;
    font-weight: 400;
    font-size: 32px;
}
.cart-and-total .cart h2 {
    padding: 0;
}
.cart-and-total .cart-summary {
    width: 33%;
    padding: 40px 24px;
}
.cart-and-total .cart,
.cart-and-total .cart-summary {
    border: 1px solid #E6E6E6;
    border-radius: 15px;
}
.cart-header {
    background-color: #D9FFE4;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
}
.cart-header div {
    font-size: 18px;
    color: #191C1F;
}
.cart-summary-mobile {
    display: none;
    border: 1px solid #E6E6E6;
    border-radius: 15px;
    padding: 40px 24px;
    margin-bottom: 60px;
}
.cart-and-total-main > div {
    display: flex;
    width: 100%;
}
.empty-cart-title {
    width: 100%;
    height: auto;
    display: table;
    color: #191C1F;
    font-size: 32px;
    line-height: 1.5;
    text-align: center;
    margin: 0 0 32px;
    font-weight: 600;
}
.empty-cart-button {
    display: table;
    margin: 40px auto;
    background: #3CB05E;
    color: #fff !important;
    padding: 8.5px 32px;
    font-weight: 500;
    font-size: 18px;
    line-height: 1.5;
    transition: .3s;
    cursor: pointer;
    text-decoration: none;
}
.not_found {
    width: 100%;
    height: auto;
    border-radius: 6px;
    padding: 18px 18px 18px 49px;
    background: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMTkiIHZpZXdCb3g9IjAgMCAyMCAxOSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTE5LjUgOS41QzE5LjUgMTIuMDE5NiAxOC40OTkxIDE0LjQzNTkgMTYuNzE3NSAxNi4yMTc1Qz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LjMzOTdDOS4zODMwMSAxMC41NjI0IDkuNjg1MDYgMTAuNjg3NSAxMCAxMC42ODc1QzEwLjMxNDkgMTAuNjg3NSAxMC42MTcgMTAuNTYyNCAxMC44Mzk3IDEwLjMzOTdDMTEuMDYyNCAxMC4xMTcgMTEuMTg3NSA5LjgxNDk0IDExLjE4NzUgOS41VjQuNzVDMTEuMTg3NSA0LjQzNTA2IDExLjA2MjQgNC4xMzMwMSAxMC44Mzk3IDMuOTEwMzFDMTAuNjE3IDMuNjg3NjEgMTAuMzE0OSAzLjU2MjUgMTAgMy41NjI1WiIgZmlsbD0iIzgzNTEwMSIvPjwvc3ZnPg==") 18px center no-repeat #FFFCC2;
    color: #835101;
    font-size: 16px;
    line-height: 1.7;
    font-weight: 400;
    margin: 25px 0
}
@media (max-width: 1024px) {
    .cart-summary {
        display: none;
    }
    .cart-summary-mobile {
        display: block;
    }
    .order-section .cart-and-total .cart.payment {
        margin-bottom: 0;
        width: 100%;
        margin-right: 0;
    }
    .order-section .cart-and-total .cart,
    .cart-and-total .cart {
        width: 100%;
        margin-right: 0;
    }
    .cart-and-total-main .cart {
        min-width: 768px;
        border: none;
    }
    .cart-and-total-main {
        border: 1px solid #E6E6E6;
        padding-bottom: 40px;
        border-radius: 15px;
    }
}
@media (max-width: 768px) {
    .cart-item {
        padding: 32px 5px 0 20px;
    }
    .item-image-name {
        width: 200px;
    }
    .form-group div:first-child {
        width: 100%;
    }
    .form-group div:last-child {
        width: 100%;
    }
    .form-group {
        flex-direction: column;
    }
    .cart-section {
        margin-top: 41px;
    }
    .order-section .cart-and-total-main {
        /*padding-left: 16px;*/
        /*padding-right: 16px;*/
        overflow: visible;
    }
    .cart-and-total-main {
        overflow: visible;
    }
    .cart-and-total-main > div {
        overflow-x: scroll;
        overflow-y: hidden;
        padding-bottom: 20px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: #3CB05E #E9E9E9;
        width: 100%;
        max-width: 100%;
    }
    .cart-and-total-main > div::-webkit-scrollbar {
        height: 14px;
        display: block !important;
        -webkit-appearance: none;
        background: #E9E9E9;
        border-radius: 20px;
        opacity: 1 !important;
        visibility: visible !important;
    }
    .cart-and-total-main > div::-webkit-scrollbar-track {
        background: #E9E9E9;
        border-radius: 20px;
        -webkit-box-shadow: inset 0 0 4px rgba(0,0,0,0.15);
        box-shadow: inset 0 0 4px rgba(0,0,0,0.15);
        border: 1px solid rgba(0,0,0,0.05);
    }
    .cart-and-total-main > div::-webkit-scrollbar-thumb {
        height: 14px;
        background-color: #3CB05E;
        border-radius: 20px;
        -webkit-appearance: none;
        -webkit-box-shadow: 0 0 2px rgba(0,0,0,0.2);
        box-shadow: 0 0 2px rgba(0,0,0,0.2);
        min-width: 60px;
        border: 1px solid rgba(255,255,255,0.3);
    }
    .cart-and-total-main > div::-webkit-scrollbar-thumb:hover {
        background-color: #2d8f48;
    }
    .cart-and-total-main > div::-webkit-scrollbar-thumb:active {
        background-color: #257a3d;
    }
    .payment-methods {
        flex-wrap: wrap;
    }
    .item-image {
        width: 80px;
        height: 80px;
        min-width: 80px;
        flex-shrink: 0;
    }
    .item-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 4px;
    }
}
.order-section-success {
    margin-bottom: 60px;
    display: none;
}