/* MOW4U full-screen location selector — UPDATE test */

.el-dialog.mow-location-dialog {
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
}

.mow-location-dialog .el-dialog__header {
    flex: 0 0 auto;
    min-height: 48px;
    padding: 12px 20px;
    margin: 0;
    background: #fff;
    border-bottom: 1px solid #eee;
}

.mow-location-dialog .el-dialog__body {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: 0 !important;
    overflow: hidden;
}

.mow-location-screen {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    width: 100%;
    background: #fff;
}

/* Top search and GPS controls */

.mow-location-top {
    flex: 0 0 auto;
    padding: 16px;
    background: #fff;
    z-index: 5;
}

.mow-location-top h4 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 14px;
    color: #222;
}

.mow-location-top .el-autocomplete {
    width: 100%;
}

.mow-use-location {
    display: block;
    width: 100%;
    margin-top: 12px;
    padding: 12px;
    background: #fff3e8;
    border: 1px solid #f5bd8a;
    border-radius: 10px;
    color: #e87519;
    font-weight: 700;
    cursor: pointer;
}

.mow-use-location i {
    margin-right: 8px;
}

.mow-use-location:disabled {
    opacity: .5;
    cursor: not-allowed;
}

/* Main interactive map */

.mow-location-map {
    position: relative;
    flex: 1 1 auto;
    min-height: 160px;
    width: 100%;
    overflow: hidden;
}

.mow-location-map .map-lg-large {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100% !important;
    border: none !important;
}

.mow-pin-instruction {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    max-width: 85%;
    padding: 9px 15px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,.18);
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
    pointer-events: none;
}

/* Bottom address preview and confirmation */

.mow-location-bottom {
    flex: 0 0 auto;
    padding: 16px 20px;
    padding-bottom: max(20px, env(safe-area-inset-bottom));
    background: #fff;
    border-top: 1px solid #eee;
    box-shadow: 0 -3px 15px rgba(0,0,0,.06);
    z-index: 5;
}

.mow-location-preview {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    color: #333;
    font-size: 14px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.mow-location-preview i {
    color: #e87519;
    font-size: 25px;
}

.mow-confirm-location {
    width: 100%;
    min-height: 54px;
    padding: 14px;
    background: #e87519;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
}

.mow-confirm-location:disabled {
    background: #f3bd91;
    cursor: not-allowed;
}

@media (min-width: 768px) {
    .mow-location-top,
    .mow-location-bottom {
        padding-left: max(24px, calc((100% - 720px)/2));
        padding-right: max(24px, calc((100% - 720px)/2));
    }
}

@media (max-width: 575px) {
    .mow-location-top {
        padding: 12px;
    }

    .mow-location-top h4 {
        font-size: 18px;
    }

    .mow-location-bottom {
        padding: 12px;
        padding-bottom: max(16px, env(safe-area-inset-bottom));
    }

    .mow-confirm-location {
        min-height: 52px;
    }
}

/* Checkout: delivery-details reminder */
.mow-delivery-details-reminder {
    margin: 12px 0 20px;
    padding: 16px;
    border: 1px solid #f5bd8a;
    border-left: 4px solid #e87519;
    border-radius: 10px;
    background: #fff8f1;
}

.mow-delivery-details-reminder h5 {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 700;
    color: #333;
}

.mow-delivery-details-reminder p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #444;
}


/* MOW4U PWA-STYLE FLOATING CART */
@media (max-width: 767px) {

  .mow-floating-cart {
    width: calc(100vw - 24px);
    max-width: 520px;
    margin: 0 auto 12px;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #1c2941;
    color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 6px 24px rgba(0,0,0,.22);
  }

  .mow-floating-cart .mow-cart-icon {
    background: #ff5a1f;
    color: #ffffff;
    border-radius: 10px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .mow-floating-cart .mow-cart-details {
    flex: 1;
    min-width: 0;
    cursor: pointer;
  }

  .mow-floating-cart .mow-cart-merchant {
    display: block;
    font-size: 12px;
    color: #cdd5e2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .mow-floating-cart .mow-cart-total {
    display: block;
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
  }

  .mow-floating-cart .mow-cart-checkout {
    background: #ff5a1f;
    color: #ffffff !important;
    border-radius: 10px !important;
    padding: 13px 12px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
  }

}


/* MOW4U CHECKOUT REDESIGN PHASE 1 */
.mow-checkout-page {
    background: #f6f8fc;
    padding-top: 24px;
    padding-bottom: 48px;
}

.mow-checkout-page .card {
    background: #fff;
    border: 1px solid #e8edf4;
    border-radius: 16px;
    box-shadow: 0 4px 18px rgba(28,41,65,.045);
    overflow: hidden;
}

.mow-checkout-page .section-title {
    color: #1c2941;
    font-weight: 700;
}

.mow-checkout-page .badge-dark {
    background: #ff5a1f;
    border-color: #ff5a1f;
}

.mow-checkout-page .chevron-section {
    border: 1px solid #e8edf4;
    border-radius: 10px !important;
    background: #fff;
}

.mow-checkout-page .chevron-section:hover {
    border-color: #ffb398;
}

.mow-checkout-page .card-body {
    padding: 22px;
}

@media (max-width: 991.98px) {
    .mow-checkout-page {
        padding-top: 12px;
        padding-bottom: 32px;
    }

    .mow-checkout-page .mow-checkout-cart {
        order: -1;
    }

    .mow-checkout-page .mow-checkout-main {
        order: 0;
    }

    .mow-checkout-page .sticky-cart {
        position: static !important;
        top: auto !important;
    }
}

@media (max-width: 767.98px) {
    .mow-checkout-page .mow-checkout-container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .mow-checkout-page .mow-checkout-layout {
        margin-left: 0;
        margin-right: 0;
    }

    .mow-checkout-page .mow-checkout-main,
    .mow-checkout-page .mow-checkout-cart {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-bottom: 14px !important;
    }

    .mow-checkout-page .card {
        border-radius: 14px;
    }

    .mow-checkout-page .card-body {
        padding: 16px;
    }
}


/* MOW4U CHECKOUT REDESIGN PHASE 2 */
@media (max-width: 767.98px) {
    .mow-checkout-page {
        padding-bottom: 112px;
    }

    /* Preserve the original Vue order action; display it in a fixed footer. */
    .mow-checkout-page .mow-checkout-place-order {
        position: fixed;
        bottom: max(12px, env(safe-area-inset-bottom));
        left: 16px;
        right: 16px;
        width: calc(100% - 32px) !important;
        max-width: 560px;
        margin: 0 auto;
        min-height: 54px;
        border-radius: 12px;
        z-index: 100;
        box-shadow: 0 0 0 12px #f6f8fc, 0 5px 18px rgba(28,41,65,.18);
    }

    /* Allow the saved address to use the available width. */
    .mow-checkout-page #vm_delivery_details .border-green {
        padding: 14px !important;
        min-width: 0;
    }

    .mow-checkout-page #vm_delivery_details .border-green .col-9 {
        flex: 0 0 82%;
        max-width: 82%;
        min-width: 0;
    }

    .mow-checkout-page #vm_delivery_details .border-green .col-3 {
        flex: 0 0 18%;
        max-width: 18%;
        padding-left: 0;
        padding-right: 0;
    }

    .mow-checkout-page #vm_delivery_details .el-radio-group {
        display: block;
        width: 100%;
        margin-left: 0 !important;
    }

    .mow-checkout-page #vm_delivery_details .el-radio {
        display: flex;
        align-items: flex-start;
        width: 100%;
        height: auto;
        margin-right: 0;
        white-space: normal;
    }

    .mow-checkout-page #vm_delivery_details .el-radio__label {
        flex: 1;
        min-width: 0;
        white-space: normal;
        overflow-wrap: anywhere;
        line-height: 1.5;
    }

    /* Wrap tip choices instead of clipping them off-screen. */
    .mow-checkout-page #vue-tips .btn-group {
        display: flex;
        flex-wrap: wrap;
        width: 100%;
        gap: 6px;
    }

    .mow-checkout-page #vue-tips .btn-group > .btn {
        flex: 0 0 auto;
        border-radius: 8px !important;
        margin: 0;
    }

    /* Prevent delivery schedule text from running into its icon. */
    .mow-checkout-page .transaction-section .flexcol {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .mow-checkout-page .transaction-section p {
        white-space: normal;
        line-height: 1.5;
    }
}


/* MOW4U CHECKOUT REDESIGN PHASE 3 */

/* Delivery address: eliminate the narrow nested map-location box. */
.mow-checkout-page #vm_delivery_details .border-green {
    border-radius: 12px;
    overflow-wrap: anywhere;
}

.mow-checkout-page #vm_delivery_details .border-green .border-green {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-top: 10px;
    padding: 12px !important;
    border-color: #e5eaf2;
    background: #f8faff;
}

.mow-checkout-page #vm_delivery_details .el-radio__label > div {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
}

/* Order type and schedule. */
.mow-checkout-page .transaction-section {
    padding: 16px;
    gap: 12px;
}

.mow-checkout-page .transaction-section .flexcol {
    min-width: 0;
}

.mow-checkout-page .transaction-section p {
    margin-top: 5px !important;
    overflow-wrap: anywhere;
    line-height: 1.55;
}

/* Existing payment controls, presented as cleaner selectable cards. */
.mow-checkout-page #vue-payment-list .chevron-section {
    min-height: 64px;
    padding: 12px 14px;
    border: 1px solid #e0e7f1;
    border-radius: 12px !important;
    transition: border-color .15s, background .15s;
}

.mow-checkout-page #vue-payment-list .chevron-section.selected {
    background: #fff7f3;
    border-color: #ff5a1f;
}

.mow-checkout-page #vue-payment-list .payment-logo-wrap {
    flex-shrink: 0;
    margin-right: 12px !important;
}

.mow-checkout-page #vue-payment-list .section-title,
.mow-checkout-page #vue-payment-list h5 {
    color: #1c2941;
    font-weight: 700;
}

/* Keep long payment labels and fees readable on phones. */
@media (max-width: 767.98px) {
    .mow-checkout-page #vue-payment-list .chevron-section {
        gap: 8px;
    }

    .mow-checkout-page #vue-payment-list .chevron-section .flexcol {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .mow-checkout-page #vm_delivery_details .border-green .col-9 {
        padding-right: 6px;
    }

    .mow-checkout-page #vm_delivery_details .border-green .col-3 {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .mow-checkout-page #vm_delivery_details .border-green .col-3 .btn {
        padding: 8px;
    }
}


/* MOW4U CHECKOUT REDESIGN PHASE 4 */
.mow-checkout-page .mow-checkout-footer-total {
    display: none;
}

@media (max-width: 767.98px) {
    .mow-checkout-page {
        padding-bottom: 125px;
    }

    .mow-checkout-page .mow-checkout-order-footer {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 100;
        display: flex;
        align-items: center;
        gap: 14px;
        padding: 12px 16px;
        padding-bottom: max(12px, env(safe-area-inset-bottom));
        background: #fff;
        border-top: 1px solid #e5eaf2;
        box-shadow: 0 -4px 20px rgba(28,41,65,.06);
    }

    .mow-checkout-page .mow-checkout-footer-total {
        display: flex;
        flex: 0 0 32%;
        min-width: 0;
        flex-direction: column;
        gap: 2px;
        color: #1c2941;
    }

    .mow-checkout-page .mow-checkout-footer-total small {
        font-size: 11px;
        color: #687386;
    }

    .mow-checkout-page .mow-checkout-footer-total strong {
        font-size: 19px;
        font-weight: 700;
        white-space: nowrap;
    }

    .mow-checkout-page .mow-checkout-order-footer
    .mow-checkout-place-order {
        position: static !important;
        flex: 1;
        width: auto !important;
        max-width: none;
        min-width: 0;
        margin: 0;
        min-height: 52px;
        background: #ff5a1f;
        border-color: #ff5a1f;
        border-radius: 12px;
        box-shadow: none;
    }
}


/* MOW4U CHECKOUT PAYMENT CARDS PHASE 5 */
.mow-checkout-page #vue-payment-list .mow-payment-option {
    margin-left: 0;
    margin-right: 0;
    padding: 0;
    overflow: hidden;
}

.mow-checkout-page #vue-payment-list .mow-payment-select {
    appearance: none;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    text-align: left;
    padding: 14px;
    min-height: 66px;
    font: inherit;
}

.mow-checkout-page #vue-payment-list .mow-payment-select:focus-visible {
    outline: 2px solid #ff5a1f;
    outline-offset: -3px;
}

.mow-checkout-page #vue-payment-list .mow-payment-select::after {
    content: "";
    width: 19px;
    height: 19px;
    border: 2px solid #bcc6d5;
    border-radius: 50%;
    margin-left: auto;
    flex-shrink: 0;
}

.mow-checkout-page #vue-payment-list
.mow-payment-option.selected .mow-payment-select::after {
    border: 6px solid #ff5a1f;
    background: white;
}

.mow-checkout-page #vue-payment-list .mow-payment-option.selected {
    border-color: #ff5a1f;
    background: #fff7f3;
}

.mow-checkout-page #vue-payment-list .mow-payment-option > .col-lg-4 {
    padding-right: 10px;
}

@media (max-width: 767.98px) {
    .mow-checkout-page #vue-payment-list .mow-payment-select {
        padding: 12px;
    }

    .mow-checkout-page #vue-payment-list .mow-payment-select .flexcol {
        min-width: 0;
        overflow-wrap: anywhere;
    }
}


/* MOW4U UNIFIED PAYMENT LIST PHASE 6 */
.mow-checkout-page .mow-payment-heading h5 {
    font-weight: 700;
    color: #1c2941;
}

.mow-checkout-page .mow-unified-payment-list {
    border: 1px solid #e0e7f1;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
}

.mow-checkout-page #vue-payment-list
.mow-unified-payment-list .chevron-section {
    margin: 0 !important;
    border: 0;
    border-bottom: 1px solid #e8edf4;
    border-radius: 0 !important;
    box-shadow: none;
}

.mow-checkout-page #vue-payment-list
.mow-unified-payment-list .chevron-section.selected {
    background: #fff7f3;
    box-shadow: inset 3px 0 #ff5a1f;
}

.mow-checkout-page .mow-add-payment-link {
    display: block;
    width: 100%;
    padding: 14px;
    border: 0;
    background: #fff;
    color: #ff5a1f;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}

.mow-checkout-page .mow-add-payment-link:hover {
    background: #fff7f3;
}

.mow-checkout-page #vue-payment-list
.mow-unified-payment-list .mow-payment-option {
    min-height: 64px;
}

.mow-checkout-page #vue-payment-list
.mow-unified-payment-list .mow-unified-new-option {
    min-height: 64px;
}

@media (max-width: 767.98px) {
    .mow-checkout-page .mow-unified-payment-list {
        border-radius: 12px;
    }
}


/* MOW4U PAYMENT ROW ALIGNMENT PHASE 8 */

/* Keep each saved method on one compact row. */
.mow-checkout-page #vue-payment-list
.mow-unified-payment-list .mow-payment-option {
    position: relative !important;
    display: block !important;
    min-height: 68px !important;
    padding: 0 !important;
}

.mow-checkout-page #vue-payment-list
.mow-unified-payment-list .mow-payment-select {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 68px !important;
    padding: 12px 54px 12px 14px !important;
    margin: 0 !important;
    text-align: left !important;
}

.mow-checkout-page #vue-payment-list
.mow-unified-payment-list .mow-payment-select .flexcol {
    min-width: 0;
    text-align: left;
}

.mow-checkout-page #vue-payment-list
.mow-unified-payment-list .mow-payment-select::after {
    margin-left: auto;
    margin-right: 5px;
}

/* Position saved-payment management beside the radio indicator. */
.mow-checkout-page #vue-payment-list
.mow-unified-payment-list .mow-payment-option > .col-lg-4 {
    position: absolute !important;
    right: 6px !important;
    top: 50% !important;
    transform: translateY(-50%);
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    max-width: 40px !important;
    height: 40px !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Give new methods the same dimensions. */
.mow-checkout-page #vue-payment-list
.mow-unified-payment-list .mow-unified-new-option {
    min-height: 68px !important;
    padding: 12px 14px !important;
    align-items: center !important;
}

/* Remove unnecessary space beneath payment cards. */
.mow-checkout-page .mow-unified-payment-list {
    margin-bottom: 0;
}

.mow-checkout-page .mow-payment-heading p {
    margin-bottom: 10px !important;
}


/* MOW4U ONE-TAP PAYMENT SELECTION: checkout presentation only */
.mow-checkout-page #vue-payment-list .mow-payment-option > .col-lg-4 {
    display: none !important;
}

.mow-checkout-page #vue-payment-list .mow-payment-heading {
    display: none !important;
}

.mow-checkout-page #vue-payment-list .mow-add-payment-link {
    display: none !important;
}

.mow-checkout-page #vue-payment-list .mow-payment-select {
    padding-right: 18px !important;
}

/* MOW4U HIDE CHECKOUT PAYMENT MANAGEMENT */
#vue-payment-list .mow-payment-option > .col-lg-4,
#vue-payment-list .mow-payment-option .dropdown {
    display: none !important;
}

#vue-payment-list .mow-payment-option .mow-payment-select {
    padding-right: 18px !important;
}


/* MOW4U CHECKOUT SUMMARY TELEPORT */
.mow-checkout-page .mow-checkout-summary-target:not(:empty) {
    padding: 20px;
    background: #fff;
    border-top: 1px solid #e5eaf2;
}

.mow-checkout-page .mow-order-summary-title {
    margin: 0 0 16px;
    font-size: 18px;
    font-weight: 700;
    color: #14243d;
}

.mow-checkout-page .mow-checkout-summary-target .cart-summary {
    margin: 0 !important;
}

@media (max-width: 767px) {
    .mow-checkout-page .mow-checkout-summary-target:not(:empty) {
        padding: 20px 18px 24px;
    }
}


/* MOW4U PROMO RELOCATION PHASE 65 */
.mow-checkout-page .mow-checkout-promo {
    padding: 18px 20px 12px;
    border-top: 1px solid #e5eaf2;
}

.mow-checkout-page .mow-checkout-promo-title {
    color: #14243d;
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 14px;
}

.mow-checkout-page .mow-checkout-promo .promo-section {
    min-height: 54px;
    margin-bottom: 10px !important;
}

@media (max-width: 767px) {
    .mow-checkout-page .mow-checkout-promo {
        padding: 18px 18px 10px;
    }
}


/* MOW4U PWA VISUAL REFINEMENT PHASE 67 */

/* A compact, unified payment list. */
.mow-checkout-page #vue-payment-list .mow-unified-payment-list {
    border: 1px solid #e2e7f0;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
}

.mow-checkout-page #vue-payment-list
.mow-unified-payment-list .mow-payment-option,
.mow-checkout-page #vue-payment-list
.mow-unified-payment-list .mow-unified-new-option {
    position: relative;
    min-height: 72px !important;
    margin: 0 !important;
    border: 0 !important;
    border-bottom: 1px solid #e9edf4 !important;
    border-radius: 0 !important;
    box-shadow: none;
    background: #fff;
}

.mow-checkout-page #vue-payment-list
.mow-unified-payment-list .mow-payment-select,
.mow-checkout-page #vue-payment-list
.mow-unified-payment-list .mow-unified-new-option {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 72px !important;
    padding: 12px 15px !important;
    gap: 10px;
    text-align: left !important;
    cursor: pointer;
}

.mow-checkout-page #vue-payment-list
.mow-unified-payment-list .mow-payment-option.selected {
    background: #fff7f3;
    box-shadow: inset 3px 0 #ff5a1f;
}

.mow-checkout-page #vue-payment-list
.mow-unified-payment-list .mow-payment-option.selected
.mow-payment-select {
    background: #fff7f3;
}

/* Consistent icons, with a fallback for the three standard providers. */
.mow-checkout-page #vue-payment-list
.mow-unified-payment-list .payment-logo-wrap {
    display: flex !important;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    min-width: 36px;
    align-items: center;
    justify-content: center;
    margin: 0 2px 0 0 !important;
    border: 1px solid #e3e9f2;
    border-radius: 10px;
    background: #fff;
    color: #1c2941;
}

.mow-checkout-page #vue-payment-list
[data-mow-code="cod"] .payment-logo-wrap > *,
.mow-checkout-page #vue-payment-list
[data-mow-code="c2c2p"] .payment-logo-wrap > *,
.mow-checkout-page #vue-payment-list
[data-mow-code="bank"] .payment-logo-wrap > * {
    display: none !important;
}

.mow-checkout-page #vue-payment-list
[data-mow-code="cod"] .payment-logo-wrap::before {
    content: "฿";
    font-size: 20px;
    font-weight: 700;
}

.mow-checkout-page #vue-payment-list
[data-mow-code="c2c2p"] .payment-logo-wrap::before {
    content: "▣";
    font-size: 22px;
}

.mow-checkout-page #vue-payment-list
[data-mow-code="bank"] .payment-logo-wrap {
    color: #ff5a1f;
    border-color: #ffd7c6;
    background: #fff8f5;
}

.mow-checkout-page #vue-payment-list
[data-mow-code="bank"] .payment-logo-wrap::before {
    content: "▥";
    font-size: 24px;
}

/* Payment labels and descriptions. */
.mow-checkout-page #vue-payment-list
.mow-unified-payment-list .mow-payment-select > .flexcol:not(.payment-logo-wrap),
.mow-checkout-page #vue-payment-list
.mow-unified-payment-list .mow-unified-new-option > .flexcol:not(.payment-logo-wrap) {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    line-height: 1.35;
}

.mow-checkout-page #vue-payment-list .mow-payment-name {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #1c2941;
    margin: 0 !important;
}

.mow-checkout-page #vue-payment-list .mow-payment-description {
    display: block;
    font-size: 11px;
    font-weight: 400;
    color: #778092;
}

.mow-checkout-page #vue-payment-list
.mow-unified-payment-list .text-grey.font11 {
    display: block;
    font-size: 11px;
    line-height: 1.3;
}

/* Align saved and unsaved payment indicators. */
.mow-checkout-page #vue-payment-list
.mow-unified-payment-list .mow-payment-select::after,
.mow-checkout-page #vue-payment-list
.mow-unified-payment-list .mow-unified-new-option::after {
    content: "";
    display: block;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    margin: 0 0 0 auto !important;
    border: 2px solid #bbc5d2;
    border-radius: 50%;
    background: #fff;
    box-shadow: none;
    transform: none;
}

.mow-checkout-page #vue-payment-list
.mow-unified-payment-list .mow-payment-option.selected
.mow-payment-select::after {
    border: 5px solid #ff5a1f;
}

#vue-payment-list .mow-payment-option > .col-lg-4,
#vue-payment-list .mow-payment-option .dropdown {
    display: none !important;
}

/* One compact promotions card. */
.mow-checkout-page .mow-checkout-promo {
    padding: 16px 18px;
    border-top: 1px solid #e9edf4;
}

.mow-checkout-page .mow-checkout-promo-title {
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: 700;
    color: #1c2941;
}

.mow-checkout-page .mow-checkout-promo .promo-section {
    display: flex !important;
    align-items: center;
    min-height: 58px;
    margin: 0 0 8px !important;
    padding: 10px 12px;
    border: 1px solid #f3dace;
    border-radius: 12px !important;
    background: #fff9f6;
    color: #1c2941;
    font-size: 13px;
}

.mow-checkout-page .mow-checkout-promo .promo-section .zmdi-label {
    color: #ff5a1f;
    font-size: 19px;
}

.mow-checkout-page .mow-checkout-promo .promo-section .flexcol {
    min-width: 0;
}

/* Clearer live total breakdown. */
.mow-checkout-page .mow-checkout-summary-target:not(:empty) {
    padding: 18px;
    border-top: 1px solid #e9edf4;
}

.mow-checkout-page .mow-order-summary-title {
    margin-bottom: 13px;
    font-size: 16px;
    font-weight: 700;
    color: #1c2941;
}

.mow-checkout-page .mow-checkout-summary-target
.cart-summary > .d-flex {
    min-height: 26px;
    gap: 12px;
    color: #4f5d72;
    font-size: 13px;
}

.mow-checkout-page .mow-checkout-summary-target
.cart-summary > .d-flex:last-child {
    margin-top: 9px;
    padding-top: 11px;
    border-top: 1px solid #e9edf4;
    color: #1c2941;
}

.mow-checkout-page .mow-checkout-summary-target
.cart-summary > .d-flex:last-child h6 {
    font-weight: 700;
    font-size: 16px;
}

@media (max-width: 767.98px) {
    .mow-checkout-page .mow-checkout-promo,
    .mow-checkout-page .mow-checkout-summary-target:not(:empty) {
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* MOW4U PAYMENT RADIO CLICK FIX PHASE 68 */

/* The complete saved-payment row must be the button. */
#vue-payment-list .mow-unified-payment-list .mow-payment-option {
    position: relative !important;
    width: 100% !important;
}

#vue-payment-list .mow-unified-payment-list .mow-payment-select {
    position: relative !important;
    z-index: 1;
    display: flex !important;
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    box-sizing: border-box !important;
    padding: 12px 48px 12px 14px !important;
    cursor: pointer !important;
}

/* Keep each radio inside its clickable control. */
#vue-payment-list .mow-unified-payment-list
.mow-payment-select::after,
#vue-payment-list .mow-unified-payment-list
.mow-unified-new-option::after {
    position: absolute !important;
    right: 15px !important;
    top: 50% !important;
    left: auto !important;
    margin: 0 !important;
    transform: translateY(-50%) !important;
    pointer-events: none !important;
    border-radius: 50% !important;
    box-sizing: border-box !important;
}

/* The unsaved-method row is also fully clickable. */
#vue-payment-list .mow-unified-payment-list
.mow-unified-new-option {
    position: relative !important;
    display: flex !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-right: 48px !important;
    cursor: pointer !important;
}


/* MOW4U MOBILE CART REFINEMENT PHASE 69 */
.mow-checkout-page .mow-checkout-merchant-header {
    padding: 14px 16px !important;
}
.mow-checkout-page .mow-checkout-merchant-header .items {
    align-items: flex-start;
    gap: 10px;
}
.mow-checkout-page .mow-checkout-merchant-header .el-image {
    width: 42px !important;
    height: 42px !important;
}
.mow-checkout-page .mow-checkout-merchant-header .flex-fill {
    min-width: 0;
    padding-left: 0 !important;
}
.mow-checkout-page .mow-checkout-merchant-header h5 {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    color: #1c2941;
}
.mow-checkout-page .mow-checkout-merchant-header p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    font-size: 12px;
    line-height: 1.5;
    color: #687386;
    overflow-wrap: anywhere;
}
.mow-checkout-page .mow-checkout-cart-heading {
    margin-bottom: 14px !important;
}
.mow-checkout-page .mow-checkout-cart-heading h5 {
    font-size: 17px;
    font-weight: 700;
    color: #1c2941;
}
.mow-checkout-page .section-cart .line-items {
    align-items: flex-start;
    padding: 9px 0;
}
.mow-checkout-page .section-cart .line-items .col-6 > .quantity {
    display: inline-flex !important;
    justify-content: flex-start !important;
    align-items: center;
    align-self: flex-start;
    gap: 9px;
    margin-top: 7px;
    padding: 3px;
    border: 1px solid #e3e9f2;
    border-radius: 10px;
    background: #f8faff;
}
.mow-checkout-page .section-cart .line-items .col-6 > .quantity .qty-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 27px;
    height: 27px;
    min-width: 27px;
    border: 1px solid #e2e7f0;
    border-radius: 8px !important;
    background: #fff !important;
    color: #ff5a1f !important;
    box-shadow: none;
}
.mow-checkout-page .section-cart .line-items .col-6 > .quantity .qty {
    min-width: 16px;
    text-align: center;
    font-weight: 700;
    color: #1c2941;
}
.mow-checkout-page #vue-transaction .transaction-section {
    display: flex !important;
    align-items: center;
    min-height: 84px;
    padding: 14px 16px;
}
.mow-checkout-page #vue-transaction .transaction-section > .flexcol:nth-child(2) {
    flex: 1 1 auto;
    min-width: 0;
    padding-right: 10px;
}
.mow-checkout-page #vue-transaction .mow-schedule-label,
.mow-checkout-page #vue-transaction .mow-schedule-time {
    display: block;
}
.mow-checkout-page #vue-transaction .mow-schedule-time {
    margin-top: 3px;
}
.mow-checkout-page #vue-transaction .transaction-section p {
    line-height: 1.5;
    white-space: normal;
    overflow-wrap: anywhere;
}


/* MOW4U DESKTOP CHECKOUT REFINEMENT PHASE 70 */
@media (min-width: 992px) {

    /* Consistent spacing between the two desktop columns. */
    .mow-checkout-page .mow-checkout-main {
        padding-right: 12px !important;
    }

    .mow-checkout-page .mow-checkout-cart {
        padding-left: 12px !important;
    }

    /* Keep the existing cart structure, but make it more compact. */
    .mow-checkout-page .mow-checkout-cart .card-body {
        padding: 20px;
    }

    .mow-checkout-page .mow-checkout-cart-heading {
        margin-bottom: 8px !important;
    }

    .mow-checkout-page .mow-checkout-cart .section-cart .line-items {
        padding: 7px 0;
    }

    .mow-checkout-page .mow-checkout-cart .section-cart .items {
        margin-bottom: 10px;
    }

    /* Show the existing live Vue total inside the desktop cart. */
    .mow-checkout-page .mow-checkout-cart
    .mow-checkout-footer-total {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding: 15px 0;
        border-top: 1px solid #e5eaf2;
        color: #1c2941;
    }

    .mow-checkout-page .mow-checkout-cart
    .mow-checkout-footer-total small {
        font-size: 14px;
        font-weight: 600;
        color: #687386;
    }

    .mow-checkout-page .mow-checkout-cart
    .mow-checkout-footer-total strong {
        font-size: 21px;
        font-weight: 800;
        color: #1c2941;
    }

    .mow-checkout-page .mow-checkout-cart
    .mow-checkout-order-footer {
        display: flex;
        flex-direction: column;
        gap: 2px;
        width: 100%;
    }

    /* Apply the brand colour without changing the order handler. */
    .mow-checkout-page .mow-checkout-cart
    .mow-checkout-place-order {
        display: block;
        width: 100% !important;
        min-height: 54px;
        background: #ff5a1f !important;
        border-color: #ff5a1f !important;
        border-radius: 12px;
        color: #fff !important;
        font-size: 16px;
        font-weight: 700;
        box-shadow: none;
    }

    .mow-checkout-page .mow-checkout-cart
    .mow-checkout-place-order:hover {
        background: #ed4b12 !important;
        border-color: #ed4b12 !important;
    }

    /* More consistent typography throughout the left column. */
    .mow-checkout-page .mow-checkout-main .section-title {
        font-size: 19px;
    }

    .mow-checkout-page .mow-checkout-main
    .mow-checkout-summary-target .cart-summary {
        max-width: 100%;
    }
}


/* MOW4U DESKTOP LEFT COLUMN PHASE 71 */
@media (min-width: 992px) {

    /* Reduce oversized section padding. */
    .mow-checkout-page .mow-checkout-main > .card > .card-body {
        padding: 22px 28px;
    }

    /* Compact delivery scheduling without hiding its information. */
    .mow-checkout-page #vue-transaction .transaction-section {
        min-height: 88px;
        padding: 14px 18px;
        gap: 14px;
    }

    .mow-checkout-page #vue-transaction
    .transaction-section > .flexcol:nth-child(2) {
        flex: 1;
        min-width: 0;
    }

    .mow-checkout-page #vue-transaction .transaction-section p {
        margin-top: 3px !important;
        font-size: 13px;
        line-height: 1.4;
    }

    .mow-checkout-page #vue-transaction .mow-schedule-time {
        margin-top: 2px;
    }

    /* Make the selected delivery address less bulky. */
    .mow-checkout-page #vm_delivery_details .border-green {
        padding: 16px 18px !important;
        border-radius: 12px;
    }

    .mow-checkout-page #vm_delivery_details
    .border-green .border-green {
        margin-top: 8px;
        padding: 10px 14px !important;
        background: #f8faff;
        border-color: #e3e9f2;
    }

    .mow-checkout-page #vm_delivery_details
    .border-green p {
        line-height: 1.45;
        margin-bottom: 4px;
    }

    /* Consistent spacing for checkout section headings. */
    .mow-checkout-page .mow-checkout-main .section-title {
        font-size: 18px;
        line-height: 1.3;
    }

    .mow-checkout-page .mow-checkout-main
    .card-body > .row.mb-3 {
        margin-bottom: 14px !important;
    }
}


/* MOW4U DESKTOP FINAL POLISH PHASE 76 */
@media (min-width: 992px) {

    /* Balanced desktop page width and column spacing. */
    .mow-checkout-page .mow-checkout-container {
        max-width: 1280px;
        padding-left: 24px;
        padding-right: 24px;
    }

    .mow-checkout-page .mow-checkout-layout {
        margin-left: -10px;
        margin-right: -10px;
        align-items: flex-start;
    }

    .mow-checkout-page .mow-checkout-main {
        flex: 0 0 64%;
        max-width: 64%;
        padding: 10px !important;
    }

    .mow-checkout-page .mow-checkout-cart {
        flex: 0 0 36%;
        max-width: 36%;
        padding: 10px !important;
    }

    /* Consistent card treatment. */
    .mow-checkout-page .mow-checkout-main > .card,
    .mow-checkout-page .mow-checkout-cart > #vue-cart > .card {
        border-radius: 16px;
        border: 1px solid #e6ebf3;
        box-shadow: 0 5px 24px rgba(28,41,65,.055);
    }

    /* Consistent rhythm throughout the main checkout. */
    .mow-checkout-page .mow-checkout-main > .card > .card-body {
        padding: 24px 28px;
    }

    .mow-checkout-page .mow-checkout-main .section-title {
        font-size: 18px;
        font-weight: 700;
        letter-spacing: -.2px;
        color: #1c2941;
    }

    .mow-checkout-page .mow-checkout-main
    .card-body > .row.mb-3 {
        margin-bottom: 16px !important;
    }

    /* Make interactive checkout cards feel consistent. */
    .mow-checkout-page .mow-checkout-main
    .chevron-section {
        border-radius: 12px !important;
        transition: border-color .15s, background-color .15s;
    }

    .mow-checkout-page .mow-checkout-main
    .chevron-section:hover {
        border-color: #ffb398;
    }

    /* Keep the payment method list comfortably readable. */
    .mow-checkout-page #vue-payment-list
    .mow-unified-payment-list .mow-payment-option,
    .mow-checkout-page #vue-payment-list
    .mow-unified-payment-list .mow-unified-new-option {
        min-height: 76px !important;
    }

    .mow-checkout-page #vue-payment-list
    .mow-payment-name {
        font-size: 14px;
    }

    .mow-checkout-page #vue-payment-list
    .mow-payment-description {
        font-size: 12px;
    }

    /* Refine promo and order-summary presentation. */
    .mow-checkout-page .mow-checkout-promo {
        padding: 20px 28px;
    }

    .mow-checkout-page .mow-checkout-summary-target:not(:empty) {
        padding: 22px 28px 28px;
    }

    .mow-checkout-page .mow-checkout-promo-title,
    .mow-checkout-page .mow-order-summary-title {
        font-size: 17px;
        font-weight: 700;
        color: #1c2941;
    }

    .mow-checkout-page .mow-checkout-summary-target
    .cart-summary > .d-flex {
        min-height: 30px;
        font-size: 14px;
    }

    /* Give the desktop cart a consistent position and spacing. */
    .mow-checkout-page .mow-checkout-cart .sticky-cart {
        top: 20px;
    }

    .mow-checkout-page .mow-checkout-cart .card-body {
        padding: 20px 22px;
    }

    .mow-checkout-page .mow-checkout-cart-heading h5 {
        font-size: 18px;
    }

    .mow-checkout-page .mow-checkout-cart
    .mow-checkout-footer-total {
        margin-top: 8px;
    }

    .mow-checkout-page .mow-checkout-cart
    .mow-checkout-place-order {
        min-height: 54px;
        font-size: 16px;
    }
}


/* MOW4U TABLET CHECKOUT FOOTER PHASE 78 */
@media (min-width: 768px) and (max-width: 991.98px) {

    /* Leave room for the fixed checkout footer. */
    .mow-checkout-page {
        padding-bottom: 125px !important;
    }

    /* Keep the cart above the checkout form at tablet widths. */
    .mow-checkout-page .mow-checkout-cart {
        order: -1;
    }

    /* Keep total and Place Order accessible while scrolling. */
    .mow-checkout-page .mow-checkout-order-footer {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 1000;
        display: flex !important;
        align-items: center;
        gap: 20px;
        padding: 12px max(24px, calc((100vw - 720px) / 2));
        padding-bottom: max(12px, env(safe-area-inset-bottom));
        background: #fff;
        border-top: 1px solid #e5eaf2;
        box-shadow: 0 -4px 20px rgba(28,41,65,.08);
    }

    .mow-checkout-page .mow-checkout-footer-total {
        display: flex !important;
        flex: 0 0 145px;
        flex-direction: column;
        gap: 2px;
        color: #1c2941;
    }

    .mow-checkout-page .mow-checkout-footer-total small {
        font-size: 12px;
        color: #687386;
    }

    .mow-checkout-page .mow-checkout-footer-total strong {
        font-size: 20px;
        font-weight: 700;
        white-space: nowrap;
    }

    .mow-checkout-page .mow-checkout-order-footer
    .mow-checkout-place-order {
        position: static !important;
        display: block !important;
        flex: 1 1 auto;
        width: auto !important;
        max-width: none !important;
        min-height: 54px;
        margin: 0 !important;
        background: #ff5a1f !important;
        border-color: #ff5a1f !important;
        border-radius: 12px;
        color: #fff !important;
        font-weight: 700;
        box-shadow: none !important;
    }
}
