/**
 * MFS Manual Payments for WooCommerce - CRO Optimized Checkout
 * Clean, Fast, Conversion-Focused Design
 *
 * @version 2.0.0
 */

/* ------------------------------
   Global Variables
   ------------------------------ */
:root {
    --bmg-radius: 12px;
    --bmg-radius-sm: 8px;
    --bmg-shadow: 0 2px 8px rgba(0,0,0,0.08);
    --bmg-shadow-hover: 0 4px 16px rgba(0,0,0,0.12);
    --bmg-transition: all 0.2s ease;
}

/* ------------------------------
   Main Checkout Wrapper
   ------------------------------ */
.mmpw-cro-checkout {
    font-family: inherit;
    padding: 16px;
    background: linear-gradient(135deg, #fafbfc 0%, #ffffff 100%);
    border-radius: var(--bmg-radius);
    border: 1px solid #e5e7eb;
}

/* ------------------------------
   Top Amount Summary (if used)
   ------------------------------ */
.mmpw-amount-banner {
    text-align: center;
    padding: 16px 20px;
    border-radius: var(--bmg-radius);
    margin-bottom: 16px;
    color: #ffffff;
}

.mmpw-amount-label {
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
    margin-bottom: 4px;
}

.mmpw-amount-value {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
}

.mmpw-amount-value .woocommerce-Price-amount {
    color: #ffffff !important;
}

.mmpw-amount-fee {
    font-size: 11px;
    opacity: 0.85;
    margin-top: 6px;
}

/* ------------------------------
   (OLD) Timer – if enabled
   ------------------------------ */
.mmpw-payment-timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1px solid #f59e0b;
    border-radius: var(--bmg-radius-sm);
    margin-bottom: 16px;
    font-size: 13px;
    color: #92400e;
}

.mmpw-timer-icon {
    font-size: 16px;
}

.mmpw-timer-countdown {
    font-weight: 700;
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
    background: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    color: #dc2626;
}

.mmpw-payment-timer.mmpw-timer-warning {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border-color: #ef4444;
    animation: timerPulse 1s ease infinite;
}

@keyframes timerPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* ------------------------------
   Multiple Accounts – Card Layout
   ------------------------------ */
.mmpw-accounts-grid {
    display: grid;
    gap: 12px;
    margin-bottom: 16px;
}

.mmpw-account-card {
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: var(--bmg-radius);
    padding: 16px;
    text-align: center;
    transition: var(--bmg-transition);
    position: relative;
}

.mmpw-account-card:hover {
    border-color: var(--gateway-color, #667eea);
    box-shadow: var(--bmg-shadow-hover);
}

.mmpw-account-card.mmpw-primary {
    border-color: var(--gateway-color, #667eea);
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
    box-shadow: var(--bmg-shadow);
}

/* account header (type + tag) */
.mmpw-card-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
}

/* type (personal / merchant / agent) */
.mmpw-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mmpw-type-personal {
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    color: #0369a1;
}

.mmpw-type-merchant {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    color: #15803d;
}

.mmpw-type-agent {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #b45309;
}

/* recommended tag */
.mmpw-recommended {
    font-size: 10px;
    font-weight: 500;
    color: #059669;
    background: #d1fae5;
    padding: 2px 8px;
    border-radius: 10px;
}

/* number block */
.mmpw-number-display {
    margin-bottom: 14px;
}

.mmpw-phone-number {
    display: block;
    font-size: 22px;
    font-weight: 700;
    font-family: 'SF Mono', Monaco, Consolas, monospace;
    letter-spacing: 1px;
    color: #1f2937;
    padding: 10px;
    background: #f3f4f6;
    border-radius: var(--bmg-radius-sm);
    user-select: all;
    cursor: text;
}

/* ------------------------------
   Action buttons (copy / call / WhatsApp)
   ------------------------------ */
.mmpw-action-buttons {
    display: flex;
    gap: 8px;
}

.mmpw-action-buttons .mmpw-copy-btn {
    flex: 1;
}

/* copy button – base */
.mmpw-copy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    border: none;
    border-radius: var(--bmg-radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--bmg-transition);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff !important;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
}

/* copy button – hover: only elevation, no color change */
.mmpw-copy-btn:hover {
    opacity: 0.92;
    transform: translateY(-0.5px);
    box-shadow: 0 3px 6px rgba(0,0,0,0.18);
    color: #ffffff !important;
}

.mmpw-copy-btn:active {
    transform: translateY(0);
}

/* copy button – NO color change on copied */
.mmpw-copy-btn.copied {
    /* No color change - keep original */
}

.mmpw-copy-btn .mmpw-copy-icon {
    font-size: 14px;
}

/* dial button */
.mmpw-dial-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 14px;
    border: none;
    border-radius: var(--bmg-radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--bmg-transition);
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: #ffffff !important;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
}

.mmpw-dial-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    color: #ffffff !important;
    text-decoration: none;
}

.mmpw-dial-btn .mmpw-dial-icon {
    font-size: 14px;
}

/* WhatsApp icon-only on checkout */
.mmpw-whatsapp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: var(--bmg-radius-sm);
    font-size: 18px;
    cursor: pointer;
    transition: var(--bmg-transition);
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: #ffffff !important;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(37, 211, 102, 0.3);
}

.mmpw-whatsapp-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    color: #ffffff !important;
    text-decoration: none;
}

/* ------------------------------
   Three-step indicator (optional)
   ------------------------------ */
.mmpw-payment-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 16px 12px;
    background: #f8fafc;
    border-radius: var(--bmg-radius-sm);
    margin-bottom: 16px;
}

.mmpw-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 0 12px;
}

.mmpw-step-num {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e2e8f0;
    color: #64748b;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    transition: var(--bmg-transition);
}

.mmpw-step-text {
    font-size: 10px;
    color: #64748b;
    text-align: center;
    white-space: nowrap;
}

.mmpw-step-line {
    flex: 1;
    max-width: 40px;
    height: 2px;
    background: #e2e8f0;
}

.mmpw-step.mmpw-step-active .mmpw-step-num {
    background: var(--gateway-color, #667eea);
    color: #fff;
}

.mmpw-step.mmpw-step-active .mmpw-step-text {
    color: var(--gateway-color, #667eea);
    font-weight: 600;
}

.mmpw-step.mmpw-step-done .mmpw-step-num {
    background: #10b981;
    color: #fff;
}

.mmpw-step.mmpw-step-done .mmpw-step-num::after {
    content: '✓';
}

/* ------------------------------
   Share button (optional)
   ------------------------------ */
.mmpw-share-section {
    margin: 12px 0;
}

.mmpw-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 16px;
    background: #f1f5f9;
    border: 1px dashed #cbd5e1;
    border-radius: var(--bmg-radius-sm);
    color: #475569;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--bmg-transition);
}

.mmpw-share-btn:hover {
    background: #e2e8f0;
    border-color: #94a3b8;
}

.mmpw-share-icon {
    font-size: 16px;
}

/* ------------------------------
   Trust badges row
   ------------------------------ */
.mmpw-trust-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 12px;
    margin-top: 12px;
    border-top: 1px solid #e5e7eb;
}

.mmpw-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #6b7280;
}

.mmpw-badge-icon {
    font-size: 12px;
}

/* ------------------------------
   Gateway-specific coloring – copy buttons + primary card
   ------------------------------ */
.mmpw-gateway-bkash .mmpw-copy-btn {
    background: linear-gradient(135deg, #E2136E 0%, #9C0D4D 100%);
    box-shadow: 0 2px 4px rgba(226, 19, 110, 0.3);
}
.mmpw-gateway-bkash .mmpw-copy-btn:hover {
    /* No change on hover */
}
.mmpw-gateway-bkash .mmpw-account-card.mmpw-primary {
    border-color: #E2136E;
}

.mmpw-gateway-nagad .mmpw-copy-btn {
    background: linear-gradient(135deg, #F6921E 0%, #E67E00 100%);
    box-shadow: 0 2px 4px rgba(246, 146, 30, 0.3);
}
.mmpw-gateway-nagad .mmpw-copy-btn:hover {
    /* No change on hover */
}
.mmpw-gateway-nagad .mmpw-account-card.mmpw-primary {
    border-color: #F6921E;
}

.mmpw-gateway-rocket .mmpw-copy-btn {
    background: linear-gradient(135deg, #8B2F89 0%, #5E1E5C 100%);
    box-shadow: 0 2px 4px rgba(139, 47, 137, 0.3);
}
.mmpw-gateway-rocket .mmpw-copy-btn:hover {
    /* No change on hover */
}
.mmpw-gateway-rocket .mmpw-account-card.mmpw-primary {
    border-color: #8B2F89;
}

.mmpw-gateway-upay .mmpw-copy-btn {
    background: linear-gradient(135deg, #00A651 0%, #007A3D 100%);
    box-shadow: 0 2px 4px rgba(0, 166, 81, 0.3);
}
.mmpw-gateway-upay .mmpw-copy-btn:hover {
    /* No change on hover */
}
.mmpw-gateway-upay .mmpw-account-card.mmpw-primary {
    border-color: #00A651;
}

.mmpw-gateway-mcash .mmpw-copy-btn {
    background: linear-gradient(135deg, #0066B3 0%, #004A82 100%);
    box-shadow: 0 2px 4px rgba(0, 102, 179, 0.3);
}
.mmpw-gateway-mcash .mmpw-copy-btn:hover {
    /* No change on hover */
}
.mmpw-gateway-mcash .mmpw-account-card.mmpw-primary {
    border-color: #0066B3;
}

/* ------------------------------
   Gateway-specific ACTIVE tab background
   (gradient tab color per gateway)
   ------------------------------ */
.mmpw-gateway-bkash .mmpw-tab.active {
    background: linear-gradient(135deg, #E2136E 0%, #9C0D4D 100%);
    box-shadow: 0 4px 12px rgba(226, 19, 110, 0.40);
}

.mmpw-gateway-nagad .mmpw-tab.active {
    background: linear-gradient(135deg, #F6921E 0%, #E67E00 100%);
    box-shadow: 0 4px 12px rgba(246, 146, 30, 0.40);
}

.mmpw-gateway-rocket .mmpw-tab.active {
    background: linear-gradient(135deg, #8B2F89 0%, #5E1E5C 100%);
    box-shadow: 0 4px 12px rgba(139, 47, 137, 0.40);
}

.mmpw-gateway-upay .mmpw-tab.active {
    background: linear-gradient(135deg, #00A651 0%, #007A3D 100%);
    box-shadow: 0 4px 12px rgba(0, 166, 81, 0.40);
}

.mmpw-gateway-mcash .mmpw-tab.active {
    background: linear-gradient(135deg, #0066B3 0%, #004A82 100%);
    box-shadow: 0 4px 12px rgba(0, 102, 179, 0.40);
}

/* ------------------------------
   QR block (per gateway)
   ------------------------------ */
.mmpw-qr-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px;
    background: #f9fafb;
    border-radius: var(--bmg-radius-sm);
    border: 1px dashed #d1d5db;
    margin-bottom: 16px;
}

.mmpw-qr-label {
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mmpw-qr-img {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    box-shadow: var(--bmg-shadow);
}

/* ------------------------------
   Fee pill (if fee enabled)
   ------------------------------ */
.mmpw-fee-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1px solid #f59e0b;
    border-radius: 20px;
    font-size: 13px;
    margin-bottom: 16px;
}

.mmpw-fee-label {
    font-weight: 500;
    color: #92400e;
}

.mmpw-fee-amount {
    font-weight: 700;
    color: #78350f;
}

/* ------------------------------
   Transaction ID input (main)
   ------------------------------ */
.mmpw-txn-section {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: var(--bmg-radius);
    padding: 16px;
}

.mmpw-txn-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.mmpw-txn-label .required {
    color: #dc2626;
}

.mmpw-txn-input-wrap {
    position: relative;
}

.mmpw-txn-input {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    font-family: 'SF Mono', Monaco, Consolas, monospace;
    letter-spacing: 1px;
    border: 2px solid #e5e7eb;
    border-radius: var(--bmg-radius-sm);
    transition: var(--bmg-transition);
    text-transform: uppercase;
    box-sizing: border-box;
}

.mmpw-txn-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

.mmpw-txn-input::placeholder {
    color: #9ca3af;
    text-transform: none;
    letter-spacing: normal;
}

.mmpw-txn-hint {
    margin: 8px 0 0;
    font-size: 12px;
    color: #6b7280;
}

/* ------------------------------
   Global copy toast (bottom snackbar)
   ------------------------------ */
.mmpw-copy-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #1f2937;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    z-index: 99999;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
}

.mmpw-copy-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.mmpw-copy-toast.success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.mmpw-copy-toast.error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

/* ------------------------------
   Mobile layout tweaks
   ------------------------------ */
@media (max-width: 480px) {
    .mmpw-cro-checkout {
        padding: 12px;
    }

    .mmpw-account-card {
        padding: 14px;
    }

    .mmpw-phone-number {
        font-size: 18px;
    }

    .mmpw-copy-btn {
        padding: 10px 16px;
        font-size: 13px;
    }

    .mmpw-qr-section {
        flex-direction: column;
        gap: 8px;
    }

    .mmpw-qr-img {
        width: 100px;
        height: 100px;
    }
}

/* ------------------------------
   Small animations + focus
   ------------------------------ */
@keyframes bmg-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

@keyframes bmg-success {
    0% { transform: scale(0.95); opacity: 0; }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); opacity: 1; }
}

.mmpw-copy-btn.copied {
    animation: bmg-success 0.3s ease;
}

.mmpw-copy-btn:focus-visible,
.mmpw-txn-input:focus-visible {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* ------------------------------
   Print-friendly tweaks
   ------------------------------ */
@media print {
    .mmpw-copy-btn {
        display: none !important;
    }

    .mmpw-cro-checkout {
        background: #fff !important;
        border: 1px solid #000;
    }

    .mmpw-phone-number {
        background: #f0f0f0 !important;
    }
}

/* ------------------------------
   WC payment label row
   ------------------------------ */
.wc_payment_method[class*="payment_method_bmg_"] label {
    display: flex !important;
    align-items: center;
    gap: 10px;
}

.wc_payment_method[class*="payment_method_bmg_"] label img {
    max-height: 28px;
    width: auto;
}

/* Fix payment method list alignment */
.woocommerce-checkout-payment ul.payment_methods,
.woocommerce-checkout-payment .wc_payment_methods_list {
    list-style: none !important;
    padding-left: 0 !important;
    margin: 0 !important;
}

.woocommerce-checkout-payment .wc_payment_method {
    list-style: none !important;
    margin: 0 !important;
    padding: 12px 0 !important;
    border-bottom: 1px solid #eee;
}

.woocommerce-checkout-payment .wc_payment_method:last-child {
    border-bottom: none;
}

.woocommerce-checkout-payment .wc_payment_method label {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 500;
}

.woocommerce-checkout-payment .wc_payment_method input[type="radio"] {
    margin: 0 !important;
    margin-right: 8px !important;
}

/* ------------------------------
   Thank you page wrapper
   ------------------------------ */
.mmpw-thankyou-wrapper {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-radius: var(--bmg-radius);
    padding: 24px;
    margin: 20px 0;
    border: 1px solid #e5e7eb;
    box-shadow: var(--bmg-shadow);
}

.mmpw-thankyou-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.mmpw-thankyou-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #ffffff;
}

.mmpw-thankyou-title h2 {
    margin: 0;
    font-size: 18px;
    color: #1f2937;
}

.mmpw-thankyou-status {
    margin: 4px 0 0;
    font-size: 14px;
}

.mmpw-status-pending {
    color: #d97706;
}

.mmpw-status-received {
    color: #059669;
}

.mmpw-thankyou-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

.mmpw-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: var(--bmg-radius-sm);
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: var(--bmg-transition);
}

.mmpw-action-btn:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

/* WhatsApp CTA button on thank you page */
.mmpw-thankyou-wrapper .mmpw-whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    background: #25D366;
    color: #ffffff !important;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--bmg-transition);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.mmpw-thankyou-wrapper .mmpw-whatsapp-btn:hover {
    background: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    color: #ffffff !important;
}

.mmpw-description {
    margin: 0 0 16px;
    font-size: 14px;
    color: #6b7280;
    line-height: 1.5;
}

/* ------------------------------
   Copy-all button (optional)
   ------------------------------ */
.mmpw-copy-all-section {
    margin: 12px 0 16px;
    text-align: center;
}

.mmpw-copy-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1px dashed #0ea5e9;
    border-radius: 8px;
    color: #0369a1;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--bmg-transition);
}

.mmpw-copy-all-btn:hover {
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    border-style: solid;
    transform: translateY(-1px);
}

.mmpw-copy-all-btn.copied {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    border-color: #22c55e;
    color: #15803d;
}

.mmpw-copy-all-icon {
    font-size: 16px;
}

.mmpw-copy-all-text {
    letter-spacing: 0.3px;
}

@media (max-width: 480px) {
    .mmpw-copy-all-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ------------------------------
   Simplified layout (single column)
   ------------------------------ */
.mmpw-checkout-simple {
    font-family: inherit;
    padding: 16px;
    background: #ffffff;
    border-radius: var(--bmg-radius);
    border: 1px solid #e5e7eb;
}

.mmpw-accounts-simple {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

/* ========================================
   NEW CRO-FRIENDLY ACCOUNT CARD
   ======================================== */
.mmpw-acc-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 12px 14px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.mmpw-acc-row1 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.mmpw-acc-label {
    font-size: inherit;
    font-family: inherit;
    font-weight: 600;
    color: #1f2937;
}

.mmpw-acc-type {
    font-size: 11px;
    font-family: inherit;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.mmpw-acc-type.mmpw-type-personal { 
    background: #eff6ff; 
    color: #2563eb; 
}
.mmpw-acc-type.mmpw-type-merchant { 
    background: #f0fdf4; 
    color: #16a34a; 
}
.mmpw-acc-type.mmpw-type-agent { 
    background: #fefce8; 
    color: #ca8a04; 
}

.mmpw-acc-row2 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.mmpw-acc-num {
    font-size: 18px;
    font-weight: 700;
    font-family: inherit;
    color: #111827;
    letter-spacing: 0.5px;
}

.mmpw-acc-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mmpw-acc-copy {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    border: none;
    border-radius: 6px;
    font-size: inherit;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mmpw-acc-copy:hover,
.mmpw-acc-copy:focus,
.mmpw-acc-copy:active,
.mmpw-acc-copy:visited {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.mmpw-acc-qr {
    padding: 8px 12px;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: inherit;
    font-family: inherit;
    font-weight: 700;
    color: #4b5563;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mmpw-acc-qr:hover {
    background: #e5e7eb;
    color: #1f2937;
}

/* Gateway specific colors for copy button */
.mmpw-gateway-bkash .mmpw-acc-copy { background: linear-gradient(135deg, #E2136E 0%, #9C0D4D 100%); }
.mmpw-gateway-nagad .mmpw-acc-copy { background: linear-gradient(135deg, #F6921E 0%, #E67E00 100%); }
.mmpw-gateway-rocket .mmpw-acc-copy { background: linear-gradient(135deg, #8B2F89 0%, #5E1E5C 100%); }
.mmpw-gateway-upay .mmpw-acc-copy { background: linear-gradient(135deg, #00A651 0%, #007A3D 100%); }
.mmpw-gateway-mcash .mmpw-acc-copy { background: linear-gradient(135deg, #0066B3 0%, #004A82 100%); }

/* Legacy support */
.mmpw-account-simple {
    padding: 14px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: var(--bmg-radius-sm);
    border-left: 3px solid var(--gateway-color, #6366f1);
}

.mmpw-account-header-simple {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.mmpw-account-label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

.mmpw-number-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.mmpw-checkout-simple .mmpw-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--gateway-color, #6366f1);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--bmg-transition);
}

.mmpw-checkout-simple .mmpw-copy-btn:hover {
    opacity: 1;
    transform: none;
}

.mmpw-checkout-simple .mmpw-copy-btn.copied {
    /* No color change */
}

/* QR inside simple layout */
.mmpw-account-qr {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed #e5e7eb;
    display: flex;
    align-items: center;
    gap: 12px;
}

.mmpw-account-qr-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #fff;
    padding: 4px;
}

.mmpw-qr-hint {
    font-size: 12px;
    color: #6b7280;
}

/* simplified txn block */
.mmpw-txn-simple {
    padding: 14px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: var(--bmg-radius-sm);
}

.mmpw-txn-simple .mmpw-txn-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.mmpw-txn-simple .mmpw-txn-input {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
    text-transform: uppercase;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #fff;
    box-sizing: border-box;
}

.mmpw-txn-simple .mmpw-txn-input:focus {
    border-color: #6366f1;
    outline: none;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.mmpw-txn-simple .mmpw-txn-hint {
    margin: 8px 0 0;
    font-size: 12px;
    color: #6b7280;
}

/* simplified – per gateway colors on border + copy */
.mmpw-gateway-bkash .mmpw-account-simple,
.mmpw-gateway-bkash .mmpw-acc-card { border-left: 3px solid #E2136E; }
.mmpw-gateway-bkash .mmpw-checkout-simple .mmpw-copy-btn,
.mmpw-gateway-bkash .mmpw-acc-copy { background: linear-gradient(135deg, #E2136E 0%, #9C0D4D 100%); }

.mmpw-gateway-nagad .mmpw-account-simple,
.mmpw-gateway-nagad .mmpw-acc-card { border-left: 3px solid #F6921E; }
.mmpw-gateway-nagad .mmpw-checkout-simple .mmpw-copy-btn,
.mmpw-gateway-nagad .mmpw-acc-copy { background: linear-gradient(135deg, #F6921E 0%, #E67E00 100%); }

.mmpw-gateway-rocket .mmpw-account-simple,
.mmpw-gateway-rocket .mmpw-acc-card { border-left: 3px solid #8B2F89; }
.mmpw-gateway-rocket .mmpw-checkout-simple .mmpw-copy-btn,
.mmpw-gateway-rocket .mmpw-acc-copy { background: linear-gradient(135deg, #8B2F89 0%, #5E1E5C 100%); }

.mmpw-gateway-upay .mmpw-account-simple,
.mmpw-gateway-upay .mmpw-acc-card { border-left: 3px solid #00A651; }
.mmpw-gateway-upay .mmpw-checkout-simple .mmpw-copy-btn,
.mmpw-gateway-upay .mmpw-acc-copy { background: linear-gradient(135deg, #00A651 0%, #007A3D 100%); }

.mmpw-gateway-mcash .mmpw-account-simple,
.mmpw-gateway-mcash .mmpw-acc-card { border-left: 3px solid #0066B3; }
.mmpw-gateway-mcash .mmpw-checkout-simple .mmpw-copy-btn,
.mmpw-gateway-mcash .mmpw-acc-copy { background: linear-gradient(135deg, #0066B3 0%, #004A82 100%); }

@media (max-width: 480px) {
    .mmpw-checkout-simple {
        padding: 12px;
    }
    
    .mmpw-acc-card {
        padding: 10px;
    }
    
    .mmpw-acc-row2 {
        flex-wrap: wrap;
    }
    
    .mmpw-acc-num {
        font-size: 16px;
        width: 100%;
        margin-bottom: 8px;
    }
    
    .mmpw-acc-actions {
        width: 100%;
    }
    
    .mmpw-acc-copy {
        flex: 1;
    }

    .mmpw-phone-number {
        font-size: 18px;
    }

    .mmpw-number-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .mmpw-checkout-simple .mmpw-copy-btn {
        width: 100%;
        justify-content: center;
    }

    .mmpw-account-qr {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ------------------------------
   Extra note block under accounts
   ------------------------------ */
.mmpw-payment-note {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1px solid #f59e0b;
    border-radius: 8px;
    margin-top: 12px;
}

.mmpw-note-icon {
    font-size: 16px;
    flex-shrink: 0;
}

.mmpw-note-text {
    font-size: 13px;
    color: #92400e;
    font-weight: 500;
}

/* ------------------------------
   QR enlarge modal
   ------------------------------ */
.mmpw-qr-clickable {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mmpw-qr-clickable:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.mmpw-qr-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mmpw-qr-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(4px);
}

.mmpw-qr-modal-content {
    position: relative;
    z-index: 1;
}

.mmpw-qr-modal-box {
    position: relative;
    background: #ffffff;
    border-radius: 18px;
    padding: 20px 20px 16px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
    text-align: center;
    min-width: 260px;
}

.mmpw-qr-modal-img-wrap {
    position: relative;
    display: inline-block;
}

.mmpw-qr-modal-img {
    width: 220px;
    max-width: 70vw;
    height: auto;
    border-radius: 14px;
    border: 2px solid #e5e7eb;
    display: block;
}

.mmpw-qr-modal-hint {
    margin-top: 14px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #374151;
}

.mmpw-qr-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: none;
    background: rgba(239, 68, 68, 0.95);
    color: #ffffff;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.mmpw-qr-modal-close:hover {
    background: #dc2626;
}

/* ------------------------------
   FULL / ADVANCE amount tabs
   ------------------------------ */
.mmpw-amount-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    margin-bottom: 8px;
}

/* single tab */
.mmpw-tab {
    padding: 12px 14px;
    text-align: center;
    cursor: pointer;
    transition: background 0.16s ease, box-shadow 0.16s ease, transform 0.12s ease;
    background: #f9fafb;
    border-right: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
}

.mmpw-tab:last-child {
    border-right: none;
}

/* tab title – FULL / ADVANCE text */
.mmpw-tab-title {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #374151;
    margin-bottom: 1px;
}

/* tab amount – default (NON-ACTIVE) state = dark text */
.mmpw-tab-amount {
    display: block;
    font-size: 15px;
    font-weight: 800;
    color: #111827;                 /* normal state = dark */
    line-height: 1.2;
}

/* force WooCommerce amount inside tab in normal state */
.mmpw-tab-amount .woocommerce-Price-amount,
.mmpw-tab-amount .woocommerce-Price-amount bdi {
    color: #111827 !important;
}

/* ACTIVE tab (any gateway) – text & amount white */
.mmpw-tab.active {
    background: #111827;            /* fallback; real gradient from gateway rules */
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.18);
    transform: translateY(-1px);
}

.mmpw-tab.active .mmpw-tab-title,
.mmpw-tab.active .mmpw-tab-amount,
.mmpw-tab.active .mmpw-tab-amount .woocommerce-Price-amount,
.mmpw-tab.active .mmpw-tab-amount .woocommerce-Price-amount bdi {
    color: #ffffff !important;
    text-shadow: 0 0 2px rgba(0,0,0,0.45);
}

/* hover (non-active) highlight only */
.mmpw-tab:hover:not(.active) {
    background: #e5e7eb;
    transform: translateY(-1px);
}

/* “Pay ৳X on delivery” note under tabs */
.mmpw-tab-note {
    margin-top: 6px;
    margin-bottom: 14px;
    padding: 8px 10px;
    border-radius: 8px;
    background: #f3f4f6;
    border: 1px dashed #d1d5db;
    font-size: 13px;
    color: #4b5563;
}

.mmpw-tab-note strong {
    color: #16a34a;
    font-weight: 700;
}

/* mobile – keep tabs side-by-side */
@media (max-width: 480px) {
    .mmpw-amount-tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* payment instructions block under tabs */
.mmpw-payment-instructions {
    margin-top: 4px;
}

/* some other payment types layout (if used) */
@media (max-width: 480px) {
    .mmpw-payment-types {
        flex-direction: column;
    }

    .mmpw-payment-type-option {
        min-width: 100%;
    }
}

/* ==========================================
   NEW FEATURES - Instructions, 
   WhatsApp, Proof Upload
   ========================================== */

/* Payment Instructions */
.mmpw-instructions {
    margin: 16px 0;
    padding: 14px 16px;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1px solid #bbf7d0;
    border-radius: 10px;
}

.mmpw-instructions-title {
    font-size: 13px;
    font-weight: 600;
    color: #166534;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.mmpw-instructions-content {
    font-size: 13px;
    color: #15803d;
    line-height: 1.6;
}

/* WhatsApp Button */
.mmpw-whatsapp-wrap {
    margin: 16px 0;
}

.mmpw-whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #fff !important;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.mmpw-whatsapp-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.mmpw-wa-icon {
    font-size: 20px;
}

/* Payment Proof Upload */
.mmpw-proof-upload {
    margin: 16px 0;
    padding: 14px 16px;
    background: #fafafa;
    border: 1px dashed #d1d5db;
    border-radius: 10px;
}

.mmpw-proof-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.mmpw-proof-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 13px;
    background: #fff;
}

.mmpw-proof-input:focus {
    outline: none;
    border-color: var(--gateway-color, #6366f1);
}

.mmpw-proof-hint {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 6px;
    margin-bottom: 0;
}
/* Thank You Page Styles */
.mmpw-thankyou-wrapper {
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    border: 1px solid #e0e0e0;
    border-left: 4px solid;
    border-radius: 12px;
    padding: 25px;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.mmpw-thankyou-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.mmpw-thankyou-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    font-weight: bold;
}

.mmpw-thankyou-title h2 {
    margin: 0 0 5px 0;
    font-size: 20px;
}

.mmpw-thankyou-status {
    margin: 0;
}

.mmpw-status-pending {
    color: #856404;
}

.mmpw-status-received {
    color: #155724;
}

.mmpw-thankyou-txn {
    background: #e8f5e9;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mmpw-txn-label {
    font-weight: 500;
}

.mmpw-txn-value {
    background: #fff;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
}

.mmpw-thankyou-pending-notice {
    background: #fff3cd;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.mmpw-thankyou-accounts {
    margin-bottom: 20px;
}

.mmpw-thankyou-accounts h4 {
    margin: 0 0 10px 0;
    font-size: 14px;
}

.mmpw-accounts-table {
    width: 100%;
    border-collapse: collapse;
}

.mmpw-accounts-table th,
.mmpw-accounts-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.mmpw-accounts-table th {
    background: #f8f9fa;
    font-size: 12px;
    font-weight: 600;
}

/* Account List Styles */
.mmpw-account-list-wrapper {
    margin-bottom: 20px;
}

.mmpw-accounts-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mmpw-account-item {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    padding: 14px 16px;
    transition: all 0.2s ease;
}

.mmpw-account-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border-color: var(--bmg-gateway-color, #e8e8e8);
}

.mmpw-account-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.mmpw-account-label {
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.mmpw-account-number-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mmpw-account-number {
    flex: 1;
    background: #f5f5f5;
    padding: 10px 14px;
    border-radius: 6px;
    font-family: 'SF Mono', Monaco, Consolas, monospace;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: #333;
    border: 1px solid #e0e0e0;
}

.mmpw-copy-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    background: var(--bmg-gateway-color, #2271b1);
    color: #fff;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.mmpw-copy-btn:hover {
    opacity: 0.9;
}
