#checkout-main-page {
    display: flex;
    flex-direction: row;
    gap: 30px;
}

#info_block,
#summary_block {
    flex: 1;
    padding: 20px 10px;
}

#info_block {
    order: 1;
}

#summary_block {
    order: 2;
}

.step-review {
    display: flex;
    margin-bottom: 1rem;
}

.step-review .step-icon {
    background-color: #33b050;
    border-radius: 50%;
    color: #ffffff;
    margin-right: 10px;
    height: 34px;
    width: 34px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-review .step-content {
    flex: 1;
}

.back-to-prev {
    color: #fff;
    border: none;
    box-shadow: 0 2px 8px rgba(60, 112, 49, 0.10);
    transition: background 0.2s, box-shadow 0.2s;
    position: relative;
    cursor: pointer;
    background: linear-gradient(90deg, #979797 0%, #bcb7b7 100%);
    transition: 0.3s;
    padding: 8px 12px;
    border-radius: 6px;
}

.back-to-prev:hover {
    color: #fff;
    background: linear-gradient(90deg, #bcb7b7 0%, #979797 100%);
    box-shadow: 0 4px 16px rgba(60, 112, 49, 0.18);
    scale: 0.98;
}

.continue,
.back-to-prev,
.pickup-btn,
.delivery-btn {
    width: 45%;
}


.info-item i {
    margin-right: 8px;
    color: #85aa6a;
}


.delivery-container {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.delivery-header {
    font-size: 20px;
    font-weight: 600;
    padding: 24px 32px 16px;
    color: #1a1a1a;
}

.tabs {
    display: flex;
    background-color: #f1f5f9;
    border-radius: 12px;
    padding: 6px;
    position: relative;
}

.tab {
    flex: 1;
    padding: 8px 13px;
    text-align: center;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 2;
    position: relative;
}

.tab.active {
    color: #85aa6a;
    font-weight: 600;
}

.tab-indicator {
    position: absolute;
    top: 6px;
    bottom: 6px;
    left: 6px;
    width: calc(50% - 6px);
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.tab-content {
    padding-bottom: 30px;
    color: #334155;
    line-height: 1.6;
}

.content {
    display: none;
}

.content.active {
    margin-top: 10px;
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#summary_title {
    color: #3c7031;
}

#product-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.clear-all-text {
    text-decoration: underline;
    text-align: end;
    cursor: pointer;
}

.clear-all-text:hover {
    color: #28a745;
}

#checkoutProducts {
    max-height: 270px;
    overflow-y: auto;
    padding: 3px 6px;
}

/* #checkoutProducts {
    direction: rtl;     
    overflow-y: auto;
}

#checkoutProducts > * {
    direction: ltr;
} */

#checkoutProducts::-webkit-scrollbar {
    width: 4px;
}

#checkoutProducts::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

#checkoutProducts::-webkit-scrollbar-track {
    background: transparent;
}

/* Firefox */
#checkoutProducts {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.4) transparent;
}



.checkout-item {
    margin-bottom: 15px;
}

.checkout-item .img-thumbnail {
    height: 70px;
    object-fit: cover;
    aspect-ratio: 1;
    padding: 3px;
    border-radius: 4px;
}

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

.item-status {
    color: #f57d7d;
    min-height: 22px;
}

.input-qty {
    width: 70px;
    display: inline-block;
    padding: 1px 8px;
    border: 1px solid #dee2e6;
    border-radius: 3px;
}
.input-qty::-webkit-inner-spin-button,
.input-qty::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.input-qty {
    -moz-appearance: textfield;   /* Firefox */
}

input[type="number"] {
    text-align: right;
}

input[type="number"]::-webkit-inner-spin-button {
    margin-left: 5px;
}

.delete-product-btn {
    color: #e74c3c;
    cursor: pointer;
}

.delete-product-btn:hover {
    color: #c0392b;
    scale: 1.05;
}

#tip {
    width: 100px;
    display: inline-block;
    padding: 4px 12px;
}

#tip::-webkit-inner-spin-button,
#tip::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

#tip {
    -moz-appearance: textfield;
}

#orderConfirmationModal .modal-dialog {
    max-width: 600px;
}

#orderConfirmationLabel {
    margin: auto;
}

.alert-info {
    --bs-alert-bg: #e9ffee !important;
}



/*
  ******  RESPONSIVE LAYOUT  ******
*/
@media screen and (max-width: 1200px) {}

@media screen and (max-width: 991px) {
    #checkout-main-page {
        flex-direction: column;
        gap: 15px;
    }

    #info_block {
        order: 2;
    }

    #summary_block {
        order: 1;
    }

    .checkout-item {
        align-items: flex-end !important;
    }
}

@media screen and (max-width: 768px) {}

@media screen and (max-width: 660px) {}

@media screen and (max-width: 580px) {
    #tip {
        width: 90px;
        display: inline-block;
        padding: 3px 9px;
    }

    #orderConfirmationModal .modal-dialog {
        max-width: 95%;
    }

}

@media screen and (max-width: 450px) {}

@media screen and (max-width: 365px) {}