/* 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;
}
