/* =========================================================
   Noghte Three Step Checkout - Frontend Optimized CSS
   Path: assets/css/frontend.css
   ========================================================= */

/* Base modal — sit above WhatsApp / floating widgets (near 32-bit max) */
#mfsc-modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 2147483000 !important;
    isolation: isolate;
    direction: rtl;
    font-family: inherit;
    --MFSC-primary-safe: var(--MFSC-primary, #2563eb);
    --MFSC-primary-text-safe: var(--MFSC-primary-text, #ffffff);
    --MFSC-success-safe: var(--MFSC-success, #16a34a);
    --MFSC-danger-safe: var(--MFSC-danger, #dc2626);
    --MFSC-overlay-safe: var(--MFSC-overlay, #0f172a);
    --MFSC-surface: #ffffff;
    --MFSC-soft: #f8fafc;
    --MFSC-soft-2: #f1f5f9;
    --MFSC-border: #e2e8f0;
    --MFSC-border-soft: #eef2f7;
    --MFSC-text: #0f172a;
    --MFSC-muted: #64748b;
    --MFSC-shadow: 0 34px 110px rgba(15, 23, 42, 0.34);
}

body.mfsc-modal-open {
    overflow: hidden;
}

/* Keep floating cart / site chat widgets from covering the open modal */
body.mfsc-modal-open #mfsc-floating-cart,
body.mfsc-modal-open .mfsc-floating-cart,
body.mfsc-modal-open .mfsc-fly-to-cart,
body.mfsc-modal-open .mfsc-floating-toast {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    z-index: 1 !important;
}

#mfsc-modal *,
#mfsc-modal *::before,
#mfsc-modal *::after {
    box-sizing: border-box;
}

#mfsc-modal .mfsc-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.58);
    backdrop-filter: blur(10px);
}

#mfsc-modal .mfsc-box,
#mfsc-modal .mfsc-fast-modal-card {
    position: relative;
    width: min(var(--mfsc-modal-width, 560px), calc(100% - 28px));
    max-height: calc(100dvh - 44px);
    margin: 22px auto;
    display: grid;
    grid-template-rows: auto auto auto minmax(0, 1fr) auto;
    overflow: hidden;
    border-radius: var(--MFSC-modal-radius, 24px);
    background: var(--MFSC-surface);
    border: 1px solid rgba(226, 232, 240, 0.92);
    box-shadow: var(--MFSC-shadow);
    animation: MFSC-pop 0.18s ease-out;
}

@keyframes MFSC-pop {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.985);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Header */
#mfsc-modal .mfsc-header,
#mfsc-modal .mfsc-fast-header {
    min-height: 52px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    background: var(--MFSC-surface);
    border-bottom: 1px solid var(--MFSC-border-soft);
}

#mfsc-modal .mfsc-fast-title {
    color: var(--MFSC-text);
    font-size: 15px;
    font-weight: 900;
    line-height: 1.5;
    flex: 1 1 auto;
    min-width: 0;
}

#mfsc-modal .mfsc-trusted-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-inline-start: auto;
    margin-inline-end: 0;
    padding: 4px 9px;
    border-radius: 999px;
    background: linear-gradient(135deg, #fff7ed, #ffedd5);
    color: #c2410c;
    border: 1px solid #fdba74;
    font-size: 11px;
    font-weight: 900;
    line-height: 1.2;
    white-space: nowrap;
    width: auto;
    max-width: max-content;
    flex: 0 0 auto;
    align-self: center;
}

#mfsc-modal .mfsc-trusted-badge > span {
    flex: 0 0 auto;
    width: auto;
    min-width: 0;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    color: inherit;
    white-space: nowrap;
}

#mfsc-modal .mfsc-trusted-badge svg {
    width: 12px;
    height: 12px;
    flex: 0 0 12px;
    fill: #f59e0b;
    stroke: #ea580c;
}

#mfsc-modal .mfsc-close {
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
    flex: 0 0 28px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 999px;
    background: var(--MFSC-soft-2);
    color: #334155;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

#mfsc-modal .mfsc-close:hover {
    background: #e2e8f0;
    color: var(--MFSC-text);
    transform: rotate(4deg);
}

/* Stepper */
#mfsc-modal .mfsc-fast-steps {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: stretch;
    gap: 6px;
    padding: 10px 12px;
    background: var(--MFSC-soft);
    border-bottom: 1px solid var(--MFSC-border-soft);
}

#mfsc-modal .mfsc-fast-steps.mfsc-fast-steps--cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

#mfsc-modal .mfsc-fast-steps.mfsc-fast-steps--cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

#mfsc-modal .mfsc-fast-step.is-hidden {
    display: none;
    cursor: default;
    pointer-events: none;
}

#mfsc-modal .mfsc-free-shipping-slot {
    flex-shrink: 0;
    padding: 10px 12px 0;
    position: relative;
    z-index: 0;
    overflow: hidden;
    min-height: 0;
    background: var(--MFSC-surface);
}

#mfsc-modal .mfsc-free-shipping-slot:empty {
    display: none;
    padding: 0;
}

#mfsc-modal.mfsc-modal-is-loading .mfsc-free-shipping-slot {
    display: none;
}

#mfsc-modal .mfsc-free-shipping-slot .mfsc-free-shipping-bar--promo {
    margin: 0;
}

#mfsc-modal .mfsc-free-shipping-slot .mfsc-free-shipping-refresh-placeholder {
    display: grid;
    place-items: center;
    min-height: 48px;
    margin: 0;
}

#mfsc-modal .mfsc-free-shipping-slot .mfsc-free-shipping-refresh-placeholder .mfsc-fast-spinner {
    width: 26px;
    height: 26px;
    border-width: 2px;
}

.mfsc-free-shipping-bar--promo.is-refreshing {
    position: relative;
}

.mfsc-free-shipping-bar--promo .mfsc-free-shipping-bar-spinner {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-items: center;
    border-radius: inherit;
    background: rgba(255, 255, 255, 0.86);
}

.mfsc-free-shipping-bar--promo .mfsc-free-shipping-bar-spinner .mfsc-fast-spinner {
    width: 26px;
    height: 26px;
    border-width: 2px;
}

#mfsc-modal .mfsc-sms-send.is-loading,
#mfsc-modal .mfsc-sms-verify.is-loading,
#mfsc-modal .mfsc-checkout-continue.is-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.88;
}

#mfsc-modal .mfsc-sms-send .mfsc-btn-spinner,
#mfsc-modal .mfsc-sms-verify .mfsc-btn-spinner,
#mfsc-modal .mfsc-checkout-continue .mfsc-btn-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-inline-end: 6px;
    vertical-align: -2px;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    -webkit-animation: MFSC-spin 0.7s linear infinite;
    animation: MFSC-spin 0.7s linear infinite;
    transform: translateZ(0);
    will-change: transform;
}

#mfsc-modal .mfsc-fast-step {
    width: 100%;
    min-width: 0;
    max-width: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 6px;
    border: 1px solid var(--MFSC-border);
    border-radius: 16px;
    background: var(--MFSC-surface);
    color: var(--MFSC-muted);
    cursor: pointer;
    transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

#mfsc-modal .mfsc-fast-step.is-active {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: var(--MFSC-primary-safe);
    box-shadow: 0 10px 26px rgba(37, 99, 235, 0.09);
}

#mfsc-modal .mfsc-fast-step.is-done {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: var(--MFSC-success-safe);
}

#mfsc-modal .mfsc-fast-step-number {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 999px;
    background: var(--MFSC-soft-2);
    color: currentColor;
    font-size: 11px;
    font-weight: 900;
}

#mfsc-modal .mfsc-fast-step.is-active .mfsc-fast-step-number {
    background: var(--MFSC-primary-safe);
    color: var(--MFSC-primary-text-safe);
}

#mfsc-modal .mfsc-fast-step.is-done .mfsc-fast-step-number {
    background: var(--MFSC-success-safe);
    color: #ffffff;
}

#mfsc-modal .mfsc-btn-with-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    line-height: 1.2;
}

#mfsc-modal .mfsc-btn-next-icon {
    flex: 0 0 auto;
    display: block;
    transform: translateY(1px);
}

#mfsc-modal .mfsc-fast-step-icon,
#mfsc-modal .mfsc-fast-step-icon svg {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

#mfsc-modal .mfsc-fast-step strong {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    text-align: center;
    line-height: 1.3;
}

#mfsc-modal .mfsc-fast-step-prefix {
    font-weight: 900;
}

#mfsc-modal .mfsc-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

#mfsc-modal .mfsc-cart-coupon-block {
    margin: 12px 0 4px;
    padding-top: 12px;
    border-top: 1px solid var(--MFSC-border-soft);
}

#mfsc-modal .mfsc-fast-step strong {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.25;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: currentColor;
    font-size: 12px;
    font-weight: 900;
}

/* Body and footer */
#mfsc-modal .mfsc-body,
#mfsc-modal .mfsc-fast-body {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    padding: 18px;
    overflow-x: hidden;
    overflow-y: auto;
    background: var(--MFSC-surface);
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: #64748b var(--MFSC-soft-2);
}

#mfsc-modal .mfsc-body::-webkit-scrollbar,
#mfsc-modal .mfsc-fast-body::-webkit-scrollbar,
#mfsc-modal .mfsc-checkout-step-payment-scroll::-webkit-scrollbar {
    width: 10px;
}

#mfsc-modal .mfsc-body::-webkit-scrollbar-track,
#mfsc-modal .mfsc-fast-body::-webkit-scrollbar-track,
#mfsc-modal .mfsc-checkout-step-payment-scroll::-webkit-scrollbar-track {
    background: var(--MFSC-soft-2);
    border-radius: 999px;
}

#mfsc-modal .mfsc-body::-webkit-scrollbar-thumb,
#mfsc-modal .mfsc-fast-body::-webkit-scrollbar-thumb,
#mfsc-modal .mfsc-checkout-step-payment-scroll::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: #64748b;
    border: 2px solid var(--MFSC-soft-2);
}

#mfsc-modal .mfsc-body::-webkit-scrollbar-thumb:hover,
#mfsc-modal .mfsc-fast-body::-webkit-scrollbar-thumb:hover,
#mfsc-modal .mfsc-checkout-step-payment-scroll::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

#mfsc-modal .mfsc-fast-footer {
    display: flex;
    align-items: stretch;
    gap: 10px;
    padding: 14px;
    background: var(--MFSC-surface);
    border-top: 1px solid var(--MFSC-border-soft);
    box-shadow: 0 -10px 26px rgba(15, 23, 42, 0.045);
}

#mfsc-modal .mfsc-fast-footer:empty {
    display: none;
}

/* Buttons */
#mfsc-modal button {
    font-family: inherit;
}

#mfsc-modal .mfsc-actions {
    display: grid;
    gap: 10px;
}

#mfsc-modal .mfsc-actions button,
#mfsc-modal .mfsc-fast-footer button,
#mfsc-modal .mfsc-fast-footer a.mfsc-order-success-view,
#mfsc-modal .mfsc-fast-footer a.mfsc-order-success-orders,
#mfsc-modal .mfsc-fast-footer a.mfsc-order-success-pay,
#mfsc-modal .mfsc-continue-shopping,
#mfsc-modal .mfsc-go-cart,
#mfsc-modal .mfsc-go-checkout,
#mfsc-modal .mfsc-checkout-continue,
#mfsc-modal .mfsc-back-cart,
#mfsc-modal .mfsc-back-checkout,
#mfsc-modal .mfsc-place-order,
#mfsc-modal .mfsc-close-order-success,
#mfsc-modal .mfsc-upload-receipt-btn {
    min-height: 46px;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 16px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 900;
    line-height: 1.4;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.15s ease, opacity 0.15s ease, box-shadow 0.15s ease;
}

#mfsc-modal .mfsc-go-cart,
#mfsc-modal .mfsc-go-checkout,
#mfsc-modal .mfsc-checkout-continue,
#mfsc-modal .mfsc-place-order,
#mfsc-modal .mfsc-upload-receipt-btn,
#mfsc-modal .mfsc-fast-footer a.mfsc-order-success-view,
#mfsc-modal .mfsc-fast-footer a.mfsc-order-success-pay {
    background: var(--MFSC-primary-safe);
    color: var(--MFSC-primary-text-safe);
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.18);
}

#mfsc-modal .mfsc-continue-shopping,
#mfsc-modal .mfsc-back-cart,
#mfsc-modal .mfsc-back-checkout,
#mfsc-modal .mfsc-close-cart,
#mfsc-modal .mfsc-close-order-success,
#mfsc-modal .mfsc-fast-footer a.mfsc-order-success-orders {
    background: var(--MFSC-soft-2);
    color: #334155;
    box-shadow: none;
}

#mfsc-modal .mfsc-fast-footer button:hover,
#mfsc-modal .mfsc-upload-receipt-btn:hover {
    transform: translateY(-1px);
}

#mfsc-modal .mfsc-fast-footer button:disabled,
#mfsc-modal .mfsc-upload-receipt-btn:disabled,
#mfsc-modal .mfsc-place-order.is-loading,
#mfsc-modal .mfsc-checkout-continue.is-loading,
#mfsc-modal .mfsc-upload-receipt-btn.is-loading {
    opacity: 0.65;
    cursor: wait;
    transform: none;
}

/* Loading */
#mfsc-modal .mfsc-box,
#mfsc-modal .mfsc-fast-modal-card {
    display: flex;
    flex-direction: column;
    max-height: calc(100dvh - 44px);
    overflow: hidden;
}

#mfsc-modal .mfsc-fast-body-wrap {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

#mfsc-modal.mfsc-modal-is-loading .mfsc-fast-body-wrap {
    min-height: min(300px, 48vh);
}

#mfsc-modal .mfsc-checkout-view {
    min-height: 0;
}

#mfsc-modal .mfsc-fast-footer {
    flex-shrink: 0;
}

#mfsc-modal.mfsc-modal-is-loading .mfsc-fast-body,
#mfsc-modal.mfsc-modal-is-loading .mfsc-body,
#mfsc-modal.mfsc-modal-is-loading .mfsc-fast-footer {
    visibility: hidden;
}

#mfsc-modal .mfsc-fast-loading {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: none;
    place-items: center;
    align-content: center;
    gap: 12px;
    /* Fully opaque so previous step copy (e.g. «محصول به سبد…») never shows through. */
    background: #fff;
}

/* Class-only toggle (no !important) so hide() / inline display:none can always win. */
#mfsc-modal .mfsc-fast-loading.is-visible {
    display: grid;
}

#mfsc-modal .mfsc-fast-spinner,
.mfsc-otp-verify-overlay .mfsc-fast-spinner,
.mfsc-free-shipping-bar-spinner .mfsc-fast-spinner,
.mfsc-free-shipping-refresh-placeholder .mfsc-fast-spinner {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 3px solid var(--MFSC-border);
    border-top-color: var(--MFSC-primary-safe);
    -webkit-animation: MFSC-spin 0.75s linear infinite;
    animation: MFSC-spin 0.75s linear infinite;
    transform: translateZ(0);
    will-change: transform;
    flex: 0 0 auto;
}

#mfsc-modal .mfsc-fast-loading-text {
    color: #334155;
    font-size: 13px;
    font-weight: 900;
}

@-webkit-keyframes MFSC-spin {
    from {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    to {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@keyframes MFSC-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Status and messages */
#mfsc-modal .mfsc-step,
#mfsc-modal .mfsc-step-added,
#mfsc-modal .mfsc-success-screen,
#mfsc-modal .mfsc-receipt-view,
#mfsc-modal .mfsc-receipt-success {
    text-align: center;
}

#mfsc-modal .mfsc-step-added {
    min-height: 240px;
    display: grid;
    justify-items: center;
    align-content: center;
}

#mfsc-modal .mfsc-success-icon {
    width: 62px;
    height: 62px;
    margin: 0 auto 16px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #dcfce7;
    color: var(--MFSC-success-safe);
    font-size: 28px;
    font-weight: 900;
}

#mfsc-modal .mfsc-step h3,
#mfsc-modal .mfsc-cart-view h3,
#mfsc-modal .mfsc-checkout-view h3,
#mfsc-modal .mfsc-receipt-view h3,
#mfsc-modal .mfsc-receipt-success h3,
#mfsc-modal .mfsc-success-screen h3 {
    margin: 0 0 8px;
    color: var(--MFSC-text);
    font-size: 18px;
    font-weight: 900;
    line-height: 1.7;
}

#mfsc-modal .mfsc-step p,
#mfsc-modal .mfsc-receipt-subtitle,
#mfsc-modal .mfsc-receipt-success p,
#mfsc-modal .mfsc-success-screen p {
    margin: 0;
    color: var(--MFSC-muted);
    font-size: 14px;
    line-height: 1.9;
}

#mfsc-modal .mfsc-order-success-screen {
    text-align: start;
    padding: 4px 0 8px;
}

#mfsc-modal .mfsc-order-success-lead {
    margin: 0 0 14px;
    text-align: start;
}

#mfsc-modal .mfsc-order-success-details {
    margin: 0 0 12px;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid var(--MFSC-border-soft);
    background: var(--MFSC-soft);
    display: grid;
    gap: 10px;
}

#mfsc-modal .mfsc-order-success-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

#mfsc-modal .mfsc-order-success-row dt {
    margin: 0;
    color: var(--MFSC-muted);
    font-size: 13px;
    font-weight: 800;
}

#mfsc-modal .mfsc-order-success-row dd {
    margin: 0;
    color: var(--MFSC-text);
    font-size: 13px;
    font-weight: 900;
    text-align: end;
}

#mfsc-modal .mfsc-order-success-row code {
    font-size: 12px;
    font-weight: 800;
    word-break: break-all;
}

#mfsc-modal .mfsc-order-success-note {
    margin: 0;
    padding: 10px 12px;
    border-radius: 12px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.7;
    text-align: start;
}

#mfsc-modal .mfsc-fast-footer a.mfsc-order-success-view,
#mfsc-modal .mfsc-fast-footer a.mfsc-order-success-orders,
#mfsc-modal .mfsc-fast-footer a.mfsc-order-success-pay {
    text-decoration: none;
    box-sizing: border-box;
}

#mfsc-modal .mfsc-fast-footer.mfsc-fast-footer-order-success {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

#mfsc-modal .mfsc-fast-footer.mfsc-fast-footer-order-success > .mfsc-order-success-pay,
#mfsc-modal .mfsc-fast-footer.mfsc-fast-footer-order-success > .mfsc-order-success-orders:only-of-type {
    grid-column: 1 / -1;
}

#mfsc-modal .mfsc-loading,
#mfsc-modal .mfsc-empty-cart,
#mfsc-modal .mfsc-muted-box {
    padding: 18px;
    border-radius: 17px;
    background: var(--MFSC-soft);
    border: 1px solid var(--MFSC-border-soft);
    color: var(--MFSC-muted);
    text-align: center;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.9;
}

#mfsc-modal .mfsc-error {
    padding: 13px 14px;
    margin-bottom: 14px;
    border-radius: 16px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: var(--MFSC-danger-safe);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.8;
}

/* Cart - new and legacy support */
#mfsc-modal .mfsc-cart-view,
#mfsc-modal .mfsc-fast-cart-view {
    display: grid;
    gap: 14px;
}

#mfsc-modal .mfsc-cart-view.is-updating {
    opacity: 0.62;
    pointer-events: none;
}

#mfsc-modal .mfsc-cart-items,
#mfsc-modal .mfsc-fast-cart-items {
    display: grid;
    gap: 12px;
    margin: 0;
}

#mfsc-modal .mfsc-cart-item,
#mfsc-modal .mfsc-fast-cart-item {
    position: relative;
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 10px;
    padding: 10px;
    border-radius: 16px;
    background: var(--MFSC-surface);
    border: 1px solid var(--MFSC-border);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.035);
}

#mfsc-modal .mfsc-fast-item-image {
    width: 68px;
    height: 68px;
    overflow: hidden;
    border-radius: 12px;
    background: var(--MFSC-soft);
    border: 1px solid var(--MFSC-border-soft);
}

#mfsc-modal .mfsc-fast-item-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

#mfsc-modal .mfsc-fast-item-content,
#mfsc-modal .mfsc-cart-product {
    min-width: 0;
    display: grid;
    gap: 6px;
}

#mfsc-modal .mfsc-fast-item-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

#mfsc-modal .mfsc-fast-item-head h4,
#mfsc-modal .mfsc-cart-product strong {
    margin: 0;
    color: var(--MFSC-text);
    font-size: 14px;
    font-weight: 900;
    line-height: 1.75;
}

#mfsc-modal .mfsc-cart-product small,
#mfsc-modal .mfsc-fast-item-variation span {
    color: var(--MFSC-muted);
    font-size: 11px;
    line-height: 1.7;
}

#mfsc-modal .mfsc-fast-item-variation {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

#mfsc-modal .mfsc-fast-item-variation span {
    padding: 4px 8px;
    border-radius: 999px;
    background: var(--MFSC-soft);
    font-weight: 800;
}

#mfsc-modal .mfsc-fast-item-bottom,
#mfsc-modal .mfsc-cart-side {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    justify-content: space-between;
    gap: 8px 10px;
    margin-top: 2px;
}

#mfsc-modal .mfsc-cart-remove {
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
    max-width: 28px;
    max-height: 28px;
    aspect-ratio: 1 / 1;
    box-sizing: border-box;
    flex: 0 0 28px;
    align-self: flex-start;
    display: inline-grid;
    place-items: center;
    border: 0;
    border-radius: 999px;
    background: #fef2f2;
    color: var(--MFSC-danger-safe);
    font-size: 16px;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    overflow: hidden;
}

#mfsc-modal .mfsc-qty-control {
    display: inline-flex;
    align-items: center;
    overflow: hidden;
    border-radius: 999px;
    background: var(--MFSC-soft);
    border: 1px solid var(--MFSC-border);
    justify-self: start;
}

#mfsc-modal .mfsc-qty-control button {
    width: 28px;
    height: 28px;
    border: 0;
    background: transparent;
    color: var(--MFSC-text);
    font-size: 17px;
    font-weight: 900;
    cursor: pointer;
}

#mfsc-modal .mfsc-cart-qty {
    width: 32px;
    height: 28px;
    border: 0;
    background: transparent;
    text-align: center;
    color: var(--MFSC-text);
    font-size: 13px;
    font-weight: 900;
    appearance: textfield;
    -moz-appearance: textfield;
}

#mfsc-modal .mfsc-cart-qty::-webkit-outer-spin-button,
#mfsc-modal .mfsc-cart-qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

#mfsc-modal .mfsc-fast-item-price,
#mfsc-modal .mfsc-cart-price {
    display: grid;
    justify-items: end;
    justify-self: end;
    gap: 3px;
    white-space: nowrap;
    color: var(--MFSC-text);
    font-size: 13px;
    font-weight: 900;
}

#mfsc-modal .mfsc-fast-sale-price {
    color: var(--MFSC-text);
    font-size: 13px;
    font-weight: 900;
}

#mfsc-modal .mfsc-fast-regular-price {
    color: #94a3b8;
    font-size: 11px;
    font-weight: 800;
    text-decoration: line-through;
}

/* Totals and summary */
#mfsc-modal .mfsc-cart-summary,
#mfsc-modal .mfsc-checkout-total,
#mfsc-modal .mfsc-fast-price-breakdown,
#mfsc-modal .mfsc-fast-order-summary {
    display: grid;
    gap: 8px;
    padding: 13px;
    border-radius: 18px;
    background: var(--MFSC-soft);
    border: 1px solid var(--MFSC-border-soft);
    margin: 0;
}

#mfsc-modal .mfsc-cart-summary div,
#mfsc-modal .mfsc-checkout-total,
#mfsc-modal .mfsc-fast-total-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    color: #475569;
    font-size: 13px;
    font-weight: 850;
}

#mfsc-modal .mfsc-cart-summary strong,
#mfsc-modal .mfsc-checkout-total strong,
#mfsc-modal .mfsc-fast-total-line strong {
    color: var(--MFSC-text);
    font-size: 13px;
    font-weight: 900;
    text-align: left;
}

#mfsc-modal .mfsc-fast-original-price strong {
    color: var(--MFSC-muted);
    text-decoration: line-through;
}

#mfsc-modal .mfsc-fast-product-discount strong,
#mfsc-modal .mfsc-fast-coupon-discount strong {
    color: var(--MFSC-success-safe);
}

#mfsc-modal .mfsc-fast-grand-total span {
    color: var(--MFSC-text);
    font-size: 14px;
    font-weight: 900;
}

#mfsc-modal .mfsc-fast-grand-total strong {
    color: var(--MFSC-primary-safe);
    font-size: 16px;
    font-weight: 900;
}

/* Coupon */
#mfsc-modal .mfsc-fast-coupon {
    flex: 1 1 auto;
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}

#mfsc-modal .mfsc-coupon-input {
    width: 100%;
    min-height: 46px;
    padding: 11px 13px;
    border: 1px solid #dbe3ef;
    border-radius: 16px;
    background: var(--MFSC-soft);
    color: var(--MFSC-text);
    font-size: 13px;
    font-weight: 800;
    outline: none;
}

#mfsc-modal .mfsc-coupon-input:focus {
    border-color: var(--MFSC-primary-safe);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

#mfsc-modal .mfsc-apply-coupon {
    width: auto;
    min-width: 74px;
    min-height: 46px;
    padding: 11px 15px;
    border: 0;
    border-radius: 16px;
    background: var(--MFSC-soft-2);
    color: #334155;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
}

#mfsc-modal .mfsc-apply-coupon.is-loading {
    opacity: 0.65;
    cursor: wait;
}

#mfsc-modal .mfsc-fast-coupons-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    padding-top: 4px;
}

#mfsc-modal .mfsc-fast-coupon-pill {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px 6px 5px;
    border-radius: 999px;
    background: #eff6ff;
    color: var(--MFSC-primary-safe);
    border: 1px solid #bfdbfe;
    font-size: 11px;
    font-weight: 900;
    direction: ltr;
}

#mfsc-modal .mfsc-remove-coupon {
    width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 999px;
    background: var(--MFSC-surface);
    color: var(--MFSC-danger-safe);
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
}

/* Checkout */
#mfsc-modal .mfsc-checkout-view,
#mfsc-modal .mfsc-fast-checkout-view {
    display: grid;
    gap: 14px;
    padding-bottom: 0;
}

#mfsc-modal .mfsc-checkout-step-billing {
    gap: 8px;
}

#mfsc-modal .mfsc-fast-section {
    display: grid;
    gap: 13px;
    padding: 14px;
    border-radius: 20px;
    background: var(--MFSC-surface);
    border: 1px solid var(--MFSC-border);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.035);
}

#mfsc-modal .mfsc-fast-section-head {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

#mfsc-modal .mfsc-fast-section-head > span {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 999px;
    background: #eff6ff;
    color: var(--MFSC-primary-safe);
    font-size: 12px;
    font-weight: 900;
}

#mfsc-modal .mfsc-fast-section-head h3 {
    margin: 0;
    color: var(--MFSC-text);
    font-size: 15px;
    font-weight: 900;
    line-height: 1.7;
}

#mfsc-modal .mfsc-fast-section-head p {
    margin: 2px 0 0;
    color: var(--MFSC-muted);
    font-size: 12px;
    font-weight: 650;
    line-height: 1.8;
}

#mfsc-modal .mfsc-checkout-fields,
#mfsc-modal .mfsc-fast-checkout-fields {
    display: grid;
    gap: 11px;
}

#mfsc-modal .mfsc-field {
    display: grid;
    gap: 7px;
    margin: 0;
}

#mfsc-modal .mfsc-field label {
    color: #334155;
    font-size: 12px;
    font-weight: 900;
}

#mfsc-modal .mfsc-required {
    color: var(--MFSC-danger-safe);
}

#mfsc-modal .mfsc-field input,
#mfsc-modal .mfsc-field textarea,
#mfsc-modal .mfsc-field select,
#mfsc-modal select.mfsc-dynamic-field {
    width: 100%;
    min-height: 46px;
    padding: 12px 13px;
    border: 1px solid #dbe3ef;
    border-radius: 15px;
    background: var(--MFSC-surface);
    color: var(--MFSC-text);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

#mfsc-modal .mfsc-field select,
#mfsc-modal select.mfsc-dynamic-field {
    padding-inline-end: 38px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 12px center;
    background-size: 14px 14px;
}

#mfsc-modal .mfsc-field textarea {
    min-height: 86px;
}

#mfsc-modal .mfsc-field textarea {
    resize: vertical;
}

#mfsc-modal .mfsc-field input:focus,
#mfsc-modal .mfsc-field textarea:focus,
#mfsc-modal .mfsc-field select:focus,
#mfsc-modal select.mfsc-dynamic-field:focus {
    border-color: var(--MFSC-primary-safe);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

#mfsc-modal .mfsc-field-error {
    border-color: var(--MFSC-danger-safe) !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12) !important;
}

#mfsc-modal .mfsc-section-divider {
    height: 1px;
    margin: 4px 0;
    background: var(--MFSC-border-soft);
}

#mfsc-modal .mfsc-shipping-methods,
#mfsc-modal .mfsc-payment-methods,
#mfsc-modal .mfsc-fast-choice-list {
    display: grid;
    gap: 9px;
}

#mfsc-modal .mfsc-choice,
#mfsc-modal .mfsc-fast-choice {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 12px 14px;
    border-radius: 17px;
    background: var(--MFSC-surface);
    border: 1px solid var(--MFSC-border);
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

#mfsc-modal .mfsc-fast-choice input[type="radio"] {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    margin: 0;
    flex: 0 0 20px;
    border: 2px solid #cbd5e1;
    border-radius: 50%;
    background: #fff;
    align-self: center;
}

#mfsc-modal .mfsc-fast-choice input[type="radio"]:checked {
    border-color: var(--MFSC-primary-safe);
    background: radial-gradient(circle at center, var(--MFSC-primary-safe) 0 5px, #fff 6px);
}

#mfsc-modal .mfsc-fast-shipping-choice > span.mfsc-fast-shipping-row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    grid-template-columns: none;
    gap: 12px;
    width: 100%;
    min-width: 0;
}

#mfsc-modal .mfsc-price-inline,
#mfsc-modal .woocommerce-Price-amount,
#mfsc-modal .woocommerce-Price-amount.amount,
#mfsc-modal .mfsc-fast-item-price,
#mfsc-modal .mfsc-fast-total-line strong,
#mfsc-modal .mfsc-fast-shipping-price,
#mfsc-modal .mfsc-free-shipping-amount {
    unicode-bidi: isolate;
    direction: ltr;
    text-align: left;
    white-space: nowrap;
    line-height: 1.4;
}

#mfsc-modal .mfsc-price-inline {
    display: inline-flex !important;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: baseline;
    gap: 0.2em;
    max-width: none;
}

#mfsc-modal .mfsc-price-inline .woocommerce-Price-amount,
#mfsc-modal .mfsc-price-inline bdi,
#mfsc-modal .woocommerce-Price-amount bdi,
#mfsc-modal .mfsc-price-inline .woocommerce-Price-currencySymbol {
    display: inline !important;
    unicode-bidi: isolate;
    direction: ltr;
    white-space: nowrap !important;
    vertical-align: baseline;
}

#mfsc-modal .mfsc-price-inline * {
    display: inline !important;
    white-space: nowrap !important;
    line-height: inherit;
}

#mfsc-modal .mfsc-fast-shipping-choice {
    min-height: 52px;
}

#mfsc-modal .mfsc-choice:has(input:checked),
#mfsc-modal .mfsc-fast-choice:has(input:checked) {
    border-color: var(--MFSC-primary-safe);
    background: #eff6ff;
    box-shadow: 0 8px 22px rgba(37, 99, 235, 0.08);
}

#mfsc-modal .mfsc-choice input[type="radio"] {
    margin-top: 0;
}

/* Only the direct label content span — not nested payment icon/head spans. */
#mfsc-modal .mfsc-choice > span {
    display: grid;
    gap: 4px;
    color: var(--MFSC-text);
    font-size: 13px;
    font-weight: 900;
    line-height: 1.65;
}

#mfsc-modal .mfsc-fast-shipping-choice > span {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-width: 0;
}

#mfsc-modal .mfsc-fast-shipping-choice .mfsc-fast-shipping-label {
    text-align: start;
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

#mfsc-modal .mfsc-fast-shipping-choice .mfsc-fast-shipping-price {
    flex: 0 0 auto;
    width: max-content;
    min-width: 0;
    max-width: none;
    margin: 0;
    padding: 0;
    white-space: nowrap !important;
    text-align: end;
}

#mfsc-modal .mfsc-btn-primary {
    background: var(--MFSC-primary-safe);
    color: var(--MFSC-primary-text-safe);
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.18);
}

#mfsc-modal .mfsc-btn-secondary,
#mfsc-modal .mfsc-back-checkout,
#mfsc-modal .mfsc-back-cart,
#mfsc-modal .mfsc-close-cart {
    background: var(--MFSC-soft-2);
    color: #334155;
    box-shadow: none;
}

#mfsc-modal .mfsc-copy-icon {
    width: 34px;
    height: 34px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 10px;
    background: #dbeafe;
    color: #1d4ed8;
}

#mfsc-modal .mfsc-card-account-card {
    margin-top: 0;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    background: #fff;
    display: grid;
    gap: 8px;
}

#mfsc-modal .mfsc-card-accounts-list {
    display: grid;
    gap: 8px;
}

#mfsc-modal .mfsc-choice small {
    color: var(--MFSC-muted);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.7;
}

#mfsc-modal .mfsc-payment-option-block {
    display: grid;
    gap: 0;
}

/* Nested confirm dialog (remove cart item, etc.) */
#mfsc-modal .mfsc-confirm-dialog {
    position: absolute;
    inset: 0;
    z-index: 40;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

#mfsc-modal .mfsc-confirm-dialog.is-open {
    display: flex;
}

#mfsc-modal .mfsc-confirm-dialog[hidden] {
    display: none !important;
}

#mfsc-modal .mfsc-confirm-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.42);
}

#mfsc-modal .mfsc-confirm-card {
    position: relative;
    z-index: 1;
    width: min(100%, 340px);
    padding: 18px 16px 14px;
    border-radius: 18px;
    background: var(--MFSC-surface, #fff);
    border: 1px solid var(--MFSC-border, #e2e8f0);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.22);
    display: grid;
    gap: 10px;
}

#mfsc-modal .mfsc-confirm-title {
    margin: 0;
    font-size: 15px;
    font-weight: 900;
    color: var(--MFSC-text, #0f172a);
    line-height: 1.5;
}

#mfsc-modal .mfsc-confirm-text {
    margin: 0;
    color: var(--MFSC-muted, #64748b);
    font-size: 13px;
    font-weight: 650;
    line-height: 1.7;
    white-space: pre-line;
}

#mfsc-modal .mfsc-confirm-actions {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}

#mfsc-modal .mfsc-confirm-actions .mfsc-confirm-cancel,
#mfsc-modal .mfsc-confirm-actions .mfsc-confirm-ok {
    flex: 1 1 0;
    min-height: 40px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 900;
}

#mfsc-modal .mfsc-confirm-ok {
    background: var(--MFSC-danger-safe, #dc2626);
    color: #fff;
    border: 0;
    box-shadow: none;
}

#mfsc-modal .mfsc-payment-choice-body {
    display: grid !important;
    gap: 4px;
    width: 100%;
    min-width: 0;
}

/* Row 1: title + icon side by side. Row 2: description. */
#mfsc-modal .mfsc-payment-choice-head {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    min-width: 0;
}

#mfsc-modal .mfsc-payment-choice-head strong {
    flex: 1 1 auto;
    min-width: 0;
    text-align: start;
}

#mfsc-modal .mfsc-payment-choice-icon {
    display: inline-flex !important;
    align-items: center;
    justify-content: flex-end;
    flex: 0 0 auto;
    max-width: 72px;
    gap: 0;
}

#mfsc-modal .mfsc-payment-choice-icon img,
#mfsc-modal .mfsc-payment-method-icon,
#mfsc-modal .mfsc-fast-payment-choice img {
    height: 28px !important;
    width: auto !important;
    max-width: 64px !important;
    border-radius: 6px;
    vertical-align: middle;
    display: inline-block;
    object-fit: contain;
}


#mfsc-modal .mfsc-step-summary.mfsc-fast-section {
    margin-top: 8px;
    padding: 12px 0 0;
    border: 0;
    border-top: 1px solid var(--MFSC-border-soft);
    border-radius: 0;
    box-shadow: none;
    background: transparent;
}

#mfsc-modal .mfsc-body.mfsc-body-checkout-payment,
#mfsc-modal .mfsc-fast-body.mfsc-body-checkout-payment {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 0;
}

#mfsc-modal .mfsc-checkout-step-payment,
#mfsc-modal .mfsc-checkout-step-fulfillment {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}

#mfsc-modal .mfsc-checkout-step-payment-scroll,
#mfsc-modal .mfsc-checkout-step-fulfillment-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 18px;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: #64748b var(--MFSC-soft-2);
}

#mfsc-modal .mfsc-fulfillment-block {
    margin-top: 12px;
}

#mfsc-modal .mfsc-fulfillment-subtitle {
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 900;
    color: var(--MFSC-text);
}

#mfsc-modal .mfsc-fulfillment-head p {
    margin-bottom: 4px;
}

#mfsc-modal .mfsc-order-note-wrap {
    margin-top: 12px;
    border: 1px dashed var(--MFSC-border-soft);
    border-radius: 14px;
    overflow: hidden;
    background: var(--MFSC-soft);
}

#mfsc-modal .mfsc-order-note-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 12px;
    border: 0;
    background: transparent;
    color: var(--MFSC-text);
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    text-align: right;
}

#mfsc-modal .mfsc-order-note-chevron::before {
    content: '▾';
    display: inline-block;
    transition: transform 0.2s ease;
    color: var(--MFSC-muted);
}

#mfsc-modal .mfsc-order-note-wrap.is-open .mfsc-order-note-chevron::before {
    transform: rotate(180deg);
}

#mfsc-modal .mfsc-order-note-panel {
    padding: 0 12px 12px;
}

#mfsc-modal .mfsc-order-note-panel label {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 800;
    color: var(--MFSC-muted);
}

#mfsc-modal .mfsc-order-note-field {
    width: 100%;
    min-height: 72px;
    resize: vertical;
    border-radius: 12px;
    border: 1px solid var(--MFSC-border);
    padding: 8px 10px;
    font-size: 13px;
    line-height: 1.6;
    background: var(--MFSC-surface);
}

#mfsc-modal .mfsc-payment-summary-lines {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--MFSC-border-soft);
}

#mfsc-modal .mfsc-payment-summary-lines .mfsc-checkout-coupon-block {
    margin: 0 0 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--MFSC-border-soft);
}

#mfsc-modal .mfsc-payment-summary-lines .mfsc-fast-price-breakdown {
    margin-top: 0;
}

#mfsc-modal .mfsc-payment-summary-lines .mfsc-fast-price-breakdown,
#mfsc-modal .mfsc-payment-summary-lines .mfsc-fast-coupons-list {
    margin-top: 0;
}

#mfsc-modal .mfsc-step-summary-pinned {
    flex-shrink: 0;
    margin: 0;
    padding: 10px 18px 12px;
    border: 0;
    border-top: 1px solid var(--MFSC-border-soft);
    border-radius: 0;
    background: var(--MFSC-surface);
    box-shadow: 0 -10px 24px rgba(15, 23, 42, 0.06);
}

#mfsc-modal .mfsc-step-summary-pinned .mfsc-fast-order-summary-pinned {
    margin: 0;
    padding: 10px 12px;
    border-radius: 14px;
    background: var(--MFSC-soft);
    border: 1px solid var(--MFSC-border-soft);
}

#mfsc-modal .mfsc-fast-checkout-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

#mfsc-modal .mfsc-field-layout-full {
    grid-column: 1 / -1;
}

#mfsc-modal .mfsc-field-layout-half {
    grid-column: span 1;
}

@media (max-width: 520px) {
    #mfsc-modal .mfsc-fast-checkout-fields {
        grid-template-columns: 1fr;
    }

    #mfsc-modal .mfsc-field-layout-half {
        grid-column: 1 / -1;
    }
}

#mfsc-modal .mfsc-card-preview p {
    margin: 0;
    color: #475569;
    font-size: 12px;
    line-height: 1.8;
}

#mfsc-modal .mfsc-card-preview code {
    direction: ltr;
    display: inline-block;
    padding: 2px 6px;
    border-radius: 8px;
    background: var(--MFSC-surface);
    border: 1px solid var(--MFSC-border);
    color: var(--MFSC-text);
}

/* Receipt */
#mfsc-modal .mfsc-receipt-view,
#mfsc-modal .mfsc-receipt-success,
#mfsc-modal .mfsc-success-screen {
    display: grid;
    justify-items: center;
    gap: 12px;
}

#mfsc-modal .mfsc-receipt-total {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px;
    margin: 0;
    border-radius: 17px;
    background: var(--MFSC-soft);
    border: 1px solid var(--MFSC-border-soft);
    color: #475569;
    font-size: 13px;
}

#mfsc-modal .mfsc-receipt-total strong {
    color: var(--MFSC-text);
    font-size: 15px;
    font-weight: 900;
}

#mfsc-modal .mfsc-receipt-note {
    width: 100%;
    padding: 14px;
    margin: 0;
    border-radius: 17px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.9;
    text-align: right;
}

#mfsc-modal .mfsc-receipt-form {
    width: 100%;
    display: grid;
    gap: 12px;
    margin-top: 2px;
}

#mfsc-modal .mfsc-file-field {
    display: grid;
    gap: 10px;
    padding: 16px;
    border: 1px dashed #cbd5e1;
    border-radius: 17px;
    background: var(--MFSC-soft);
    cursor: pointer;
    text-align: center;
}

#mfsc-modal .mfsc-file-field span {
    color: #334155;
    font-size: 13px;
    font-weight: 900;
}

#mfsc-modal .mfsc-file-field input {
    width: 100%;
    padding: 10px;
    border-radius: 13px;
    background: var(--MFSC-surface);
    border: 1px solid var(--MFSC-border);
}

#mfsc-modal .mfsc-order-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 4px;
    padding: 10px 14px;
    border-radius: 13px;
    background: var(--MFSC-soft-2);
    color: var(--MFSC-text);
    text-decoration: none;
    font-size: 13px;
    font-weight: 900;
}

/* Responsive */
@media (max-width: 560px) {
    #mfsc-modal .mfsc-box,
    #mfsc-modal .mfsc-fast-modal-card {
        width: calc(100% - 18px);
        max-height: calc(100dvh - 18px);
        margin: 9px auto;
        border-radius: 20px;
    }

    #mfsc-modal .mfsc-header,
    #mfsc-modal .mfsc-fast-header {
        min-height: 52px;
        padding: 12px 14px;
    }

    #mfsc-modal .mfsc-fast-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 10px;
        gap: 7px;
    }

    #mfsc-modal .mfsc-fast-step {
        gap: 5px;
        padding: 9px 6px;
    }

    #mfsc-modal .mfsc-fast-step-icon {
        display: inline-flex;
    }

    #mfsc-modal .mfsc-fast-step strong {
        font-size: 11px;
    }

    #mfsc-modal .mfsc-body,
    #mfsc-modal .mfsc-fast-body {
        padding: 14px;
        min-height: 0;
    }

    #mfsc-modal .mfsc-checkout-step-shipping,
    #mfsc-modal .mfsc-checkout-step-shipping .mfsc-shipping-methods {
        min-height: 0;
    }

    #mfsc-modal .mfsc-checkout-step-shipping .mfsc-muted-box {
        margin: 0;
    }

    #mfsc-modal .mfsc-fast-footer {
        padding: 10px 12px;
        flex-direction: row;
        align-items: stretch;
        gap: 8px;
    }

    #mfsc-modal .mfsc-fast-footer > button,
    #mfsc-modal .mfsc-fast-footer > a {
        width: auto;
        flex: 1 1 0;
        min-width: 0;
        min-height: 44px;
        padding: 10px 12px;
        font-size: 13px;
        white-space: nowrap;
    }

    #mfsc-modal .mfsc-fast-coupon {
        grid-template-columns: 1fr;
    }

    #mfsc-modal .mfsc-apply-coupon {
        width: 100%;
    }

    #mfsc-modal .mfsc-cart-item,
    #mfsc-modal .mfsc-fast-cart-item {
        grid-template-columns: 56px minmax(0, 1fr);
        gap: 8px;
        padding: 8px 9px;
        border-radius: 14px;
    }

    #mfsc-modal .mfsc-fast-item-image {
        width: 56px;
        height: 56px;
        border-radius: 10px;
    }

    #mfsc-modal .mfsc-fast-body,
    #mfsc-modal .mfsc-body {
        padding: 14px 12px;
    }

    #mfsc-modal .mfsc-fast-cart-items {
        gap: 8px;
    }

    #mfsc-modal .mfsc-fast-item-head h4,
    #mfsc-modal .mfsc-cart-product strong {
        font-size: 13px;
        line-height: 1.55;
    }

    #mfsc-modal .mfsc-fast-item-bottom,
    #mfsc-modal .mfsc-cart-side {
        align-items: center;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: space-between;
        gap: 8px;
    }

    #mfsc-modal .mfsc-fast-item-price,
    #mfsc-modal .mfsc-cart-price {
        justify-items: end;
        text-align: end;
        flex: 0 1 auto;
        min-width: 0;
    }

    #mfsc-modal .mfsc-qty-control {
        flex: 0 0 auto;
    }

    #mfsc-modal .mfsc-fast-section {
        padding: 12px;
        border-radius: 18px;
    }

    #mfsc-modal .mfsc-fast-section-head > span {
        width: 26px;
        height: 26px;
    }

    #mfsc-modal .mfsc-fast-section-head h3 {
        font-size: 14px;
    }
}
/* =========================================================
   Release 2.0 - Theme inheritance and material controls
   ========================================================= */
#mfsc-modal {
    font-family: var(--MFSC-font-family, inherit);
    --MFSC-soft: var(--MFSC-background, #f8fafc);
    --MFSC-soft-2: color-mix(in srgb, var(--MFSC-background, #f8fafc) 86%, var(--MFSC-text, #0f172a));
    --MFSC-border-soft: color-mix(in srgb, var(--MFSC-border, #e2e8f0) 68%, transparent);
    --MFSC-shadow: 0 34px 110px rgba(15, 23, 42, var(--MFSC-shadow-alpha, .22));
}

#mfsc-modal .mfsc-overlay {
    background: color-mix(in srgb, var(--MFSC-overlay-safe, var(--MFSC-overlay, #0f172a)) 62%, transparent);
}

#mfsc-modal .mfsc-box,
#mfsc-modal .mfsc-fast-modal-card,
#mfsc-modal .mfsc-header,
#mfsc-modal .mfsc-fast-header,
#mfsc-modal .mfsc-body,
#mfsc-modal .mfsc-fast-body,
#mfsc-modal .mfsc-fast-footer {
    background: var(--MFSC-surface, #fff);
    color: var(--MFSC-text, #0f172a);
}

#mfsc-modal .mfsc-body,
#mfsc-modal .mfsc-fast-body {
    padding: var(--MFSC-content-spacing, 20px);
}

#mfsc-modal button,
#mfsc-modal input,
#mfsc-modal textarea,
#mfsc-modal select {
    font: inherit;
}

#mfsc-modal .mfsc-go-cart,
#mfsc-modal .mfsc-go-checkout,
#mfsc-modal .mfsc-checkout-continue,
#mfsc-modal .mfsc-place-order,
#mfsc-modal .mfsc-upload-receipt-btn {
    min-height: var(--MFSC-button-height, 48px);
    background: var(--MFSC-primary-safe, #2563eb);
    color: var(--MFSC-primary-text-safe, #fff);
}

#mfsc-modal .mfsc-fast-cart-item,
#mfsc-modal .mfsc-fast-section,
#mfsc-modal .mfsc-fast-price-breakdown,
#mfsc-modal .mfsc-fast-order-summary,
#mfsc-modal .mfsc-choice,
#mfsc-modal .mfsc-field input,
#mfsc-modal .mfsc-field textarea,
#mfsc-modal .mfsc-field select,
#mfsc-modal select.mfsc-dynamic-field,
#mfsc-modal .mfsc-coupon-input {
    border-color: var(--MFSC-border, #e2e8f0);
}

#mfsc-modal h1,
#mfsc-modal h2,
#mfsc-modal h3,
#mfsc-modal h4,
#mfsc-modal strong {
    color: var(--MFSC-text, #0f172a);
}

#mfsc-modal p,
#mfsc-modal small,
#mfsc-modal label,
#mfsc-modal .mfsc-muted-box {
    color: var(--MFSC-muted, #64748b);
}

.mfsc-modal-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
}

@media (min-width: 992px) {
    .mfsc-modal-layout.has-upsell {
        grid-template-columns: minmax(0, 1fr) 220px;
    }
}

.mfsc-free-shipping-bar {
    padding: 10px 16px;
    background: linear-gradient(90deg, rgba(22, 163, 74, 0.1), rgba(34, 197, 94, 0.14));
    border-bottom: 1px solid var(--mfsc-border, #e2e8f0);
}

.mfsc-free-shipping-bar--promo {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: linear-gradient(125deg, #ecfdf5 0%, #d1fae5 45%, #bbf7d0 100%);
    border: 1px solid #4ade80;
    border-radius: 16px;
    margin: 8px 14px 0;
}

.mfsc-free-shipping-bar--promo .mfsc-free-shipping-icon {
    font-size: 22px;
    line-height: 1;
    filter: saturate(1.4) hue-rotate(-8deg);
}

.mfsc-free-shipping-bar--promo .mfsc-free-shipping-inner {
    flex: 1;
    min-width: 0;
}

.mfsc-free-shipping-bar--promo .mfsc-free-shipping-track {
    height: 10px;
    background: #a7f3d0;
}

.mfsc-free-shipping-bar--promo .mfsc-free-shipping-fill {
    background: linear-gradient(90deg, #22c55e, #16a34a 50%, #15803d);
}

.mfsc-free-shipping-bar--promo .mfsc-free-shipping-text {
    margin: 8px 0 0;
    color: #14532d;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.55;
}

#mfsc-modal .mfsc-free-shipping-bar--promo .mfsc-free-shipping-text .mfsc-free-shipping-amount {
    unicode-bidi: isolate;
    direction: ltr;
    display: inline;
    white-space: nowrap;
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
    line-height: inherit;
    font-family: inherit;
}

.mfsc-free-shipping-track {
    height: 8px;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
}

.mfsc-free-shipping-fill {
    height: 100%;
    background: linear-gradient(90deg, #2563eb, #16a34a);
    border-radius: inherit;
    transition: width 0.25s ease;
}

.mfsc-billing-sms-panel {
    margin-top: 16px;
    padding: 14px;
    border-radius: 16px;
    border: 1px solid #bfdbfe;
    background: linear-gradient(180deg, #eff6ff, #f8fafc);
}

.mfsc-billing-sms-panel.is-verified {
    border-color: #86efac;
    background: linear-gradient(180deg, #ecfdf5, #f0fdf4);
}

.mfsc-billing-sms-lead {
    margin: 0 0 12px;
    font-size: 12px;
    font-weight: 800;
    color: #1e40af;
    line-height: 1.6;
}

.mfsc-billing-sms-panel.is-verified .mfsc-billing-sms-lead {
    display: none;
}

.mfsc-otp-stage {
    position: relative;
}

.mfsc-otp-verify-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 12px;
    background: rgba(248, 250, 252, 0.88);
    backdrop-filter: blur(2px);
}

.mfsc-otp-stage.is-verifying .mfsc-otp-verify-overlay,
.mfsc-otp-verify-overlay:not([hidden]) {
    display: flex;
}

.mfsc-otp-verify-overlay[hidden] {
    display: none !important;
}

.mfsc-otp-verify-overlay .mfsc-fast-spinner {
    width: 28px;
    height: 28px;
    border-width: 2px;
}

.mfsc-otp-verify-label {
    font-size: 12px;
    font-weight: 900;
    color: #1e40af;
}

.mfsc-sms-success {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 4px 2px 2px;
}

.mfsc-sms-success-icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: #16a34a;
    color: #fff;
    font-size: 16px;
    font-weight: 900;
    line-height: 1;
}

.mfsc-sms-success-text {
    margin: 0;
    flex: 1 1 auto;
    font-size: 13px;
    font-weight: 900;
    color: #166534;
    line-height: 1.65;
}

.mfsc-otp-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    direction: ltr;
    justify-content: flex-start;
}

.mfsc-otp-cells {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
    flex: 1 1 220px;
    min-width: 0;
    direction: ltr;
    unicode-bidi: isolate;
    justify-items: stretch;
}

.mfsc-otp-digit {
    width: 100%;
    min-height: 46px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    background: #f8fafc;
    color: #0f172a;
    font-size: 18px;
    font-weight: 900;
    text-align: center;
    outline: none;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.mfsc-otp-digit:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.mfsc-otp-digit:not(:disabled):focus {
    border-color: #2563eb;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.mfsc-otp-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 0 0 auto;
}

.mfsc-billing-sms-panel .mfsc-sms-send {
    min-height: 44px;
    min-width: 132px;
    padding: 0 14px;
    border: 0;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
    white-space: nowrap;
    background: #2563eb;
    color: #fff;
}

.mfsc-billing-sms-panel .mfsc-sms-send:disabled,
.mfsc-billing-sms-panel .mfsc-sms-send.is-cooldown {
    cursor: not-allowed;
    opacity: 0.72;
    background: #64748b;
}

.mfsc-billing-sms-panel .mfsc-sms-hint {
    margin: 10px 0 0;
    font-size: 12px;
    font-weight: 800;
}

.mfsc-upsell-rail {
    padding: 12px;
    background: #f8fafc;
    border-inline-start: 1px solid #e2e8f0;
    max-height: 70vh;
    overflow: auto;
}

.mfsc-upsell-grid {
    display: grid;
    gap: 10px;
}

button#mfsc-floating-cart.mfsc-floating-cart,
.mfsc-floating-cart {
    position: fixed !important;
    bottom: var(--mfsc-float-offset-y, 24px) !important;
    right: var(--mfsc-float-offset-x, 24px);
    left: auto;
    top: auto !important;
    z-index: 2147482000 !important;
    display: grid !important;
    place-items: center;
    width: var(--mfsc-float-size, 56px) !important;
    height: var(--mfsc-float-size, 56px) !important;
    max-width: none !important;
    max-height: none !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 50% !important;
    border: 0 !important;
    background: var(--mfsc-float-bg, var(--mfsc-primary, #2563eb)) !important;
    color: #fff !important;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.28) !important;
    cursor: pointer;
    transform-origin: center center;
    overflow: visible !important;
    appearance: none;
    -webkit-appearance: none;
}

.payment_method_mfsc_card_to_card img.mfsc-payment-method-icon,
.payment_method_mfsc_card_to_card label img,
.wc_payment_method.payment_method_mfsc_card_to_card img,
.mfsc-pm-label-wrap .mfsc-payment-method-icon {
    height: 28px !important;
    width: auto !important;
    max-width: 56px !important;
    border-radius: 6px;
    vertical-align: middle;
    display: inline-block;
    margin-inline-start: 8px;
}

.mfsc-floating-cart.is-bump {
    animation: mfsc-floating-bump 0.58s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes mfsc-floating-bump {
    0% { transform: scale(1); box-shadow: 0 10px 26px rgba(37, 99, 235, 0.32); }
    35% { transform: scale(1.14); box-shadow: 0 14px 34px rgba(37, 99, 235, 0.44); }
    100% { transform: scale(1); box-shadow: 0 10px 26px rgba(37, 99, 235, 0.32); }
}

.mfsc-fly-to-cart {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1000101;
    margin: 0;
    padding: 3px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.28), 0 0 0 1px rgba(148, 163, 184, 0.35);
    pointer-events: none;
    transform: translate3d(-9999px, -9999px, 0) translate(-50%, -50%) scale(1);
    will-change: transform, opacity;
}

.mfsc-fly-to-cart img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 13px;
}

.mfsc-fly-to-cart--fallback::after {
    content: "🛒";
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    font-size: 26px;
}

.mfsc-floating-toast {
    position: fixed;
    z-index: 1000102;
    box-sizing: border-box;
    width: max-content;
    max-width: min(240px, calc(100vw - 24px));
    padding: 10px 14px;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.92);
    color: #f8fafc;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.5;
    text-align: center;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.26);
    opacity: 0;
    transform: translate(-50%, 10px);
    transition: opacity 0.28s ease, transform 0.28s ease;
    pointer-events: none;
}

.mfsc-floating-toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

.mfsc-floating-toast::after {
    content: "";
    position: absolute;
    left: calc(50% + var(--mfsc-toast-arrow-x, 0px));
    bottom: -5px;
    width: 10px;
    height: 10px;
    background: rgba(15, 23, 42, 0.92);
    transform: translateX(-50%) rotate(45deg);
    border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .mfsc-floating-cart.is-bump {
        animation: none;
    }
}

.mfsc-floating-icon {
    display: block;
    width: 24px;
    height: 24px;
    pointer-events: none;
}

.mfsc-floating-count {
    position: absolute;
    top: -3px;
    inset-inline-start: -3px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border: 2px solid #fff;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-weight: 800;
    font-size: 10px;
    line-height: 18px;
    text-align: center;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.2);
    pointer-events: none;
}

.mfsc-floating-count.is-wide {
    min-width: 22px;
    border-radius: 11px;
    padding: 0 4px;
}

.mfsc-floating-count[data-mfsc-count="0"] {
    opacity: 0.92;
}

#mfsc-modal .mfsc-address-warning {
    margin: 6px 0 8px;
}

#mfsc-modal .mfsc-warning-box,
#mfsc-modal .mfsc-shipping-warning {
    margin-top: 0;
    margin-bottom: 0;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid #fde68a;
    background: #fffbeb;
    color: #92400e;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.45;
}

#mfsc-modal .mfsc-card-transfer-panel[hidden] {
    display: none !important;
}

#mfsc-modal .mfsc-card-transfer-panel:not([hidden]) {
    margin-top: 14px;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid #bfdbfe;
    background: linear-gradient(180deg, #eff6ff 0%, #fff 100%);
    display: grid;
    gap: 12px;
}

#mfsc-modal .mfsc-card-transfer-head {
    display: grid;
    gap: 6px;
}

#mfsc-modal .mfsc-card-transfer-head p {
    margin: 0;
    color: var(--MFSC-muted);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.65;
}

#mfsc-modal .mfsc-card-transfer-grid {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

#mfsc-modal .mfsc-card-transfer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 13px;
}

#mfsc-modal .mfsc-copy-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

#mfsc-modal .mfsc-copy-value {
    border: 0;
    border-radius: 10px;
    padding: 6px 10px;
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 11px;
    font-weight: 900;
    cursor: pointer;
}

#mfsc-modal .mfsc-file-upload {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    flex-wrap: wrap;
}

#mfsc-modal .mfsc-file-trigger {
    border: 0;
    border-radius: 14px;
    padding: 11px 14px;
    background: var(--MFSC-primary-safe);
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
}

#mfsc-modal .mfsc-file-name {
    color: var(--MFSC-muted);
    font-size: 12px;
    font-weight: 700;
}

/* Checkout / thank-you / Blocks card-to-card */
.mfsc-bank-box,
.mfsc-card-accounts-list {
    display: grid;
    gap: 12px;
    margin: 12px 0 4px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.mfsc-bank-box.mfsc-bank-box--checkout,
.woocommerce-checkout .mfsc-card-accounts-list,
.woocommerce-order .mfsc-card-accounts-list,
.wc-block-checkout .mfsc-card-accounts-list,
.wc-block-components-radio-control-accordion-content .mfsc-card-accounts-list {
    border: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.mfsc-card-account-card {
    margin: 0;
    padding: 14px 14px 12px;
    border-radius: 16px;
    border: 1px solid #dbe3ef;
    background:
        linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
    display: grid;
    gap: 12px;
    color: #0f172a;
    text-align: start;
}

.mfsc-card-account-head {
    display: grid;
    gap: 8px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e8eef6;
}

.mfsc-card-account-bankline,
.mfsc-card-account-holderline {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.mfsc-card-account-kicker,
.mfsc-card-copy-label {
    color: #64748b !important;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.5;
}

.mfsc-card-account-bank,
.mfsc-card-account-holder {
    color: #0f172a !important;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.5;
}

.mfsc-card-copy-field {
    display: grid;
    gap: 6px;
}

.mfsc-card-copy-control,
.mfsc-copy-wrap {
    display: flex;
    align-items: center;
    gap: 0;
    width: 100%;
    min-height: 44px;
    border: 1px solid #d7e0ec;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
}

.mfsc-card-number-display,
.mfsc-sheba-display,
.mfsc-copy-wrap code,
.mfsc-card-copy-control code {
    flex: 1 1 auto;
    display: block;
    margin: 0 !important;
    padding: 11px 12px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #0f172a !important;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.08em;
    line-height: 1.4;
    direction: ltr;
    text-align: left;
    white-space: nowrap;
    overflow-x: auto;
    text-decoration: none !important;
}

.mfsc-copy-icon,
.mfsc-copy-value,
button.mfsc-copy-value.mfsc-copy-icon {
    flex: 0 0 44px;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px;
    margin: 0 !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border: 0 !important;
    border-inline-start: 1px solid #e2e8f0 !important;
    border-radius: 0 !important;
    background: #eef4ff !important;
    color: #1d4ed8 !important;
    box-shadow: none !important;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.mfsc-copy-icon:hover,
.mfsc-copy-value:hover,
button.mfsc-copy-value.mfsc-copy-icon:hover {
    background: #dbe7ff !important;
    color: #1e40af !important;
}

.mfsc-copy-icon svg,
.mfsc-copy-value svg {
    width: 16px;
    height: 16px;
    display: block;
    pointer-events: none;
}

/* Legacy row helpers still used in modal */
.mfsc-card-transfer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 13px;
}

.mfsc-card-transfer-row > span {
    color: #64748b;
    font-weight: 600;
}

.mfsc-copy-toast {
    position: fixed;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%) translateY(12px);
    z-index: 100000;
    padding: 10px 16px;
    border-radius: 999px;
    background: #0f172a;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}

.mfsc-copy-toast.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

#mfsc-floating-cart.mfsc-pulse {
    animation: mfsc-float-pulse 0.85s ease;
}

@keyframes mfsc-float-pulse {
    0%, 100% { transform: scale(1); }
    40% { transform: scale(1.12); }
    70% { transform: scale(0.96); }
}

/* WC Blocks payment accordion: keep MeetLet panel tidy inside selected method */
.wc-block-components-radio-control-accordion-content .mfsc-bank-box,
.wc-block-checkout__payment-method .mfsc-bank-box {
    margin-top: 10px;
}

.wc-block-components-radio-control-accordion-content .mfsc-card-account-card {
    border-color: #c9d7ea;
}

/* Theme / page-builder hardening (Kitify, Woodmart, Elementor, etc.) */
#mfsc-modal[dir="rtl"] {
    direction: rtl !important;
    text-align: right;
}

#mfsc-modal[dir="rtl"] .mfsc-fast-header,
#mfsc-modal[dir="rtl"] .mfsc-fast-footer,
#mfsc-modal[dir="rtl"] .mfsc-fast-item-bottom,
#mfsc-modal[dir="rtl"] .mfsc-cart-item,
#mfsc-modal[dir="rtl"] .mfsc-fast-cart-item,
#mfsc-modal[dir="rtl"] .mfsc-fast-price-breakdown {
    direction: rtl !important;
}

#mfsc-modal[dir="rtl"] .mfsc-fast-footer {
    flex-direction: row !important;
}

#mfsc-modal[dir="rtl"] .mfsc-trusted-badge {
    margin-inline-start: auto !important;
    margin-inline-end: 0 !important;
}

#mfsc-modal button.mfsc-close {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;
    max-width: 28px !important;
    max-height: 28px !important;
    padding: 0 !important;
    margin: 0 !important;
    flex: 0 0 28px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: var(--MFSC-soft-2) !important;
    color: #334155 !important;
    box-shadow: none !important;
    font-size: 20px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    appearance: none;
    -webkit-appearance: none;
}

#mfsc-modal button.mfsc-close:hover {
    background: #e2e8f0 !important;
    color: var(--MFSC-text) !important;
    transform: rotate(4deg);
}

#mfsc-modal .mfsc-qty-control {
    direction: ltr !important;
    flex-direction: row !important;
    display: inline-flex !important;
    align-items: center !important;
    vertical-align: middle;
    height: 30px !important;
    min-height: 30px !important;
    max-height: 30px !important;
    box-sizing: border-box !important;
}

#mfsc-modal .mfsc-qty-control button {
    width: 28px !important;
    min-width: 28px !important;
    max-width: 28px !important;
    height: 28px !important;
    min-height: 28px !important;
    max-height: 28px !important;
    padding: 0 !important;
    margin: 0 !important;
    flex: 0 0 28px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: none !important;
    font-size: 17px !important;
    line-height: 1 !important;
    border-radius: 0 !important;
}

#mfsc-modal .mfsc-cart-qty {
    width: 32px !important;
    min-width: 32px !important;
    max-width: 32px !important;
    height: 28px !important;
    min-height: 28px !important;
    max-height: 28px !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 28px !important;
    text-align: center !important;
    vertical-align: middle !important;
    box-sizing: border-box !important;
    border: 0 !important;
    box-shadow: none !important;
    appearance: textfield !important;
    -moz-appearance: textfield !important;
}

#mfsc-modal .mfsc-fast-coupon {
    align-items: center !important;
}

#mfsc-modal .mfsc-coupon-input,
#mfsc-modal button.mfsc-apply-coupon {
    height: 46px !important;
    min-height: 46px !important;
    max-height: 46px !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}

#mfsc-modal button.mfsc-apply-coupon {
    width: auto !important;
    min-width: 74px !important;
    max-width: max-content !important;
    padding: 0 15px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1.25 !important;
    flex: 0 0 auto !important;
}

#mfsc-modal .mfsc-cart-remove {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    max-width: 28px !important;
    padding: 0 !important;
    flex: 0 0 28px !important;
}

#mfsc-modal .mfsc-fast-loading.is-visible {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    justify-items: center !important;
    align-items: center !important;
    align-content: center !important;
    justify-content: center !important;
    text-align: center !important;
    width: 100% !important;
    inset: 0;
}

#mfsc-modal .mfsc-fast-loading-text {
    width: min(92%, 360px);
    margin: 0 auto;
    text-align: center !important;
}

@media (max-width: 560px) {
    #mfsc-modal button.mfsc-apply-coupon {
        width: 100% !important;
        max-width: none !important;
    }
}

