/* Deposit chooser v3: isolated responsive dialog for desktop and mobile. */
:root {
    --deposit-overlay: rgba(8, 15, 31, .66);
    --deposit-surface: #ffffff;
    --deposit-text: #0f172a;
    --deposit-muted: #475569;
    --deposit-border: #e2e8f0;
    --deposit-blue: #2563eb;
    --deposit-blue-dark: #1d4ed8;
    --deposit-green: #16a34a;
    --deposit-green-dark: #15803d;
    --deposit-focus: #2563eb;
}

html body.deposit-chooser-open {
    overflow: hidden !important;
}

/* Floating utilities must never compete with a payment choice dialog. */
html body.deposit-chooser-open #sac-wrap,
html body.deposit-chooser-open #sac-panel,
html body.deposit-chooser-open #home-live-toast,
html body.deposit-chooser-open .fbk-tabs,
html body.deposit-chooser-open #sa-event-wrap,
html body.deposit-chooser-open #myBtn {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

html body.mobile-app-enabled.deposit-chooser-open .mobile-sheet-backdrop.mobile-sheet-backdrop {
    display: block !important;
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    min-width: 100vw !important;
    max-width: none !important;
    height: 100vh !important;
    height: 100dvh !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
    max-height: none !important;
    margin: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    background: var(--deposit-overlay) !important;
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    z-index: 1000010 !important;
}

html body .mobile-action-sheet.deposit-chooser[data-mobile-sheet-panel="deposit"] {
    box-sizing: border-box !important;
    color: var(--deposit-text) !important;
    background: var(--deposit-surface) !important;
    background-image: none !important;
    border: 1px solid rgba(148, 163, 184, .28) !important;
    box-shadow: 0 28px 80px rgba(15, 23, 42, .28) !important;
    font-family: inherit !important;
    isolation: isolate;
}

html body.deposit-chooser-open .mobile-action-sheet.deposit-chooser[data-mobile-sheet-panel="deposit"].is-open {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    z-index: 1000020 !important;
}

html body .mobile-action-sheet.deposit-chooser[data-mobile-sheet-panel="deposit"] .mobile-sheet-header {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 16px !important;
    min-height: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    background-image: none !important;
    border: 0 !important;
    box-shadow: none !important;
}

html body .mobile-action-sheet.deposit-chooser[data-mobile-sheet-panel="deposit"] .deposit-chooser-heading {
    min-width: 0;
    background: transparent !important;
}

html body .mobile-action-sheet.deposit-chooser[data-mobile-sheet-panel="deposit"] .deposit-chooser-heading h3 {
    margin: 0 !important;
    color: var(--deposit-text) !important;
    -webkit-text-fill-color: var(--deposit-text) !important;
    font-size: 20px !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
    letter-spacing: -.025em !important;
    text-transform: none !important;
}

html body .mobile-action-sheet.deposit-chooser[data-mobile-sheet-panel="deposit"] .deposit-chooser-heading p {
    margin: 5px 0 0 !important;
    color: var(--deposit-muted) !important;
    -webkit-text-fill-color: var(--deposit-muted) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1.45 !important;
}

html body .mobile-action-sheet.deposit-chooser[data-mobile-sheet-panel="deposit"] .mobile-sheet-close {
    appearance: none !important;
    -webkit-appearance: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 44px !important;
    width: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
    margin: -6px -6px 0 0 !important;
    padding: 0 !important;
    color: #475569 !important;
    -webkit-text-fill-color: #475569 !important;
    background: #f1f5f9 !important;
    background-image: none !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 14px !important;
    box-shadow: none !important;
    cursor: pointer !important;
    transition: color .18s ease, background-color .18s ease, border-color .18s ease !important;
}

html body .mobile-action-sheet.deposit-chooser[data-mobile-sheet-panel="deposit"] .mobile-sheet-close::before,
html body .mobile-action-sheet.deposit-chooser[data-mobile-sheet-panel="deposit"] .mobile-sheet-close::after,
html body .mobile-action-sheet.deposit-chooser[data-mobile-sheet-panel="deposit"] .mobile-sheet-close i {
    display: none !important;
    content: none !important;
}

html body .mobile-action-sheet.deposit-chooser[data-mobile-sheet-panel="deposit"] .mobile-sheet-close svg {
    display: block !important;
    width: 20px !important;
    height: 20px !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 2.2 !important;
    stroke-linecap: round !important;
}

html body .mobile-action-sheet.deposit-chooser[data-mobile-sheet-panel="deposit"] .mobile-sheet-close:hover {
    color: #0f172a !important;
    background: #e2e8f0 !important;
    border-color: #cbd5e1 !important;
}

html body .mobile-action-sheet.deposit-chooser[data-mobile-sheet-panel="deposit"] .mobile-sheet-close:focus-visible,
html body .mobile-action-sheet.deposit-chooser[data-mobile-sheet-panel="deposit"] .deposit-option:focus-visible {
    outline: 3px solid rgba(37, 99, 235, .32) !important;
    outline-offset: 3px !important;
}

html body .mobile-action-sheet.deposit-chooser[data-mobile-sheet-panel="deposit"] .mobile-sheet-body {
    display: grid !important;
    min-width: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    background-image: none !important;
    overflow: visible !important;
}

html body .mobile-action-sheet.deposit-chooser[data-mobile-sheet-panel="deposit"] .deposit-option {
    box-sizing: border-box !important;
    position: relative !important;
    display: flex !important;
    min-width: 0 !important;
    height: auto !important;
    color: var(--deposit-text) !important;
    -webkit-text-fill-color: var(--deposit-text) !important;
    text-decoration: none !important;
    border-radius: 18px !important;
    cursor: pointer !important;
    overflow: visible !important;
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease, transform .2s ease !important;
}

html body .mobile-action-sheet.deposit-chooser[data-mobile-sheet-panel="deposit"] .deposit-option-card {
    background: #f5f8ff !important;
    background-image: none !important;
    border: 1px solid #dbe7ff !important;
    box-shadow: 0 8px 24px rgba(37, 99, 235, .08) !important;
}

html body .mobile-action-sheet.deposit-chooser[data-mobile-sheet-panel="deposit"] .deposit-option-bank {
    background: #f3fbf6 !important;
    background-image: none !important;
    border: 1px solid #d6f0df !important;
    box-shadow: 0 8px 24px rgba(22, 163, 74, .08) !important;
}

html body .mobile-action-sheet.deposit-chooser[data-mobile-sheet-panel="deposit"] .deposit-option > * {
    background-color: transparent !important;
    background-image: none !important;
}

html body .mobile-action-sheet.deposit-chooser[data-mobile-sheet-panel="deposit"] .mobile-sheet-link-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}

html body .mobile-action-sheet.deposit-chooser[data-mobile-sheet-panel="deposit"] .deposit-option-card .mobile-sheet-link-icon {
    background: linear-gradient(135deg, var(--deposit-blue), var(--deposit-blue-dark)) !important;
    box-shadow: 0 10px 24px rgba(37, 99, 235, .24) !important;
}

html body .mobile-action-sheet.deposit-chooser[data-mobile-sheet-panel="deposit"] .deposit-option-bank .mobile-sheet-link-icon {
    background: linear-gradient(135deg, var(--deposit-green), var(--deposit-green-dark)) !important;
    box-shadow: 0 10px 24px rgba(22, 163, 74, .22) !important;
}

html body .mobile-action-sheet.deposit-chooser[data-mobile-sheet-panel="deposit"] .mobile-sheet-link-icon svg {
    display: block !important;
    width: 27px !important;
    height: 27px !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 1.9 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
}

html body .mobile-action-sheet.deposit-chooser[data-mobile-sheet-panel="deposit"] .mobile-sheet-link-copy {
    display: flex !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
    justify-content: center !important;
    min-width: 0 !important;
    background: transparent !important;
}

html body .mobile-action-sheet.deposit-chooser[data-mobile-sheet-panel="deposit"] .mobile-sheet-link-copy strong {
    display: block !important;
    margin: 0 !important;
    color: var(--deposit-text) !important;
    -webkit-text-fill-color: var(--deposit-text) !important;
    font-size: 16px !important;
    font-weight: 750 !important;
    line-height: 1.35 !important;
    letter-spacing: -.015em !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
}

html body .mobile-action-sheet.deposit-chooser[data-mobile-sheet-panel="deposit"] .mobile-sheet-link-copy small {
    display: block !important;
    margin: 4px 0 0 !important;
    color: var(--deposit-muted) !important;
    -webkit-text-fill-color: var(--deposit-muted) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    white-space: normal !important;
    overflow: visible !important;
}

html body .mobile-action-sheet.deposit-chooser[data-mobile-sheet-panel="deposit"] .mobile-sheet-link-arrow {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 36px !important;
    width: 36px !important;
    height: 36px !important;
    margin: 0 !important;
    color: #64748b !important;
    -webkit-text-fill-color: #64748b !important;
    background: rgba(255, 255, 255, .78) !important;
    border: 1px solid rgba(148, 163, 184, .24) !important;
    border-radius: 12px !important;
}

html body .mobile-action-sheet.deposit-chooser[data-mobile-sheet-panel="deposit"] .mobile-sheet-link-arrow svg {
    width: 18px !important;
    height: 18px !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 2.2 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
}

@media (max-width: 767px) {
    html body.deposit-chooser-open .mobile-action-sheet.deposit-chooser[data-mobile-sheet-panel="deposit"].is-open {
        position: fixed !important;
        inset: auto 12px calc(74px + env(safe-area-inset-bottom, 0px)) 12px !important;
        width: auto !important;
        max-width: none !important;
        height: auto !important;
        max-height: calc(100dvh - 98px - env(safe-area-inset-bottom, 0px)) !important;
        margin: 0 !important;
        padding: 0 !important;
        border-radius: 24px !important;
        transform: translateY(0) !important;
    }

    html body .mobile-action-sheet.deposit-chooser[data-mobile-sheet-panel="deposit"] .mobile-sheet-header {
        padding: 18px 18px 12px !important;
    }

    html body .mobile-action-sheet.deposit-chooser[data-mobile-sheet-panel="deposit"] .mobile-sheet-body {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 10px !important;
        padding: 4px 14px 16px !important;
    }

    html body .mobile-action-sheet.deposit-chooser[data-mobile-sheet-panel="deposit"] .deposit-option {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 13px !important;
        min-height: 88px !important;
        padding: 13px !important;
        text-align: left !important;
    }

    html body .mobile-action-sheet.deposit-chooser[data-mobile-sheet-panel="deposit"] .mobile-sheet-link-icon {
        width: 52px !important;
        min-width: 52px !important;
        height: 52px !important;
        border-radius: 15px !important;
    }
}

@media (max-width: 359px) {
    html body.deposit-chooser-open .mobile-action-sheet.deposit-chooser[data-mobile-sheet-panel="deposit"].is-open {
        right: 8px !important;
        left: 8px !important;
    }

    html body .mobile-action-sheet.deposit-chooser[data-mobile-sheet-panel="deposit"] .mobile-sheet-header {
        padding: 16px 14px 10px !important;
    }

    html body .mobile-action-sheet.deposit-chooser[data-mobile-sheet-panel="deposit"] .deposit-chooser-heading h3 {
        font-size: 18px !important;
    }

    html body .mobile-action-sheet.deposit-chooser[data-mobile-sheet-panel="deposit"] .deposit-chooser-heading p,
    html body .mobile-action-sheet.deposit-chooser[data-mobile-sheet-panel="deposit"] .mobile-sheet-link-copy small {
        font-size: 13px !important;
    }

    html body .mobile-action-sheet.deposit-chooser[data-mobile-sheet-panel="deposit"] .mobile-sheet-body {
        padding: 4px 10px 12px !important;
    }

    html body .mobile-action-sheet.deposit-chooser[data-mobile-sheet-panel="deposit"] .deposit-option {
        gap: 10px !important;
        min-height: 82px !important;
        padding: 11px !important;
    }

    html body .mobile-action-sheet.deposit-chooser[data-mobile-sheet-panel="deposit"] .mobile-sheet-link-icon {
        width: 46px !important;
        min-width: 46px !important;
        height: 46px !important;
        border-radius: 13px !important;
    }

    html body .mobile-action-sheet.deposit-chooser[data-mobile-sheet-panel="deposit"] .mobile-sheet-link-copy strong {
        font-size: 15px !important;
    }

    html body .mobile-action-sheet.deposit-chooser[data-mobile-sheet-panel="deposit"] .mobile-sheet-link-arrow {
        flex-basis: 32px !important;
        width: 32px !important;
        height: 32px !important;
    }
}

@media (min-width: 768px) {
    html body.deposit-chooser-open .mobile-action-sheet.deposit-chooser[data-mobile-sheet-panel="deposit"].is-open {
        position: fixed !important;
        inset: 50% auto auto 50% !important;
        width: min(640px, calc(100vw - 48px)) !important;
        max-width: 640px !important;
        height: auto !important;
        max-height: calc(100dvh - 48px) !important;
        margin: 0 !important;
        padding: 0 !important;
        border-radius: 26px !important;
        transform: translate(-50%, -50%) !important;
    }

    html body .mobile-action-sheet.deposit-chooser[data-mobile-sheet-panel="deposit"] .mobile-sheet-header {
        padding: 28px 28px 18px !important;
    }

    html body .mobile-action-sheet.deposit-chooser[data-mobile-sheet-panel="deposit"] .deposit-chooser-heading h3 {
        font-size: 25px !important;
        line-height: 1.2 !important;
    }

    html body .mobile-action-sheet.deposit-chooser[data-mobile-sheet-panel="deposit"] .deposit-chooser-heading p {
        margin-top: 6px !important;
        font-size: 15px !important;
    }

    html body .mobile-action-sheet.deposit-chooser[data-mobile-sheet-panel="deposit"] .mobile-sheet-body {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 16px !important;
        padding: 4px 28px 28px !important;
    }

    html body .mobile-action-sheet.deposit-chooser[data-mobile-sheet-panel="deposit"] .deposit-option {
        flex-direction: column !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        gap: 0 !important;
        min-height: 206px !important;
        padding: 24px !important;
        text-align: left !important;
    }

    html body .mobile-action-sheet.deposit-chooser[data-mobile-sheet-panel="deposit"] .mobile-sheet-link-icon {
        width: 64px !important;
        min-width: 64px !important;
        height: 64px !important;
        border-radius: 18px !important;
    }

    html body .mobile-action-sheet.deposit-chooser[data-mobile-sheet-panel="deposit"] .mobile-sheet-link-icon svg {
        width: 31px !important;
        height: 31px !important;
    }

    html body .mobile-action-sheet.deposit-chooser[data-mobile-sheet-panel="deposit"] .mobile-sheet-link-copy {
        display: block !important;
        margin-top: 18px !important;
        padding-right: 30px !important;
    }

    html body .mobile-action-sheet.deposit-chooser[data-mobile-sheet-panel="deposit"] .mobile-sheet-link-copy strong {
        font-size: 18px !important;
        line-height: 1.3 !important;
    }

    html body .mobile-action-sheet.deposit-chooser[data-mobile-sheet-panel="deposit"] .mobile-sheet-link-copy small {
        margin-top: 7px !important;
        font-size: 14px !important;
        line-height: 1.5 !important;
    }

    html body .mobile-action-sheet.deposit-chooser[data-mobile-sheet-panel="deposit"] .mobile-sheet-link-arrow {
        position: absolute !important;
        right: 18px !important;
        bottom: 18px !important;
    }

    html body .mobile-action-sheet.deposit-chooser[data-mobile-sheet-panel="deposit"] .deposit-option:hover {
        transform: translateY(-2px) !important;
    }

    html body .mobile-action-sheet.deposit-chooser[data-mobile-sheet-panel="deposit"] .deposit-option-card:hover {
        background: #eef4ff !important;
        border-color: #bcd2ff !important;
        box-shadow: 0 16px 34px rgba(37, 99, 235, .14) !important;
    }

    html body .mobile-action-sheet.deposit-chooser[data-mobile-sheet-panel="deposit"] .deposit-option-bank:hover {
        background: #ecf9f1 !important;
        border-color: #bce4ca !important;
        box-shadow: 0 16px 34px rgba(22, 163, 74, .13) !important;
    }
}

/* The legacy theme matches every class containing "mobile-sheet". Reset
   decorative surfaces on text wrappers so only the actual cards cast shadows. */
html body #deposit-chooser .mobile-sheet-link-copy,
html body #deposit-chooser .mobile-sheet-link-copy * {
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    filter: none !important;
    text-align: left !important;
}

html body #deposit-chooser .mobile-sheet-link-copy {
    align-items: stretch !important;
    align-self: center !important;
}

html body #deposit-chooser .deposit-option-card {
    background: #f5f8ff !important;
    border-color: #dbe7ff !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, .06) !important;
}

html body #deposit-chooser .deposit-option-bank {
    background: #f0faf4 !important;
    border-color: #d2ebdb !important;
    box-shadow: 0 4px 14px rgba(22, 163, 74, .06) !important;
}

html body #deposit-chooser .mobile-sheet-link-arrow {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

@media (min-width: 768px) {
    html body #deposit-chooser .mobile-sheet-link-copy {
        align-self: stretch !important;
    }
    html body #deposit-chooser .deposit-option-card:hover {
        background: #edf3ff !important;
        border-color: #bcd2ff !important;
    }
    html body #deposit-chooser .deposit-option-bank:hover {
        background: #e7f7ed !important;
        border-color: #bce4ca !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    html body .mobile-action-sheet.deposit-chooser[data-mobile-sheet-panel="deposit"] *,
    html body .mobile-action-sheet.deposit-chooser[data-mobile-sheet-panel="deposit"] *::before,
    html body .mobile-action-sheet.deposit-chooser[data-mobile-sheet-panel="deposit"] *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}
