div:where(.swal2-container),
.modal,
.modal.show .modal-dialog {
    z-index: 999999999999 !important;
}

#side-checkout {
    position: fixed;
    top: 0;
    right: -100%;
    width: 500px;
    max-width: 90vw;
    height: 100%;
    background: #fff;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.15);
    transition: right 0.4s ease;
    z-index: 999;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

#side-checkout.active {
    right: 0;
}

@media (max-width: 768px) {
    #side-checkout {
        width: 100%;
        max-width: 100%;
    }

    #checkout_order_btn,
    .modal-footer button {
        margin-bottom: 60px !important;
    }
}

/* ================================
   3. COUPON SECTION
    ================================ */
.coupon-section {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    padding: 0 10px;
}

.coupon-section input {
    flex: 1;
    padding: 8px;
    font-size: 13px !important;
}

/* ================================
   4. DIVIDER LABEL
    ================================ */
.divider-label {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 0px 0 15px 0px;
}

.divider-label::before,
.divider-label::after {
    content: "";
    flex: 1;
    border-bottom: 2px solid #000;
}

.divider-label:not(:empty)::before {
    margin-left: 0.5em;
}

.divider-label:not(:empty)::after {
    margin-right: 0.5em;
}

/* ================================
   5. PAYMENT OPTIONS
    ================================ */
.payment-option {
    border: 1px solid #ced4da;
    border-radius: var(--border-radius);
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    margin-bottom: 8px;
    transition: 0.3s;
}

.payment-option:hover {
    background-color: #f1f1f1;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ================================
   9. ORDER ITEMS SECTION
    ================================ */
.order-items .list-group-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    margin-bottom: 8px;
    transition: background 0.3s;
}

.order-items .list-group-item:hover {
    background-color: rgba(38, 111, 118, 0.1);
}

.order-items .list-group-item strong {
    color: var(--primary-color);
}

.order-items .item-img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
    margin-left: 8px;
    flex-shrink: 0;
}

.order-items .list-group-item small {
    color: #555;
}

.order-items .text-primary {
    font-weight: 600;
}

.order-items > div {
    font-weight: 600;
    color: var(--primary-color);
}

.order-items > div.text-success {
    color: #28a745;
}

/* ================================
   10. UTILITY CLASSES
    ================================ */
.text-center {
    text-align: center;
}

.mb-1 {
    margin-bottom: 5px;
}

.mb-2 {
    margin-bottom: 10px;
}

.mb-3 {
    margin-bottom: 15px;
}

.mt-1 {
    margin-top: 5px;
}

.mt-2 {
    margin-top: 10px;
}

.mt-3 {
    margin-top: 15px;
}

.d-flex {
    display: flex;
}

.justify-center {
    justify-content: center;
}

.align-center {
    align-items: center;
}

.loader {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    animation: rotate 1s linear infinite;
    display: block;
    left: calc(50% - 20px);
    position: absolute;
    top: calc(50% - 20px);
}

.loader::before {
    content: "";
    box-sizing: border-box;
    position: absolute;
    inset: 0px;
    border-radius: 50%;
    border: 5px solid #256f76;
    animation: prixClipFix 2s linear infinite;
}

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes prixClipFix {
    0% {
        clip-path: polygon(50% 50%, 0 0, 0 0, 0 0, 0 0, 0 0);
    }

    25% {
        clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 0, 100% 0, 100% 0);
    }

    50% {
        clip-path: polygon(
            50% 50%,
            0 0,
            100% 0,
            100% 100%,
            100% 100%,
            100% 100%
        );
    }

    75% {
        clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 0 100%, 0 100%);
    }

    100% {
        clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 0 100%, 0 0);
    }
}

#telrPaymentBody {
    min-height: 100px;
    width: 100%;
    display: block;
    position: relative;
}

.left-arrow-back {
    position: absolute;
    top: calc(50% - 10px);
    left: 20px;
    z-index: 9999;
    cursor: pointer;
}

.left-arrow-back svg > path {
    fill: var(--color-buttons);
}

.just-phone {
    display: none;
}

.just-phone-flex {
    display: none !important;
}

.just-desktop {
    display: block !important;
}

.just-desktop-flex {
    display: flex !important;
}

.checkout-header {
    font-weight: bold;
    font-size: 20px;
}

@media (max-width: 768px) {
    #checkout_back_btn {
        /* #checkout_order_btn { */
        display: none !important;
    }

    .just-phone {
        display: block;
    }

    .just-phone-flex {
        display: flex !important;
    }

    .just-desktop {
        display: none !important;
    }

    .just-desktop-flex {
        display: none !important;
    }

    .checkout-header-stars {
        margin-top: 10px;
        letter-spacing: 3px;
        font-weight: bold;
        font-size: 15px;
    }

    /* Hide Google map in mobile view - only show in modal */
    #checkout-map {
        display: none !important;
    }
}

.payment-card,
.payment-option {
    border: 1px solid black !important;
    border-radius: 2px !important;
    padding: 15px !important;
    gap: 10px !important;
    width: 100% !important;
}

*::-webkit-scrollbar {
    width: 8px;
    /* scrollbar width */
}

*::-webkit-scrollbar-track {
    background: #f1f1f1;
    /* scrollbar background */
}

*::-webkit-scrollbar-thumb {
    background: #23666d;
    /* scrollbar color */
    border-radius: 6px;
}

*::-webkit-scrollbar-thumb:hover {
    background: #23666d;
}

* {
    scrollbar-width: thin;
    /* auto | thin | none */
    scrollbar-color: #23666d #f1f1f1;
}

.order-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 10px 0;
}

.order-details .btn {
    font-size: 10px;
    padding: 5px 10px;
    color: white;
    width: 90px;
    justify-content: center;
    align-items: center;
}

.edit-btn {
    padding: 5px 15px;
    font-size: 10px;
    color: white;
    width: 79px;
    justify-content: center;
    align-items: center;
}

#orderItemsList {
    animation-duration: 0.5s;
}

.gap-1 {
    gap: 4px;
}

.divider-label2 {
    cursor: pointer;
    border: 1px solid var(--app-teal);
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    box-shadow: 0px 2px 2px #80808091;
    max-width: fit-content;
    margin: 0 auto;
}

#checkout_total_price {
    font-size: 16px;
}

.cart-item-details {
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: space-between;
    height: -webkit-fill-available;
    /* padding: 12px 0; */
}

.pr-buttons {
    display: flex;
}

.cart-item-qty {
    display: flex;
    border: 1px solid var(--app-teal);
    border-radius: 6px;
    /* position: relative;
        top: 16px; */
}

.cart-item-qty > button {
    background: white;
    width: 25px;
    height: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 15px;
    /* border: 1px solid var(--app-teal); */
    color: var(--app-teal);
    border-radius: 5px;
    padding: 0;
}

.cart-item-qty > span {
    width: 18px;
    height: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 13px;
    /* border: 1px solid var(--app-teal); */
    border-radius: 5px;
}

.cart-item-remove {
    color: #ff4d4d !important;
    width: 25px;
    height: 25px;
    justify-content: center;
    align-items: center;
    /* border: 1px solid #ff4d4d; */
    font-size: 15px !important;
    position: absolute;
    left: 0;
    top: -6px;
}

html[lang="en"] .cart-item-remove {
    left: auto !important;
    right: 0 !important;
}

.pr-block {
    position: relative;
    height: 50px;
}

#orderItemsList {
    border: 1px solid #00000038;
    padding: 10px;
    border-radius: 10px;
    position: relative;
    top: -20px;
    z-index: 0;
}

.block.text-center.checkout-header.my-2 {
    margin-bottom: 10px !important;
}

.qntity-delete-btn {
    flex-direction: column-reverse;
    justify-content: space-between;
    height: 100%;
    padding: 10px 0;
    align-items: end !important;
}

html[lang="ar"] .cart-item-qty {
    flex-direction: row-reverse;
}

.pr-image {
    width: 110px;
}

.pr-block {
    width: 100%;
    flex-direction: column;
    justify-content: start;
    align-items: start !important;
}

.pr-btns {
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-content: center;
}

.custom-map-control-button {
    background-color: #fff;
    border: 0;
    border-radius: 2px;
    box-shadow: 0 1px 4px -1px rgba(0, 0, 0, 0.3);
    margin: 10px;
    padding: 0;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    bottom: 0 !important;
}

.custom-map-control-button:hover {
    background-color: #f8f8f8;
}

.custom-map-control-button:disabled {
    cursor: not-allowed;
}

.swal2-confirm.swal2-styled {
    background: var(--app-teal) !important;
}

.mini-loader {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-block;
    position: relative;
    border: 2px solid;
    border-color: #fff #fff transparent;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}

.mini-loader::after {
    content: "";
    box-sizing: border-box;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto;
    border: 2px solid;
    border-color: transparent #e1dcda #e5e1e0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    animation: rotationBack 0.5s linear infinite;
    transform-origin: center center;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes rotationBack {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(-360deg);
    }
}

#openMapModalBtnMobile {
    margin-top: 15px;
    width: 100%;
    padding: 10px;
    font-size: 13px;
}

.stepper {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 12px;
    list-style: none;
    background: white;
    border-radius: 8px;
    font-size: 12px;
    font-weight: bold;
    justify-content: center;
    gap: 6px;
    margin-bottom: 20px;
}

.step {
    display: flex;
    align-items: center;
    color: #555;
    gap: 3px;
}

.step.active {
    color: var(--app-teal);
    /* brand color */
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    font-size: 12px;
    border-radius: 50%;
    border: 1px solid #aaa;
    flex-shrink: 0;
    padding-left: 2px;
}

.step.active .step-number {
    border-color: var(--app-teal);
}

.step-arrow {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transform: rotate(180deg);
}

/* Responsive behavior (matches sm:inline-flex) */
@media (min-width: 640px) {
    .step-label {
        display: inline;
    }
}

#addressStep,
#orderDetailsStep,
#paymentStep,
#invoiceStep {
    padding: 0 10px;
}

#addressStep > #AddressBox > label {
    width: 100%;
    text-align: justify;
}

.step-next {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-direction: row-reverse;
}

.step-next > button {
    width: fit-content;
    gap: 6px;
    border: 1px solid #9e9e9e9c;
    padding: 5px;
    border-radius: 10px;
}

.back-step-button svg {
    transform: rotate(180deg);
}

html[lang="ar"] .step-next > button {
    flex-direction: row-reverse;
}

html[lang="en"] .step-next {
    flex-direction: row;
}

.step-next > button > svg {
    width: 15px;
}

.next-step-button,
.back-step-button {
    /* margin-top: 50px; */
    min-width: 110px;
}

#orderDetailsStep #orderItemsList,
#orderDetailsStep #orderItemsLis strong {
    font-size: 11px;
    font-weight: normal !important;
}

#orderDetailsStep #orderItemsList .text-primary {
    font-size: 10px;
    font-weight: bold;
}

.btn-strok {
    text-align: center;
    box-shadow: 0px 2px 2px #80808091;
    background: white !important;
    color: var(--app-teal);
}

.alert2 {
    padding: 10px;
    border-radius: 10px;
}

.alert2.alert2-success {
    color: #155724 !important;
    background: #d4edda !important;
    border-color: #d4edda !important;
}

.alert2.alert2-info {
    color: #004085 !important;
    background-color: #cce5ff !important;
    border-color: #b8daff !important;
}

.alert2.alert2-danger {
    color: white !important;
    background: #ea7b7b !important;
    border-color: #ea7b7b !important;
}

.new_order_message {
    text-align: center;
}

.step-item {
    display: none;
}

.step-item.active {
    display: block !important;
}

#openMapModalBtn {
    margin-bottom: 20px;
}
