/* BanglaQRBD WooCommerce Payment Gateway Styles */
.banglaqrbd-checkout-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, "Hind Siliguri", "Segoe UI", Roboto, sans-serif;
    color: #1E293B;
    box-sizing: border-box;
}
.banglaqrbd-checkout-wrapper * {
    box-sizing: border-box;
}
.bqbd-badge-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
    align-items: center;
}
.bqbd-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    background: #F1F5F9;
    border: 1px solid #E2E8F0;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    color: #334155;
}
.bqbd-btn-primary {
    background: #0066FF;
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 12px 24px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}
.bqbd-btn-primary:hover {
    background: #0052CC;
}

/* Gateway logos: slightly larger, scoped to BanglaQRBD payment cards only. */
.bqbd-gateway-logo img{max-height:38px !important;max-width:150px !important;width:auto !important;height:auto !important;object-fit:contain !important;}
@media (max-width:640px){.bqbd-gateway-logo img{max-height:32px !important;max-width:120px !important;}}

/* -------------------------------------------------------------
   BanglaQRBD payment-method UI refresh
   Visual reference only: clean white card, method accent strip,
   accent input/button, generous mobile spacing. No payment logic.
   ------------------------------------------------------------- */
.bqbd-method-screen {
    --bqbd-accent: #0066FF;
    width: 100% !important;
    min-height: 0 !important;
    background: transparent !important;
    border-radius: 0 !important;
    padding: 8px 0 18px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
}

.bqbd-method-card {
    position: relative !important;
    width: min(100%, 430px) !important;
    margin: 0 auto !important;
    background: #fff !important;
    border: 0 !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: 0 14px 36px rgba(15, 23, 42, .12) !important;
}

.bqbd-method-card::before {
    content: "";
    display: block;
    position: absolute;
    z-index: 5;
    left: 0;
    right: 0;
    top: 0;
    height: 5px;
    background: var(--bqbd-accent) !important;
}

.bqbd-method-card > .p-5,
.bqbd-method-card > .sm\\:p-6 {
    background: #fff !important;
}

.bqbd-method-card .bqbd-method-hero {
    background: #fff !important;
    color: #0f172a !important;
    box-shadow: none !important;
    padding: 8px 0 6px !important;
    border-radius: 0 !important;
    text-align: center !important;
}

.bqbd-method-card .bqbd-method-heading {
    color: #172033 !important;
    max-width: 100% !important;
    margin-bottom: 14px !important;
}

.bqbd-method-card .bqbd-method-title {
    font-size: clamp(19px, 4vw, 25px) !important;
    line-height: 1.25 !important;
    font-weight: 800 !important;
    color: #172033 !important;
    margin-bottom: 8px !important;
}

.bqbd-method-card .bqbd-method-subtitle {
    font-size: 13px !important;
    line-height: 1.7 !important;
    font-weight: 500 !important;
    color: #7b8494 !important;
    max-width: 430px;
    margin: 0 auto !important;
}

.bqbd-method-card .bqbd-method-input {
    width: 100% !important;
    height: 58px !important;
    border: 2px solid var(--bqbd-accent) !important;
    border-radius: 16px !important;
    background: #fff !important;
    color: #172033 !important;
    box-shadow: none !important;
    font-size: 20px !important;
    font-weight: 600 !important;
    letter-spacing: .06em !important;
    padding: 0 18px !important;
}

.bqbd-method-card .bqbd-method-input::placeholder {
    color: #a0a8b5 !important;
    opacity: 1 !important;
    font-weight: 500 !important;
}

.bqbd-method-card .bqbd-method-input:focus {
    outline: none !important;
    border-color: var(--bqbd-accent) !important;
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--bqbd-accent) 13%, transparent) !important;
}

.bqbd-method-card .bqbd-method-actions {
    padding-top: 10px !important;
    flex-wrap: nowrap !important;
}

.bqbd-method-card .bqbd-method-actions > button {
    min-height: 48px !important;
    border-radius: 14px !important;
    font-size: 15px !important;
    font-weight: 800 !important;
}

.bqbd-method-card .bqbd-method-actions > button:first-child {
    background: #f1f3f7 !important;
    color: #1c2738 !important;
    border: 0 !important;
    box-shadow: none !important;
}

.bqbd-method-card .bqbd-method-primary {
    background: var(--bqbd-accent) !important;
    border: 0 !important;
    box-shadow: 0 12px 25px color-mix(in srgb, var(--bqbd-accent) 24%, transparent) !important;
}

.bqbd-method-card .bqbd-method-primary:hover {
    background: var(--bqbd-accent) !important;
    filter: brightness(.94) !important;
}

.bqbd-method-card .bqbd-method-actions {
    margin-bottom: 0 !important;
}

.bqbd-method-screen::after {
    content: "🔒  নিরাপদ পেমেন্ট • তথ্য সুরক্ষিত";
    display: block !important;
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: 100%;
    margin: 8px auto 0 !important;
    text-align: center !important;
    color: #9aa3b2;
    font-size: 11px;
    line-height: 1.4;
    font-weight: 500;
}


/* The same accent-card treatment for crypto / QR instruction screens. */
.bqbd-method-card .bg-\\[FAFBFD\\],
.bqbd-method-card .bg-\\[F8FAFC\\] {
    border-color: color-mix(in srgb, var(--bqbd-accent) 16%, #e2e8f0) !important;
}

.bqbd-method-card .text-\\[0066FF\\] {
    color: var(--bqbd-accent) !important;
}

@media (max-width: 640px) {
    .bqbd-method-screen {
        min-height: 0 !important;
        padding: 8px 10px 22px !important;
    }
    .bqbd-method-card {
        border-radius: 14px !important;
    }
    .bqbd-method-card .bqbd-method-input {
        height: 56px !important;
        font-size: 19px !important;
        border-radius: 14px !important;
    }
    .bqbd-method-card .bqbd-method-actions > button {
        min-height: 46px !important;
        font-size: 15px !important;
        border-radius: 14px !important;
    }
}

/* Restore depth to global-payment QR cards and make every monitored payment
   wait state visibly active. */
.bqbd-method-card .bqbd-crypto-prompt {
    position: relative !important;
    border: 1px solid color-mix(in srgb, var(--bqbd-accent) 24%, #dbe5f2) !important;
    border-radius: 16px !important;
    background: linear-gradient(135deg, #f4f8ff 0%, #ffffff 78%) !important;
    box-shadow: 0 8px 20px rgba(25, 67, 135, .08) !important;
    padding: 14px 16px !important;
}

.bqbd-method-card .bqbd-crypto-qr-frame {
    border: 1px solid #d7e4f6 !important;
    border-radius: 22px !important;
    background: linear-gradient(145deg, #ffffff, #f5f9ff) !important;
    box-shadow: 0 14px 28px rgba(25, 67, 135, .14), 0 2px 5px rgba(15, 23, 42, .05) !important;
    padding: 10px !important;
    cursor: zoom-in;
}

.bqbd-method-card .bqbd-crypto-qr-frame img {
    border-radius: 13px !important;
    cursor: zoom-in;
}

.bqbd-method-card .bqbd-crypto-address-card {
    border-color: #dce6f4 !important;
    border-radius: 16px !important;
    background: linear-gradient(135deg, #ffffff, #f8fbff) !important;
    box-shadow: 0 6px 16px rgba(15, 35, 70, .06) !important;
}

.bqbd-payment-status,
.bqbd-method-card .bqbd-payment-waiting {
    border-color: #d5e2f5 !important;
    background: linear-gradient(105deg, #f1f6ff, #fbfdff) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9) !important;
}

/* Bring the MFS and local-bank instruction hero higher in the card and give
   it a light accent surface instead of the flattened white panel. */
#banglaqrbd-fast-checkout-root .bqbd-method-card .bqbd-method-hero,
#banglaqrbd-checkout-root .bqbd-method-card .bqbd-method-hero,
#banglaqrbd-standalone-payment-root .bqbd-method-card .bqbd-method-hero {
    position: relative !important;
    isolation: isolate;
    margin: 0 !important;
    padding: 15px 16px !important;
    border: 1px solid color-mix(in srgb, var(--bqbd-accent) 25%, #dfe7f1) !important;
    border-radius: 18px !important;
    background: linear-gradient(135deg, color-mix(in srgb, var(--bqbd-accent) 10%, #fff) 0%, #ffffff 82%) !important;
    box-shadow: 0 9px 21px color-mix(in srgb, var(--bqbd-accent) 13%, transparent) !important;
    color: #172033 !important;
    text-align: center !important;
}

#banglaqrbd-fast-checkout-root .bqbd-method-card .bqbd-method-hero::before,
#banglaqrbd-checkout-root .bqbd-method-card .bqbd-method-hero::before,
#banglaqrbd-standalone-payment-root .bqbd-method-card .bqbd-method-hero::before {
    content: "";
    display: block;
    width: 34px;
    height: 4px;
    margin: 0 auto 8px;
    border-radius: 999px;
    background: var(--bqbd-accent);
    opacity: .75;
}

#banglaqrbd-fast-checkout-root .bqbd-method-card .bqbd-method-heading,
#banglaqrbd-checkout-root .bqbd-method-card .bqbd-method-heading,
#banglaqrbd-standalone-payment-root .bqbd-method-card .bqbd-method-heading {
    margin: 0 !important;
    color: #172033 !important;
}

#banglaqrbd-fast-checkout-root .bqbd-method-card .bqbd-method-title,
#banglaqrbd-checkout-root .bqbd-method-card .bqbd-method-title,
#banglaqrbd-standalone-payment-root .bqbd-method-card .bqbd-method-title {
    margin: 0 0 5px !important;
    color: #15233a !important;
    font-size: clamp(20px, 4vw, 23px) !important;
    line-height: 1.3 !important;
}

#banglaqrbd-fast-checkout-root .bqbd-method-card .bqbd-method-subtitle,
#banglaqrbd-checkout-root .bqbd-method-card .bqbd-method-subtitle,
#banglaqrbd-standalone-payment-root .bqbd-method-card .bqbd-method-subtitle {
    max-width: 390px;
    color: #596b84 !important;
    font-size: 14px !important;
    line-height: 1.55 !important;
}

#banglaqrbd-fast-checkout-root .bqbd-method-card:has(.bqbd-method-hero) > div:nth-child(3),
#banglaqrbd-checkout-root .bqbd-method-card:has(.bqbd-method-hero) > div:nth-child(3),
#banglaqrbd-standalone-payment-root .bqbd-method-card:has(.bqbd-method-hero) > div:nth-child(3) {
    gap: 14px !important;
    padding: 18px 22px 22px !important;
}

#banglaqrbd-fast-checkout-root .bqbd-method-card .bqbd-method-actions,
#banglaqrbd-checkout-root .bqbd-method-card .bqbd-method-actions,
#banglaqrbd-standalone-payment-root .bqbd-method-card .bqbd-method-actions {
    padding-top: 1px !important;
}

@media (max-width: 640px) {
    #banglaqrbd-fast-checkout-root .bqbd-method-card .bqbd-method-hero,
    #banglaqrbd-checkout-root .bqbd-method-card .bqbd-method-hero,
    #banglaqrbd-standalone-payment-root .bqbd-method-card .bqbd-method-hero {
        padding: 12px 13px !important;
        border-radius: 15px !important;
    }

    #banglaqrbd-fast-checkout-root .bqbd-method-card .bqbd-method-hero::before,
    #banglaqrbd-checkout-root .bqbd-method-card .bqbd-method-hero::before,
    #banglaqrbd-standalone-payment-root .bqbd-method-card .bqbd-method-hero::before {
        margin-bottom: 6px;
    }

    #banglaqrbd-fast-checkout-root .bqbd-method-card .bqbd-method-title,
    #banglaqrbd-checkout-root .bqbd-method-card .bqbd-method-title,
    #banglaqrbd-standalone-payment-root .bqbd-method-card .bqbd-method-title {
        font-size: 20px !important;
    }

    #banglaqrbd-fast-checkout-root .bqbd-method-card .bqbd-method-subtitle,
    #banglaqrbd-checkout-root .bqbd-method-card .bqbd-method-subtitle,
    #banglaqrbd-standalone-payment-root .bqbd-method-card .bqbd-method-subtitle {
        font-size: 13px !important;
    }

    #banglaqrbd-fast-checkout-root .bqbd-method-card:has(.bqbd-method-hero) > div:nth-child(3),
    #banglaqrbd-checkout-root .bqbd-method-card:has(.bqbd-method-hero) > div:nth-child(3),
    #banglaqrbd-standalone-payment-root .bqbd-method-card:has(.bqbd-method-hero) > div:nth-child(3) {
        gap: 11px !important;
        padding: 14px 14px 18px !important;
    }

    .bqbd-method-card .bqbd-crypto-qr-frame {
        padding: 8px !important;
    }
}

/* Bangla QR: make the server-status polling visible while the customer waits. */
.bqbd-qr-status-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    box-sizing: border-box !important;
    border: 3px solid #bfdbfe !important;
    border-top-color: #1473e6 !important;
    border-radius: 50%;
    background: transparent !important;
    animation: bqbd-status-spin .8s linear infinite !important;
}

.bqbd-qr-checking-note {
    color: #52647d !important;
    font-family: "Hind Siliguri", sans-serif !important;
    font-size: 14px !important;
    line-height: 1.55 !important;
    text-align: center;
}

.bqbd-confirm-lang {
    min-height: 40px;
    flex: 0 0 auto;
    font-family: "Hind Siliguri", sans-serif !important;
    font-size: 14px !important;
}

.bqbd-qr-view-header > div:first-child > img {
    width: 36px !important;
    height: 36px !important;
}

.bqbd-qr-view-merchant {
    font-size: 16px !important;
}

.bqbd-qr-view-amount {
    font-size: 17px !important;
}

.bqbd-qr-view-meta {
    font-size: 11px !important;
}

@keyframes bqbd-status-spin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .bqbd-qr-status-spinner {
        animation-duration: 2.4s;
    }
}

@media (max-width: 640px) {
    .bqbd-qr-status-spinner {
        width: 17px;
        height: 17px;
        flex-basis: 17px;
    }

    .bqbd-qr-checking-note {
        font-size: 13px !important;
    }

    .bqbd-confirm-lang {
        min-height: 38px;
        padding: 7px 10px !important;
        font-size: 13px !important;
    }

    .bqbd-qr-view-header {
        padding: 15px 16px !important;
    }

    .bqbd-qr-view-header > div:first-child > img {
        width: 32px !important;
        height: 32px !important;
    }

    .bqbd-qr-view-merchant {
        font-size: 15px !important;
    }

    .bqbd-qr-view-amount {
        font-size: 16px !important;
    }
}

/* Keep the QR-only header and confirmation-language controls above the
   standalone page's ID-scoped Tailwind utility rules. */
#banglaqrbd-standalone-payment #banglaqrbd-standalone-payment-root .bqbd-qr-view-header {
    padding: 17px 20px !important;
}

#banglaqrbd-standalone-payment #banglaqrbd-standalone-payment-root .bqbd-qr-view-header > div:first-child > img {
    width: 36px !important;
    height: 36px !important;
}

#banglaqrbd-standalone-payment #banglaqrbd-standalone-payment-root .bqbd-qr-view-merchant {
    font-size: 16px !important;
}

#banglaqrbd-standalone-payment #banglaqrbd-standalone-payment-root .bqbd-qr-view-amount {
    font-size: 17px !important;
}

#banglaqrbd-standalone-payment #banglaqrbd-standalone-payment-root .bqbd-qr-view-meta {
    font-size: 11px !important;
}

#banglaqrbd-standalone-payment #banglaqrbd-standalone-payment-root .bqbd-confirm-lang {
    min-height: 40px !important;
    font-size: 14px !important;
}

#banglaqrbd-standalone-payment #banglaqrbd-standalone-payment-root .bqbd-qr-status-spinner {
    display: inline-block !important;
    width: 18px !important;
    height: 18px !important;
    flex: 0 0 18px !important;
    box-sizing: border-box !important;
    border: 3px solid #bfdbfe !important;
    border-top-color: #1473e6 !important;
    border-radius: 50% !important;
    background: transparent !important;
    animation: bqbd-status-spin .8s linear infinite !important;
}

@media (max-width: 640px) {
    #banglaqrbd-standalone-payment #banglaqrbd-standalone-payment-root .bqbd-qr-view-header {
        padding: 15px 16px !important;
    }

    #banglaqrbd-standalone-payment #banglaqrbd-standalone-payment-root .bqbd-qr-view-header > div:first-child > img {
        width: 32px !important;
        height: 32px !important;
    }

    #banglaqrbd-standalone-payment #banglaqrbd-standalone-payment-root .bqbd-qr-view-merchant {
        font-size: 15px !important;
    }

    #banglaqrbd-standalone-payment #banglaqrbd-standalone-payment-root .bqbd-qr-view-amount {
        font-size: 16px !important;
    }

    #banglaqrbd-standalone-payment #banglaqrbd-standalone-payment-root .bqbd-confirm-lang {
        min-height: 38px !important;
        font-size: 13px !important;
    }

    #banglaqrbd-standalone-payment #banglaqrbd-standalone-payment-root .bqbd-qr-status-spinner {
        width: 18px !important;
        height: 18px !important;
        flex-basis: 18px !important;
    }
}

/* The standalone payment view scopes Tailwind utilities under two IDs and
   injects its utility sheet after this file. Keep these overrides stronger. */
#banglaqrbd-standalone-payment #banglaqrbd-standalone-payment-root .bqbd-confirm-card {
    border-top: 4px solid #1473e6 !important;
    box-shadow: 0 24px 60px rgba(15, 35, 70, .14), 0 4px 14px rgba(15, 35, 70, .06) !important;
}

#banglaqrbd-standalone-payment #banglaqrbd-standalone-payment-root .bqbd-confirm-title {
    font-size: 22px !important;
    line-height: 1.35 !important;
}

#banglaqrbd-standalone-payment #banglaqrbd-standalone-payment-root .bqbd-confirm-copy {
    font-size: 17px !important;
    line-height: 1.65 !important;
}

#banglaqrbd-standalone-payment #banglaqrbd-standalone-payment-root .bqbd-confirm-label {
    font-size: 16px !important;
    line-height: 1.55 !important;
}

#banglaqrbd-standalone-payment #banglaqrbd-standalone-payment-root .bqbd-confirm-input {
    min-height: 58px !important;
    font-size: 17px !important;
}

#banglaqrbd-standalone-payment #banglaqrbd-standalone-payment-root .bqbd-confirm-submit {
    min-height: 58px !important;
    font-size: 17px !important;
}

#banglaqrbd-standalone-payment #banglaqrbd-standalone-payment-root .bqbd-crypto-prompt {
    font-size: 16px !important;
    line-height: 1.6 !important;
}

#banglaqrbd-standalone-payment #banglaqrbd-standalone-payment-root .bqbd-payment-waiting {
    font-size: 15px !important;
    line-height: 1.5 !important;
}

#banglaqrbd-standalone-payment #banglaqrbd-standalone-payment-root .bqbd-auto-note {
    font-size: 14px !important;
    line-height: 1.6 !important;
}

#banglaqrbd-standalone-payment #banglaqrbd-standalone-payment-root .bqbd-crypto-trx-label {
    font-size: 16px !important;
    line-height: 1.5 !important;
}

#banglaqrbd-standalone-payment #banglaqrbd-standalone-payment-root .bqbd-crypto-trx-input,
#banglaqrbd-standalone-payment #banglaqrbd-standalone-payment-root .bqbd-crypto-trx-submit {
    min-height: 52px !important;
    font-size: 15px !important;
}

@media (max-width: 640px) {
    #banglaqrbd-standalone-payment #banglaqrbd-standalone-payment-root .bqbd-confirm-title {
        font-size: 20px !important;
    }

    #banglaqrbd-standalone-payment #banglaqrbd-standalone-payment-root .bqbd-confirm-copy {
        font-size: 16px !important;
    }

    #banglaqrbd-standalone-payment #banglaqrbd-standalone-payment-root .bqbd-confirm-label,
    #banglaqrbd-standalone-payment #banglaqrbd-standalone-payment-root .bqbd-crypto-trx-label {
        font-size: 15px !important;
    }

    #banglaqrbd-standalone-payment #banglaqrbd-standalone-payment-root .bqbd-confirm-input,
    #banglaqrbd-standalone-payment #banglaqrbd-standalone-payment-root .bqbd-confirm-submit {
        min-height: 56px !important;
        font-size: 16px !important;
    }

    #banglaqrbd-standalone-payment #banglaqrbd-standalone-payment-root .bqbd-crypto-prompt {
        font-size: 15px !important;
    }

    #banglaqrbd-standalone-payment #banglaqrbd-standalone-payment-root .bqbd-payment-waiting {
        font-size: 14px !important;
    }

    #banglaqrbd-standalone-payment #banglaqrbd-standalone-payment-root .bqbd-auto-note {
        font-size: 13px !important;
    }
}

/* Desktop: collapse the payment-stage wrapper to the compact payment card.
   This removes the wide empty right-side area while keeping mobile full-width. */
@media (min-width: 641px) {
    /* The wide gray/dark payment-stage wrapper is the actual source of the
       desktop empty area. Collapse that React wrapper to the payment UI
       width when a method screen is active. */
    #banglaqrbd-fast-checkout-root > div:has(.bqbd-method-screen) {
        width: min(430px, calc(100vw - 40px)) !important;
        max-width: 430px !important;
        min-height: 0 !important;
        height: auto !important;
        margin-left: auto !important;
        margin-right: auto !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    #banglaqrbd-fast-checkout-root > div:has(.bqbd-method-screen) > div:first-child {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .bqbd-method-screen {
        width: 100% !important;
        max-width: 430px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding: 8px 0 12px !important;
        overflow: visible !important;
    }

    .bqbd-method-card {
        width: 100% !important;
        max-width: 430px !important;
        overflow: hidden !important;
    }

    .bqbd-method-screen::after {
        width: 100% !important;
        margin: 8px auto 0 !important;
        text-align: center !important;
    }
}

/* v68: keep all payment-method switching inside the same payment page and
   compact method screens so the full flow fits on typical laptop displays. */
@media (min-width: 641px) and (max-height: 900px) {
    .bqbd-method-screen {
        padding: 4px 0 8px !important;
    }
    .bqbd-method-card {
        border-radius: 14px !important;
    }
    .bqbd-method-card .p-5,
    .bqbd-method-card .sm\\:p-6 {
        padding: 12px !important;
    }
    .bqbd-method-card .bqbd-method-hero {
        padding: 5px 0 4px !important;
    }
    .bqbd-method-card .bqbd-method-heading {
        margin-bottom: 8px !important;
    }
    .bqbd-method-card .bqbd-method-title {
        font-size: clamp(18px, 3vw, 22px) !important;
        margin-bottom: 5px !important;
    }
    .bqbd-method-card .bqbd-method-subtitle {
        font-size: 12px !important;
        line-height: 1.45 !important;
    }
    .bqbd-method-card .bqbd-method-input {
        height: 50px !important;
        font-size: 18px !important;
    }
    .bqbd-method-card .bqbd-method-actions {
        padding-top: 7px !important;
    }
    .bqbd-method-card .bqbd-method-actions > button {
        min-height: 42px !important;
        font-size: 14px !important;
    }
    .bqbd-method-screen::after {
        margin-top: 5px !important;
        font-size: 10px !important;
    }
}

/* v69 responsive checkout and payment layout, based on the supplied reference. */
#banglaqrbd-express-container {
    width: 100% !important;
    max-width: 1180px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
}

#banglaqrbd-fast-checkout-root {
    width: 100% !important;
    max-width: 1180px !important;
    margin: 0 auto !important;
}

#banglaqrbd-fast-checkout-root > div {
    width: 100% !important;
    max-width: 1180px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Checkout form: light merchant header and the desktop two-column layout. */
#banglaqrbd-fast-checkout-root > div > div[class*="max-w-[960px]"] {
    width: 100% !important;
    max-width: 980px !important;
    border: 1px solid #e3eaf3 !important;
    border-radius: 23px !important;
    background: #fff !important;
    box-shadow: 0 18px 48px rgba(15, 23, 42, .10) !important;
}

#banglaqrbd-fast-checkout-root > div > div[class*="max-w-[960px]"] > div:first-child {
    background: #fff !important;
    color: #172033 !important;
    border-color: #edf1f5 !important;
}

#banglaqrbd-fast-checkout-root > div > div[class*="max-w-[960px]"] > div:first-child h2 {
    color: #172033 !important;
    font-size: 20px !important;
}

#banglaqrbd-fast-checkout-root > div > div[class*="max-w-[960px]"] > div:first-child p {
    color: #7b8798 !important;
}

#banglaqrbd-fast-checkout-root > div > div[class*="max-w-[960px]"] > div:first-child > div:last-child {
    background: #effaf3 !important;
    border-color: #d7f0df !important;
    color: #168044 !important;
}

#banglaqrbd-fast-checkout-root > div > div[class*="max-w-[960px]"] > form {
    padding: 26px 30px 24px !important;
    background: #fff !important;
}

#banglaqrbd-fast-checkout-root > div > div[class*="max-w-[960px]"] > form > .grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, .9fr) !important;
    gap: 24px 34px !important;
    align-items: start !important;
}

#banglaqrbd-fast-checkout-root > div > div[class*="max-w-[960px]"] > form > .grid > div:first-child {
    min-width: 0 !important;
    gap: 14px !important;
}

#banglaqrbd-fast-checkout-root > div > div[class*="max-w-[960px]"] > form > .grid > div:last-child {
    min-width: 0 !important;
    padding: 20px !important;
    border: 1px solid #e4ebf4 !important;
    border-radius: 16px !important;
    background: linear-gradient(145deg, #f6f9fe, #fbfdff) !important;
}

#banglaqrbd-fast-checkout-root > div > div[class*="max-w-[960px]"] form label {
    color: #5f6c80 !important;
    font-weight: 700 !important;
}

#banglaqrbd-fast-checkout-root > div > div[class*="max-w-[960px]"] form input,
#banglaqrbd-fast-checkout-root > div > div[class*="max-w-[960px]"] form select {
    max-width: 100% !important;
    border-radius: 11px !important;
}

#banglaqrbd-fast-checkout-root > div > div[class*="max-w-[960px]"] form button[type="submit"] {
    min-height: 52px !important;
    border-radius: 13px !important;
    background: linear-gradient(135deg, #0066ff, #347cff) !important;
    box-shadow: 0 9px 20px rgba(0, 102, 255, .2) !important;
}

#banglaqrbd-fast-checkout-root > div > div[class*="max-w-[960px]"] > div:last-child {
    border-color: #edf1f5 !important;
    background: #f8fafc !important;
}

/* Payment-method screen: order details on the left and choices on the right. */
#banglaqrbd-fast-checkout-root > div > div > div[class*="max-w-[960px]"],
#banglaqrbd-standalone-payment-root > div > div[class*="max-w-[960px]"],
#banglaqrbd-checkout-root > div > div[class*="max-w-[960px]"] {
    width: 100% !important;
    max-width: 980px !important;
    min-height: 590px !important;
    border: 1px solid #e3eaf3 !important;
    border-radius: 23px !important;
    background: #fff !important;
    box-shadow: 0 18px 48px rgba(15, 23, 42, .10) !important;
}

#banglaqrbd-fast-checkout-root > div > div > div[class*="max-w-[960px]"] > div:first-child,
#banglaqrbd-standalone-payment-root > div > div[class*="max-w-[960px]"] > div:first-child,
#banglaqrbd-checkout-root > div > div[class*="max-w-[960px]"] > div:first-child {
    background: #fbfcfe !important;
    border-color: #e9eef5 !important;
}

#banglaqrbd-fast-checkout-root > div > div > div[class*="max-w-[960px]"] > div:last-child,
#banglaqrbd-standalone-payment-root > div > div[class*="max-w-[960px]"] > div:last-child,
#banglaqrbd-checkout-root > div > div[class*="max-w-[960px]"] > div:last-child {
    min-width: 0 !important;
    background: #fff !important;
}

#banglaqrbd-fast-checkout-root [class*="max-h-[280px]"],
#banglaqrbd-standalone-payment-root [class*="max-h-[280px]"],
#banglaqrbd-checkout-root [class*="max-h-[280px]"] {
    max-height: 345px !important;
    scrollbar-width: thin;
    scrollbar-color: #aebdce #f1f4f8;
}

#banglaqrbd-fast-checkout-root [class*="max-h-[280px]"] > div,
#banglaqrbd-standalone-payment-root [class*="max-h-[280px]"] > div,
#banglaqrbd-checkout-root [class*="max-h-[280px]"] > div {
    min-width: 0 !important;
    border-radius: 14px !important;
}

#banglaqrbd-fast-checkout-root [class*="max-w-4xl"],
#banglaqrbd-fast-checkout-root [class*="max-w-4xl"] button {
    border-radius: 11px;
}

@media (min-width: 701px) {
    #banglaqrbd-fast-checkout-root > div:has(.bqbd-method-screen) {
        width: min(860px, calc(100vw - 48px)) !important;
        max-width: 860px !important;
    }

    #banglaqrbd-fast-checkout-root > div:has(.bqbd-method-screen) > div:first-child {
        max-width: 860px !important;
    }

    .bqbd-method-screen,
    .bqbd-method-card {
        width: 100% !important;
        max-width: 820px !important;
    }
}

@media (max-width: 700px) {
    #banglaqrbd-express-container {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 12px 8px 22px !important;
        left: auto !important;
        transform: none !important;
    }

    #banglaqrbd-fast-checkout-root > div > div[class*="max-w-[960px]"],
    #banglaqrbd-fast-checkout-root > div > div > div[class*="max-w-[960px]"],
    #banglaqrbd-standalone-payment-root > div > div[class*="max-w-[960px]"],
    #banglaqrbd-checkout-root > div > div[class*="max-w-[960px]"] {
        width: 100% !important;
        max-width: 100% !important;
        min-height: 0 !important;
        border-radius: 18px !important;
    }

    #banglaqrbd-fast-checkout-root > div > div[class*="max-w-[960px]"] > form {
        padding: 18px 16px 16px !important;
    }

    #banglaqrbd-fast-checkout-root > div > div[class*="max-w-[960px]"] > div:first-child {
        gap: 10px !important;
        padding: 15px 14px !important;
    }

    #banglaqrbd-fast-checkout-root > div > div[class*="max-w-[960px]"] > div:first-child h2 {
        font-size: 16px !important;
        line-height: 1.35 !important;
        max-width: min(210px, calc(100vw - 150px)) !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    #banglaqrbd-fast-checkout-root > div > div[class*="max-w-[960px]"] > div:first-child p {
        display: none !important;
    }

    #banglaqrbd-fast-checkout-root > div > div[class*="max-w-[960px]"] > div:first-child > div:last-child {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        padding: 7px !important;
        gap: 0 !important;
        border-radius: 11px !important;
        overflow: hidden !important;
    }

    #banglaqrbd-fast-checkout-root > div > div[class*="max-w-[960px]"] > div:first-child > div:last-child span {
        display: none !important;
    }

    #banglaqrbd-fast-checkout-root [class*="text-emerald-400"] {
        width: 36px !important;
        min-width: 36px !important;
        padding: 7px !important;
        gap: 0 !important;
        font-size: 0 !important;
    }

    #banglaqrbd-fast-checkout-root [class*="text-emerald-400"] span {
        display: none !important;
    }

    #banglaqrbd-fast-checkout-root > div > div[class*="max-w-[960px]"] > form > .grid {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 16px !important;
    }

    #banglaqrbd-fast-checkout-root > div > div[class*="max-w-[960px]"] > form > .grid > div:last-child {
        padding: 15px !important;
    }

    #banglaqrbd-fast-checkout-root > div > div > div[class*="max-w-[960px]"],
    #banglaqrbd-standalone-payment-root > div > div[class*="max-w-[960px]"],
    #banglaqrbd-checkout-root > div > div[class*="max-w-[960px]"] {
        display: flex !important;
        flex-direction: column !important;
    }

    /* Phone payment step: omit the order/customer summary sidebar only here. */
    #banglaqrbd-fast-checkout-root div[class*="max-w-[960px]"]:has([class*="grid-cols-3"][class*="max-h-[280px]"]) > div:first-child,
    #banglaqrbd-standalone-payment-root div[class*="max-w-[960px]"]:has([class*="grid-cols-3"][class*="max-h-[280px]"]) > div:first-child,
    #banglaqrbd-checkout-root div[class*="max-w-[960px]"]:has([class*="grid-cols-3"][class*="max-h-[280px]"]) > div:first-child {
        display: none !important;
    }

    #banglaqrbd-fast-checkout-root > div > div > div[class*="max-w-[960px]"] > div:first-child,
    #banglaqrbd-standalone-payment-root > div > div[class*="max-w-[960px]"] > div:first-child,
    #banglaqrbd-checkout-root > div > div[class*="max-w-[960px]"] > div:first-child {
        width: 100% !important;
        max-width: none !important;
        padding: 17px !important;
        border-right: 0 !important;
        border-bottom: 1px solid #e9eef5 !important;
    }

    #banglaqrbd-fast-checkout-root > div > div > div[class*="max-w-[960px]"] > div:last-child,
    #banglaqrbd-standalone-payment-root > div > div[class*="max-w-[960px]"] > div:last-child,
    #banglaqrbd-checkout-root > div > div[class*="max-w-[960px]"] > div:last-child {
        width: 100% !important;
        padding: 17px !important;
    }

    #banglaqrbd-fast-checkout-root [class*="max-h-[280px]"],
    #banglaqrbd-standalone-payment-root [class*="max-h-[280px]"],
    #banglaqrbd-checkout-root [class*="max-h-[280px]"] {
        max-height: 280px !important;
        max-height: min(42dvh, 280px) !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        overscroll-behavior: contain;
        scrollbar-width: thin;
        scrollbar-color: #aebdce #f1f4f8;
        -webkit-overflow-scrolling: touch;
    }

    #banglaqrbd-fast-checkout-root [class*="max-h-[280px]"] > div,
    #banglaqrbd-standalone-payment-root [class*="max-h-[280px]"] > div,
    #banglaqrbd-checkout-root [class*="max-h-[280px]"] > div {
        min-height: 58px !important;
        padding: 6px !important;
        border-radius: 12px !important;
    }

    #banglaqrbd-fast-checkout-root [class*="max-h-[280px]"] img,
    #banglaqrbd-standalone-payment-root [class*="max-h-[280px]"] img,
    #banglaqrbd-checkout-root [class*="max-h-[280px]"] img {
        max-width: 72px !important;
        max-height: 23px !important;
        object-fit: contain !important;
    }

    #banglaqrbd-fast-checkout-root > div > div[class*="max-w-4xl"] {
        width: 100% !important;
        margin-bottom: 7px !important;
        padding: 0 1px !important;
    }

    #banglaqrbd-fast-checkout-root div[class*="space-y-3.5"] > div[class*="grid-cols-3"] > button {
        min-height: 31px !important;
        padding: 5px 6px !important;
        gap: 4px !important;
        font-size: 11px !important;
        line-height: 1.2 !important;
    }

    .bqbd-method-screen {
        padding: 8px 0 20px !important;
    }

    .bqbd-method-card {
        max-width: 100% !important;
    }
}

/* v70: reliable light checkout header, compact phone method forms, and a
   shorter QR payment card. These rules only change presentation. */
#banglaqrbd-fast-checkout-root > div > div[class*="max-w-[960px]"] > div:first-child[class~="bg-slate-900"],
#banglaqrbd-fast-checkout-root [class~="bg-slate-900"] {
    background: linear-gradient(115deg, #f7faff 0%, #ffffff 72%) !important;
    color: #172033 !important;
    border-color: #e7edf5 !important;
}

#banglaqrbd-fast-checkout-root [class~="bg-slate-900"] h2,
#banglaqrbd-fast-checkout-root [class~="bg-slate-900"] p {
    color: #172033 !important;
}

#banglaqrbd-fast-checkout-root [class~="bg-slate-900"] p {
    color: #64748b !important;
}

#banglaqrbd-fast-checkout-root [class~="bg-slate-900"] > div:last-child {
    background: #ecfdf5 !important;
    border-color: #d1fae5 !important;
    color: #168044 !important;
}

/* QR card: reduce its vertical footprint while retaining a clear, scannable
   code and all payment instructions. */
#banglaqrbd-fast-checkout-root div[class*="max-w-[500px]"]:has(img[alt="Bangla QR Code"]),
#banglaqrbd-standalone-payment-root div[class*="max-w-[500px]"]:has(img[alt="Bangla QR Code"]),
#banglaqrbd-checkout-root div[class*="max-w-[500px]"]:has(img[alt="Bangla QR Code"]) {
    width: min(100%, 480px) !important;
    max-width: 480px !important;
    border-radius: 20px !important;
}

#banglaqrbd-fast-checkout-root div[class*="max-w-[500px]"]:has(img[alt="Bangla QR Code"]) > div:first-child,
#banglaqrbd-standalone-payment-root div[class*="max-w-[500px]"]:has(img[alt="Bangla QR Code"]) > div:first-child,
#banglaqrbd-checkout-root div[class*="max-w-[500px]"]:has(img[alt="Bangla QR Code"]) > div:first-child {
    padding: 12px 16px 10px !important;
}

#banglaqrbd-fast-checkout-root div[class*="max-w-[500px]"]:has(img[alt="Bangla QR Code"]) > div:nth-child(2),
#banglaqrbd-standalone-payment-root div[class*="max-w-[500px]"]:has(img[alt="Bangla QR Code"]) > div:nth-child(2),
#banglaqrbd-checkout-root div[class*="max-w-[500px]"]:has(img[alt="Bangla QR Code"]) > div:nth-child(2) {
    padding: 7px 16px !important;
}

#banglaqrbd-fast-checkout-root div[class*="max-w-[500px]"]:has(img[alt="Bangla QR Code"]) > div:last-child,
#banglaqrbd-standalone-payment-root div[class*="max-w-[500px]"]:has(img[alt="Bangla QR Code"]) > div:last-child,
#banglaqrbd-checkout-root div[class*="max-w-[500px]"]:has(img[alt="Bangla QR Code"]) > div:last-child {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
    padding: 15px 20px 18px !important;
}

#banglaqrbd-fast-checkout-root div[class*="max-w-[500px]"]:has(img[alt="Bangla QR Code"]) > div:last-child > *,
#banglaqrbd-standalone-payment-root div[class*="max-w-[500px]"]:has(img[alt="Bangla QR Code"]) > div:last-child > *,
#banglaqrbd-checkout-root div[class*="max-w-[500px]"]:has(img[alt="Bangla QR Code"]) > div:last-child > * {
    margin-bottom: 0 !important;
    margin-top: 0 !important;
}

#banglaqrbd-fast-checkout-root div[class*="max-w-[500px]"]:has(img[alt="Bangla QR Code"]) > div:last-child > h3,
#banglaqrbd-standalone-payment-root div[class*="max-w-[500px]"]:has(img[alt="Bangla QR Code"]) > div:last-child > h3,
#banglaqrbd-checkout-root div[class*="max-w-[500px]"]:has(img[alt="Bangla QR Code"]) > div:last-child > h3 {
    font-size: 16px !important;
    line-height: 1.35 !important;
}

#banglaqrbd-fast-checkout-root div[class*="max-w-[500px]"]:has(img[alt="Bangla QR Code"]) img[alt="Bangla QR Code"],
#banglaqrbd-standalone-payment-root div[class*="max-w-[500px]"]:has(img[alt="Bangla QR Code"]) img[alt="Bangla QR Code"],
#banglaqrbd-checkout-root div[class*="max-w-[500px]"]:has(img[alt="Bangla QR Code"]) img[alt="Bangla QR Code"] {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
}

#banglaqrbd-fast-checkout-root div[class*="max-w-[500px]"]:has(img[alt="Bangla QR Code"]) > div:last-child > div:has(> img[alt="Bangla QR Code"]),
#banglaqrbd-standalone-payment-root div[class*="max-w-[500px]"]:has(img[alt="Bangla QR Code"]) > div:last-child > div:has(> img[alt="Bangla QR Code"]),
#banglaqrbd-checkout-root div[class*="max-w-[500px]"]:has(img[alt="Bangla QR Code"]) > div:last-child > div:has(> img[alt="Bangla QR Code"]) {
    width: 188px !important;
    height: 188px !important;
    padding: 10px !important;
    border-radius: 18px !important;
}

#banglaqrbd-fast-checkout-root div[class*="max-w-[500px]"]:has(img[alt="Bangla QR Code"]) > div:last-child > div:nth-last-child(2) img,
#banglaqrbd-standalone-payment-root div[class*="max-w-[500px]"]:has(img[alt="Bangla QR Code"]) > div:last-child > div:nth-last-child(2) img,
#banglaqrbd-checkout-root div[class*="max-w-[500px]"]:has(img[alt="Bangla QR Code"]) > div:last-child > div:nth-last-child(2) img {
    height: auto !important;
    max-height: 23px !important;
    max-width: 94px !important;
    object-fit: contain !important;
}

@media (min-width: 701px) {
    #banglaqrbd-standalone-payment:has(img[alt="Bangla QR Code"]) {
        align-items: flex-start !important;
        padding: clamp(18px, 3vh, 32px) 12px !important;
    }

    #banglaqrbd-fast-checkout-root > div:has(img[alt="Bangla QR Code"]),
    #banglaqrbd-standalone-payment-root > div:has(img[alt="Bangla QR Code"]),
    #banglaqrbd-checkout-root > div:has(img[alt="Bangla QR Code"]) {
        justify-content: flex-start !important;
        padding-top: clamp(14px, 3vh, 30px) !important;
    }
}

@media (max-width: 700px) {
    #banglaqrbd-fast-checkout-root > div > div[class*="max-w-[960px]"] > div:first-child[class~="bg-slate-900"] {
        gap: 8px !important;
        padding: 14px 15px !important;
        border-radius: 18px 18px 0 0 !important;
    }

    #banglaqrbd-fast-checkout-root > div > div[class*="max-w-[960px]"] > div:first-child[class~="bg-slate-900"] h2 {
        font-size: 16px !important;
        line-height: 1.35 !important;
    }

    #banglaqrbd-fast-checkout-root > div > div[class*="max-w-[960px]"] > div:first-child[class~="bg-slate-900"] p {
        font-size: 11px !important;
        line-height: 1.45 !important;
    }

    #banglaqrbd-fast-checkout-root > div > div[class*="max-w-[960px]"] > form input,
    #banglaqrbd-fast-checkout-root > div > div[class*="max-w-[960px]"] > form select {
        box-sizing: border-box !important;
        min-width: 0 !important;
        width: 100% !important;
        font-size: 16px !important;
    }

    .bqbd-method-card,
    .bqbd-method-card * {
        box-sizing: border-box !important;
        min-width: 0;
    }

    .bqbd-method-screen {
        padding: 7px 8px 12px !important;
    }

    .bqbd-method-card {
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 16px !important;
    }

    .bqbd-method-card > div:first-child {
        gap: 8px !important;
        padding: 14px 13px 11px !important;
    }

    .bqbd-method-card > div:first-child > div:first-child {
        gap: 8px !important;
    }

    .bqbd-method-card > div:first-child h2 {
        font-size: 14px !important;
        overflow-wrap: anywhere !important;
    }

    .bqbd-method-card > div:first-child > div:last-child > p:last-child {
        font-size: 15px !important;
        white-space: nowrap !important;
    }

    .bqbd-method-card .bqbd-method-hero {
        padding: 5px 0 3px !important;
        border-radius: 0 !important;
    }

    .bqbd-method-card .bqbd-method-heading {
        margin-bottom: 10px !important;
    }

    .bqbd-method-card .bqbd-method-title {
        font-size: 19px !important;
        line-height: 1.3 !important;
        margin-bottom: 5px !important;
    }

    .bqbd-method-card .bqbd-method-subtitle {
        font-size: 12px !important;
        line-height: 1.5 !important;
    }

    .bqbd-method-card .bqbd-method-input {
        display: block !important;
        box-sizing: border-box !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        height: 50px !important;
        padding: 0 12px !important;
        border-radius: 13px !important;
        font-size: 16px !important;
        letter-spacing: .025em !important;
    }

    .bqbd-method-card .bqbd-method-actions {
        gap: 9px !important;
        padding-top: 3px !important;
    }

    .bqbd-method-card .bqbd-method-actions > button {
        min-width: 0 !important;
        min-height: 44px !important;
        padding: 10px 8px !important;
        font-size: 14px !important;
        border-radius: 12px !important;
    }

    #banglaqrbd-fast-checkout-root div[class*="max-w-[500px]"]:has(img[alt="Bangla QR Code"]),
    #banglaqrbd-standalone-payment-root div[class*="max-w-[500px]"]:has(img[alt="Bangla QR Code"]),
    #banglaqrbd-checkout-root div[class*="max-w-[500px]"]:has(img[alt="Bangla QR Code"]) {
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 17px !important;
    }

    #banglaqrbd-fast-checkout-root div[class*="max-w-[500px]"]:has(img[alt="Bangla QR Code"]) > div:first-child,
    #banglaqrbd-standalone-payment-root div[class*="max-w-[500px]"]:has(img[alt="Bangla QR Code"]) > div:first-child,
    #banglaqrbd-checkout-root div[class*="max-w-[500px]"]:has(img[alt="Bangla QR Code"]) > div:first-child {
        padding: 10px 11px 9px !important;
    }

    #banglaqrbd-fast-checkout-root div[class*="max-w-[500px]"]:has(img[alt="Bangla QR Code"]) > div:first-child > div:last-child p:last-child,
    #banglaqrbd-standalone-payment-root div[class*="max-w-[500px]"]:has(img[alt="Bangla QR Code"]) > div:first-child > div:last-child p:last-child,
    #banglaqrbd-checkout-root div[class*="max-w-[500px]"]:has(img[alt="Bangla QR Code"]) > div:first-child > div:last-child p:last-child {
        font-size: 14px !important;
        white-space: nowrap !important;
    }

    #banglaqrbd-fast-checkout-root div[class*="max-w-[500px]"]:has(img[alt="Bangla QR Code"]) > div:nth-child(2),
    #banglaqrbd-standalone-payment-root div[class*="max-w-[500px]"]:has(img[alt="Bangla QR Code"]) > div:nth-child(2) {
        padding: 6px 11px !important;
    }

    #banglaqrbd-fast-checkout-root div[class*="max-w-[500px]"]:has(img[alt="Bangla QR Code"]) > div:last-child,
    #banglaqrbd-standalone-payment-root div[class*="max-w-[500px]"]:has(img[alt="Bangla QR Code"]) > div:last-child,
    #banglaqrbd-checkout-root div[class*="max-w-[500px]"]:has(img[alt="Bangla QR Code"]) > div:last-child {
        gap: 7px !important;
        padding: 11px 12px 13px !important;
    }

    #banglaqrbd-fast-checkout-root div[class*="max-w-[500px]"]:has(img[alt="Bangla QR Code"]) > div:last-child > h3,
    #banglaqrbd-standalone-payment-root div[class*="max-w-[500px]"]:has(img[alt="Bangla QR Code"]) > div:last-child > h3,
    #banglaqrbd-checkout-root div[class*="max-w-[500px]"]:has(img[alt="Bangla QR Code"]) > div:last-child > h3 {
        font-size: 14px !important;
        line-height: 1.3 !important;
    }

    #banglaqrbd-fast-checkout-root div[class*="max-w-[500px]"]:has(img[alt="Bangla QR Code"]) > div:last-child > div:nth-child(2),
    #banglaqrbd-standalone-payment-root div[class*="max-w-[500px]"]:has(img[alt="Bangla QR Code"]) > div:last-child > div:nth-child(2),
    #banglaqrbd-checkout-root div[class*="max-w-[500px]"]:has(img[alt="Bangla QR Code"]) > div:last-child > div:nth-child(2) {
        gap: 5px !important;
        font-size: 10px !important;
        line-height: 1.25 !important;
    }

    #banglaqrbd-fast-checkout-root div[class*="max-w-[500px]"]:has(img[alt="Bangla QR Code"]) > div:last-child > div:has(> img[alt="Bangla QR Code"]),
    #banglaqrbd-standalone-payment-root div[class*="max-w-[500px]"]:has(img[alt="Bangla QR Code"]) > div:last-child > div:has(> img[alt="Bangla QR Code"]),
    #banglaqrbd-checkout-root div[class*="max-w-[500px]"]:has(img[alt="Bangla QR Code"]) > div:last-child > div:has(> img[alt="Bangla QR Code"]) {
        width: clamp(142px, 41vw, 160px) !important;
        height: clamp(142px, 41vw, 160px) !important;
        padding: 8px !important;
        border-radius: 15px !important;
    }

    #banglaqrbd-fast-checkout-root div[class*="max-w-[500px]"]:has(img[alt="Bangla QR Code"]) > div:last-child > div:nth-last-child(2),
    #banglaqrbd-standalone-payment-root div[class*="max-w-[500px]"]:has(img[alt="Bangla QR Code"]) > div:last-child > div:nth-last-child(2),
    #banglaqrbd-checkout-root div[class*="max-w-[500px]"]:has(img[alt="Bangla QR Code"]) > div:last-child > div:nth-last-child(2) {
        padding-top: 5px !important;
    }

    #banglaqrbd-fast-checkout-root div[class*="max-w-[500px]"]:has(img[alt="Bangla QR Code"]) > div:last-child > div:nth-last-child(2) p,
    #banglaqrbd-standalone-payment-root div[class*="max-w-[500px]"]:has(img[alt="Bangla QR Code"]) > div:last-child > div:nth-last-child(2) p,
    #banglaqrbd-checkout-root div[class*="max-w-[500px]"]:has(img[alt="Bangla QR Code"]) > div:last-child > div:nth-last-child(2) p {
        margin-bottom: 4px !important;
    }

    #banglaqrbd-fast-checkout-root div[class*="max-w-[500px]"]:has(img[alt="Bangla QR Code"]) > div:last-child > div:last-child button,
    #banglaqrbd-standalone-payment-root div[class*="max-w-[500px]"]:has(img[alt="Bangla QR Code"]) > div:last-child > div:last-child button,
    #banglaqrbd-checkout-root div[class*="max-w-[500px]"]:has(img[alt="Bangla QR Code"]) > div:last-child > div:last-child button {
        min-height: 43px !important;
        padding: 8px 12px !important;
        border-radius: 11px !important;
        font-size: 14px !important;
    }
}

/* v71: simplified mobile checkout form and a single-line, light merchant bar. */
#banglaqrbd-express-container #banglaqrbd-fast-checkout-root > div > div[class*="max-w-[960px]"] > div:first-child,
#banglaqrbd-fast-checkout-root > div > div[class*="max-w-[960px]"] > div:first-child {
    background: linear-gradient(110deg, #f4f8ff 0%, #ffffff 78%) !important;
    color: #172033 !important;
    border-color: #e5ecf5 !important;
}

#banglaqrbd-express-container #banglaqrbd-fast-checkout-root > div > div[class*="max-w-[960px]"] > div:first-child h2,
#banglaqrbd-fast-checkout-root > div > div[class*="max-w-[960px]"] > div:first-child h2 {
    color: #172033 !important;
}

#banglaqrbd-express-container #banglaqrbd-fast-checkout-root > div > div[class*="max-w-[960px]"] > div:first-child p,
#banglaqrbd-fast-checkout-root > div > div[class*="max-w-[960px]"] > div:first-child p {
    color: #64748b !important;
}

@media (max-width: 767px) {
    #banglaqrbd-express-container #banglaqrbd-fast-checkout-root > div > div[class*="max-w-[960px]"] {
        width: calc(100% - 12px) !important;
        max-width: 480px !important;
        margin: 7px auto 14px !important;
        border-radius: 18px !important;
        box-shadow: 0 10px 28px rgba(20, 45, 80, .08) !important;
    }

    #banglaqrbd-express-container #banglaqrbd-fast-checkout-root > div > div[class*="max-w-[960px]"] > div:first-child {
        min-height: 62px !important;
        gap: 8px !important;
        padding: 10px 13px !important;
        border-radius: 18px 18px 0 0 !important;
        align-items: center !important;
    }

    #banglaqrbd-express-container #banglaqrbd-fast-checkout-root > div > div[class*="max-w-[960px]"] > div:first-child > div:first-child {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        gap: 9px !important;
    }

    #banglaqrbd-express-container #banglaqrbd-fast-checkout-root > div > div[class*="max-w-[960px]"] > div:first-child > div:first-child > a {
        flex: 0 0 36px !important;
    }

    #banglaqrbd-express-container #banglaqrbd-fast-checkout-root > div > div[class*="max-w-[960px]"] > div:first-child > div:first-child > a > div {
        width: 36px !important;
        height: 36px !important;
        border-radius: 11px !important;
    }

    #banglaqrbd-express-container #banglaqrbd-fast-checkout-root > div > div[class*="max-w-[960px]"] > div:first-child h2 {
        max-width: min(260px, calc(100vw - 130px)) !important;
        margin: 0 !important;
        color: #172033 !important;
        font-size: clamp(12px, 3.4vw, 14px) !important;
        line-height: 1.25 !important;
        letter-spacing: -.015em !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    #banglaqrbd-express-container #banglaqrbd-fast-checkout-root > div > div[class*="max-w-[960px]"] > div:first-child > div:first-child > div > p {
        display: none !important;
    }

    #banglaqrbd-express-container #banglaqrbd-fast-checkout-root > div > div[class*="max-w-[960px]"] > div:first-child > div:last-child {
        flex: 0 0 30px !important;
        width: 30px !important;
        height: 30px !important;
        min-width: 30px !important;
        padding: 6px !important;
        gap: 0 !important;
        border-radius: 10px !important;
        background: #eaf8f0 !important;
        border-color: #d4efdf !important;
        color: #168044 !important;
        overflow: hidden !important;
    }

    #banglaqrbd-express-container #banglaqrbd-fast-checkout-root > div > div[class*="max-w-[960px]"] > div:first-child > div:last-child span {
        display: none !important;
    }

    #banglaqrbd-express-container #banglaqrbd-fast-checkout-root > div > div[class*="max-w-[960px]"] > form {
        padding: 13px 14px 15px !important;
    }

    #banglaqrbd-express-container #banglaqrbd-fast-checkout-root > div > div[class*="max-w-[960px]"] > form > .grid {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 11px !important;
    }

    #banglaqrbd-express-container #banglaqrbd-fast-checkout-root > div > div[class*="max-w-[960px]"] > form > .grid > div:first-child {
        gap: 0 !important;
    }

    #banglaqrbd-express-container #banglaqrbd-fast-checkout-root > div > div[class*="max-w-[960px]"] > form > .grid > div:first-child > :not(:first-child) {
        margin-top: 10px !important;
    }

    #banglaqrbd-express-container #banglaqrbd-fast-checkout-root > div > div[class*="max-w-[960px]"] form label {
        margin-bottom: 4px !important;
        color: #59677c !important;
        font-size: 11px !important;
        line-height: 1.35 !important;
    }

    #banglaqrbd-express-container #banglaqrbd-fast-checkout-root > div > div[class*="max-w-[960px]"] form div[class*="flex items-center w-full bg-white"] {
        min-height: 43px !important;
        padding: 0 10px !important;
        gap: 0 !important;
        border-color: #e1e8f1 !important;
        border-radius: 11px !important;
        background: #fbfcfe !important;
    }

    #banglaqrbd-express-container #banglaqrbd-fast-checkout-root > div > div[class*="max-w-[960px]"] form div[class*="flex items-center w-full bg-white"] svg {
        width: 17px !important;
        height: 17px !important;
        margin-right: 8px !important;
    }

    #banglaqrbd-express-container #banglaqrbd-fast-checkout-root > div > div[class*="max-w-[960px]"] form input,
    #banglaqrbd-express-container #banglaqrbd-fast-checkout-root > div > div[class*="max-w-[960px]"] form select {
        box-sizing: border-box !important;
        min-width: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
        height: 28px !important;
        padding: 0 !important;
        font-size: 13px !important;
        line-height: 1.3 !important;
    }

    #banglaqrbd-express-container #banglaqrbd-fast-checkout-root > div > div[class*="max-w-[960px]"] form > .grid > div:first-child > div[class*="grid-cols-1"][class*="sm:grid-cols-2"],
    #banglaqrbd-fast-checkout-root > div > div[class*="max-w-[960px]"] form > .grid > div:first-child > div[class*="grid-cols-1"][class*="sm:grid-cols-2"] {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 9px !important;
    }

    #banglaqrbd-express-container #banglaqrbd-fast-checkout-root > div > div[class*="max-w-[960px]"] form > .grid > div:first-child > div[class*="bg-slate-50"] > div[class*="grid-cols-1"][class*="sm:grid-cols-3"],
    #banglaqrbd-fast-checkout-root > div > div[class*="max-w-[960px]"] form > .grid > div:first-child > div[class*="bg-slate-50"] > div[class*="grid-cols-1"][class*="sm:grid-cols-3"] {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 9px !important;
    }

    #banglaqrbd-express-container #banglaqrbd-fast-checkout-root > div > div[class*="max-w-[960px]"] form > .grid > div:first-child > div[class*="bg-slate-50"] > div[class*="grid-cols-1"][class*="sm:grid-cols-3"] > div:last-child,
    #banglaqrbd-fast-checkout-root > div > div[class*="max-w-[960px]"] form > .grid > div:first-child > div[class*="bg-slate-50"] > div[class*="grid-cols-1"][class*="sm:grid-cols-3"] > div:last-child {
        grid-column: 1 / -1 !important;
    }

    #banglaqrbd-express-container #banglaqrbd-fast-checkout-root > div > div[class*="max-w-[960px]"] form > .grid > div:first-child > div:last-child[class*="grid-cols-1"][class*="sm:grid-cols-3"],
    #banglaqrbd-fast-checkout-root > div > div[class*="max-w-[960px]"] form > .grid > div:first-child > div:last-child[class*="grid-cols-1"][class*="sm:grid-cols-3"] {
        grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr) !important;
        gap: 9px !important;
    }

    #banglaqrbd-express-container #banglaqrbd-fast-checkout-root > div > div[class*="max-w-[960px]"] form > .grid > div:first-child > div:last-child[class*="grid-cols-1"][class*="sm:grid-cols-3"] > div:last-child,
    #banglaqrbd-fast-checkout-root > div > div[class*="max-w-[960px]"] form > .grid > div:first-child > div:last-child[class*="grid-cols-1"][class*="sm:grid-cols-3"] > div:last-child {
        grid-column: 2 !important;
    }

    #banglaqrbd-express-container #banglaqrbd-fast-checkout-root > div > div[class*="max-w-[960px]"] > form > .grid > div:last-child {
        padding: 13px !important;
        border-radius: 15px !important;
    }

    #banglaqrbd-express-container #banglaqrbd-fast-checkout-root > div > div[class*="max-w-[960px]"] > form > .grid > div:last-child h3 {
        font-size: 14px !important;
    }

    #banglaqrbd-express-container #banglaqrbd-fast-checkout-root > div > div[class*="max-w-[960px]"] form input[placeholder="email@example.com"]::placeholder,
    #banglaqrbd-express-container #banglaqrbd-fast-checkout-root > div > div[class*="max-w-[960px]"] form input[placeholder="কোনো বিশেষ নির্দেশনা থাকলে লিখুন"]::placeholder {
        font-size: 11px !important;
    }
}
/* Cross-document fade for the checkout-to-payment redirect. */
@view-transition {
    navigation: auto;
}

::view-transition-old(root) {
    animation: bqbd-page-leave 140ms ease-in both;
}

::view-transition-new(root) {
    animation: bqbd-page-enter 240ms cubic-bezier(.2, .75, .25, 1) both;
}

@keyframes bqbd-page-leave {
    to { opacity: 0; }
}

@keyframes bqbd-page-enter {
    from { opacity: 0; transform: translateY(7px); }
    to { opacity: 1; transform: translateY(0); }
}

/* QR opens above the checkout/payment card and closes on a second tap. */
.bqbd-qr-zoom-backdrop {
    position: fixed;
    z-index: 2147483000;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px 16px;
    box-sizing: border-box;
    background: rgba(13, 23, 42, .78);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    animation: bqbd-qr-backdrop-in 160ms ease-out both;
    cursor: zoom-out;
    touch-action: manipulation;
}

.bqbd-qr-zoom-card {
    position: relative;
    display: grid;
    place-items: center;
    width: min(88vw, 480px, calc(100vh - 64px));
    aspect-ratio: 1;
    padding: 12px;
    box-sizing: border-box;
    border: 2px solid #e2e8f0;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .32);
    animation: bqbd-qr-card-in 190ms cubic-bezier(.2, .75, .25, 1) both;
}

.bqbd-qr-zoom-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    cursor: zoom-out;
    -webkit-user-select: none;
    user-select: none;
}

.bqbd-qr-zoom-close {
    position: absolute;
    top: -13px;
    right: -13px;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #172033;
    color: #fff;
    box-shadow: 0 5px 16px rgba(0, 0, 0, .24);
    font: 700 25px/1 system-ui, sans-serif;
    cursor: pointer;
}

.bqbd-qr-zoom-close:focus-visible {
    outline: 3px solid #60a5fa;
    outline-offset: 3px;
}

@keyframes bqbd-qr-backdrop-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes bqbd-qr-card-in {
    from { opacity: 0; transform: scale(.94); }
    to { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    ::view-transition-old(root),
    ::view-transition-new(root),
    .bqbd-qr-zoom-backdrop,
    .bqbd-qr-zoom-card {
        animation-duration: 1ms !important;
    }
}

/* Hide the redundant checkout toolbar while the inline payment stage is open. */
#banglaqrbd-fast-checkout-root > div > div[style*="max-width: 920px"] > div[class*="max-w-4xl mb-3"] {
    display: none !important;
}

/* Mobile payment-method screens: keep the number form near the top of the
   viewport and use the same Bengali typeface as the checkout controls. */
.bqbd-mobile-language-toggle {
    display: none !important;
}

@media (max-width: 700px) {
    .bqbd-method-screen,
    .bqbd-method-screen * {
        font-family: "Hind Siliguri", sans-serif !important;
    }

    .bqbd-method-screen {
        justify-content: flex-start !important;
        align-items: center !important;
        padding: 16px 8px 14px !important;
    }

    .bqbd-mobile-language-toggle {
        display: inline-flex !important;
    }
}

/* Larger, clearer payment confirmation controls for QR and global methods. */
.bqbd-confirm-card {
    border-top: 4px solid #1473e6 !important;
    box-shadow: 0 24px 60px rgba(15, 35, 70, .14), 0 4px 14px rgba(15, 35, 70, .06) !important;
}

.bqbd-confirm-header {
    min-height: 76px;
    background: linear-gradient(110deg, #f5f9ff 0%, #ffffff 74%);
}

.bqbd-confirm-title {
    font-family: "Hind Siliguri", sans-serif !important;
    font-size: 22px !important;
    line-height: 1.35 !important;
    letter-spacing: -.01em;
}

.bqbd-confirm-body {
    padding: 28px 30px 30px !important;
}

.bqbd-confirm-copy {
    color: #475569 !important;
    font-family: "Hind Siliguri", sans-serif !important;
    font-size: 17px !important;
    line-height: 1.65 !important;
}

.bqbd-confirm-label {
    display: block;
    margin-bottom: 9px !important;
    color: #1e293b !important;
    font-family: "Hind Siliguri", sans-serif !important;
    font-size: 16px !important;
    line-height: 1.55 !important;
}

.bqbd-confirm-input {
    box-sizing: border-box !important;
    min-height: 58px !important;
    padding: 14px 16px !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 14px !important;
    color: #0f172a !important;
    font-size: 17px !important;
    line-height: 1.4 !important;
}

.bqbd-confirm-input::placeholder {
    color: #94a3b8 !important;
    opacity: 1;
}

.bqbd-confirm-input:focus {
    border-color: #1473e6 !important;
    box-shadow: 0 0 0 4px rgba(20, 115, 230, .13) !important;
    outline: none !important;
}

.bqbd-confirm-error,
.bqbd-crypto-trx-error {
    font-family: "Hind Siliguri", sans-serif !important;
    font-size: 15px !important;
    line-height: 1.55 !important;
}

.bqbd-confirm-submit {
    min-height: 58px !important;
    border-radius: 14px !important;
    font-family: "Hind Siliguri", sans-serif !important;
    font-size: 17px !important;
    letter-spacing: .01em;
    box-shadow: 0 8px 18px rgba(0, 102, 255, .22) !important;
}

.bqbd-crypto-trx-form {
    padding: 18px !important;
    border-color: #dbe5f1 !important;
    background: linear-gradient(145deg, #f8fbff, #f1f6fc) !important;
}

.bqbd-crypto-trx-label {
    color: #1e293b !important;
    font-family: "Hind Siliguri", sans-serif !important;
    font-size: 16px !important;
    line-height: 1.5 !important;
}

.bqbd-crypto-trx-input {
    min-height: 52px !important;
    padding: 12px 14px !important;
    font-size: 16px !important;
}

.bqbd-crypto-trx-submit {
    min-height: 52px !important;
    padding: 11px 18px !important;
    font-family: "Hind Siliguri", sans-serif !important;
    font-size: 15px !important;
}

.bqbd-crypto-prompt {
    padding: 16px 18px !important;
    color: #1e293b !important;
    font-family: "Hind Siliguri", sans-serif !important;
    font-size: 16px !important;
    line-height: 1.6 !important;
}

.bqbd-payment-waiting {
    min-height: 58px;
    padding: 13px 16px !important;
    font-family: "Hind Siliguri", sans-serif !important;
    font-size: 15px !important;
    line-height: 1.5 !important;
}

.bqbd-auto-note {
    font-family: "Hind Siliguri", sans-serif !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
}

@media (max-width: 640px) {
    .bqbd-confirm-screen {
        padding: 12px !important;
    }

    .bqbd-confirm-card {
        border-radius: 22px !important;
    }

    .bqbd-confirm-header {
        min-height: 68px;
        padding: 17px 18px !important;
    }

    .bqbd-confirm-title {
        font-size: 20px !important;
    }

    .bqbd-confirm-body {
        padding: 20px 18px 22px !important;
        gap: 17px !important;
    }

    .bqbd-confirm-copy {
        font-size: 16px !important;
    }

    .bqbd-confirm-label,
    .bqbd-crypto-trx-label {
        font-size: 15px !important;
    }

    .bqbd-confirm-input {
        min-height: 56px !important;
        font-size: 16px !important;
    }

    .bqbd-confirm-submit {
        min-height: 56px !important;
        font-size: 16px !important;
    }

    .bqbd-crypto-prompt {
        padding: 14px !important;
        font-size: 15px !important;
    }

    .bqbd-payment-waiting {
        min-height: 56px;
        font-size: 14px !important;
    }

    .bqbd-auto-note {
        font-size: 13px !important;
    }

    .bqbd-crypto-trx-form {
        padding: 15px !important;
    }

    .bqbd-crypto-trx-controls {
        align-items: stretch !important;
        flex-direction: column !important;
    }

    .bqbd-crypto-trx-input,
    .bqbd-crypto-trx-submit {
        width: 100% !important;
        min-height: 52px !important;
        box-sizing: border-box !important;
        font-size: 15px !important;
    }
}
