.bank-checkout,
.bank-checkout * {
    box-sizing: border-box;
}

.bank-checkout {
    --ms-navy: #0d2137;
    --ms-blue: #0864d9;
    --ms-orange: #ff8e2b;
    --ms-ink: #172033;
    --ms-muted: #667085;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    padding: clamp(22px, 3vw, 28px);
    overflow: hidden;
    border: 1px solid #e8edf4;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(13, 33, 55, .14);
    color: var(--ms-ink);
    font-family: Rubik, Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    text-align: left;
}

.bank-checkout__intro {
    max-width: 390px;
    margin: 0 auto 22px;
    text-align: center;
}

.bank-checkout__intro p {
    color: #5f6670;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.65;
}

.bank-checkout__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    color: var(--ms-blue);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.bank-checkout h2 {
    margin: 0 0 8px;
    color: var(--ms-navy);
    font-size: clamp(25px, 4vw, 34px);
    line-height: 1.12;
}

.bank-checkout p {
    margin: 0;
}

.bank-checkout__intro p,
.bank-checkout__success > p {
    color: var(--ms-muted);
    font-size: 14px;
    line-height: 1.65;
}

.bank-checkout__field {
    margin-bottom: 15px;
}

.bank-checkout__field label {
    display: block;
    margin-bottom: 7px;
    color: #344054;
    font-size: 13px;
    font-weight: 750;
}

.bank-checkout__field label span {
    color: #e04444;
}

.bank-checkout__field label small {
    color: #98a2b3;
    font-weight: 500;
}

.bank-checkout__field input,
.bank-checkout__field select {
    width: 100%;
    min-height: 48px;
    margin: 0;
    padding: 0 14px;
    border: 1.5px solid #d9e1ea;
    border-radius: 10px;
    outline: none;
    background: #fff;
    color: var(--ms-ink);
    font: inherit;
    font-size: 15px;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.bank-checkout__field input:focus,
.bank-checkout__field select:focus {
    border-color: var(--ms-blue);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(8, 100, 217, .1);
}

.bank-checkout__phone-group {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 8px;
}

.bank-checkout__phone-group .bank-checkout__country-code,
.bank-checkout__phone-group .bank-checkout__phone {
    min-width: 0;
}

.bank-checkout__phone-group .bank-checkout__country-code {
    padding: 0 8px;
    font-size: 13px;
    font-weight: 700;
}

.bank-checkout__field-hint {
    margin-top: 7px !important;
    color: #7d8897;
    font-size: 10px;
    line-height: 1.45;
}

.bank-checkout__error {
    margin: 6px 0 12px;
    padding: 11px 13px;
    border-radius: 10px;
    background: #fff1f0;
    color: #b42318;
    font-size: 13px;
    font-weight: 650;
}

.bank-checkout__error:empty {
    display: none;
}

.bank-checkout__submit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 52px;
    padding: 12px 20px;
    border: 0;
    border-radius: 11px;
    background: var(--ms-navy);
    box-shadow: 0 7px 16px rgba(13, 33, 55, .18);
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-size: 15px;
    font-weight: 850;
    letter-spacing: .06em;
    text-transform: uppercase;
    transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.bank-checkout__submit:hover {
    transform: translateY(-1px);
    background: var(--ms-orange);
    box-shadow: 0 10px 24px rgba(255, 142, 43, .28);
}

.bank-checkout__submit:disabled {
    cursor: wait;
    opacity: .7;
}

.bank-checkout__spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, .45);
    border-top-color: #fff;
    border-radius: 50%;
    animation: bank-checkout-spin .75s linear infinite;
}

.bank-checkout.is-loading .bank-checkout__submit-label {
    display: none;
}

.bank-checkout.is-loading .bank-checkout__spinner {
    display: block;
}

.bank-checkout__privacy {
    margin-top: 11px !important;
    color: #7d8897;
    font-size: 11px;
    line-height: 1.5;
    text-align: center;
}

.bank-checkout__success {
    outline: none;
    text-align: center;
    animation: bank-checkout-rise .45s ease both;
}

.bank-checkout__check {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    margin: 0 auto 15px;
    border-radius: 50%;
    background: #e9f9ef;
    color: #168a49;
    font-size: 30px;
    font-weight: 900;
}

.bank-checkout__arabic {
    margin-top: 8px !important;
    font-family: Tahoma, Arial, sans-serif;
}

.bank-checkout__payment-title {
    margin: 22px 0 12px !important;
    color: #102840;
    font-size: 17px;
    font-weight: 850;
}

.bank-checkout__payment-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

.bank-checkout__payment-option {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 9px;
    min-height: 48px;
    padding: 9px 8px;
    border: 1.5px solid #d9e3ef;
    border-radius: 12px;
    background: #fff;
    color: #17324e;
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    transition: border-color .2s ease, background .2s ease, color .2s ease, transform .2s ease;
}

.bank-checkout__payment-option:first-child {
    grid-column: 1 / -1;
    justify-content: center;
    min-height: 58px;
}

.bank-checkout__payment-logo {
    width: 34px;
    height: 28px;
    flex: 0 0 34px;
    object-fit: contain;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.bank-checkout__payment-option:first-child .bank-checkout__payment-logo {
    width: 48px;
    height: 36px;
    flex-basis: 48px;
}

.bank-checkout__payment-fallback {
    display: grid;
    place-items: center;
    width: 34px;
    height: 28px;
    flex: 0 0 34px;
    border-radius: 8px;
    background: #eaf2fb;
    color: #0864d9;
    font-size: 10px;
    font-weight: 900;
}

.bank-checkout__payment-option:hover {
    transform: translateY(-1px);
    border-color: #ff8a25;
}

.bank-checkout__payment-option.is-active {
    border-color: #ff8424;
    background: #fff1e5;
    color: #d85e00;
    box-shadow: 0 5px 14px rgba(255, 132, 36, .14);
}

.bank-checkout__payment-panel[hidden] {
    display: none !important;
}

.bank-checkout__bank {
    margin: 20px 0;
    padding: 16px;
    border: 1px solid #dfe9df;
    border-radius: 15px;
    background: #f4fbf5;
    text-align: left;
}

.bank-checkout__not-configured {
    margin: 0 !important;
    padding: 10px;
    border-radius: 9px;
    background: #fff7df;
    color: #7a5915;
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
}

.bank-checkout__bank-brand {
    margin-bottom: 12px;
    color: #20833c;
    font-size: 18px;
    font-weight: 900;
    text-align: center;
}

.bank-checkout__bank-logo {
    display: block;
    width: auto;
    max-width: 150px;
    max-height: 64px;
    margin: 0 auto 12px;
    object-fit: contain;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.bank-checkout__bank-row {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    padding: 9px 0;
    border-top: 1px solid #e2ece4;
    font-size: 12px;
}

.bank-checkout__bank-row span {
    color: #66756a;
}

.bank-checkout__bank-row strong {
    min-width: 0;
    overflow-wrap: anywhere;
    color: #243d2b;
    font-size: 13px;
}

.bank-checkout__copy {
    padding: 6px 8px;
    border: 1px solid #c9dccd;
    border-radius: 7px;
    background: #fff;
    color: #20833c;
    cursor: pointer;
    font: inherit;
    font-size: 10px;
    font-weight: 800;
}

.bank-checkout__whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 12px 18px;
    border-radius: 13px;
    background: #16a85a;
    box-shadow: 0 8px 20px rgba(22, 168, 90, .2);
    color: #fff !important;
    font-size: 14px;
    font-weight: 850;
    text-decoration: none !important;
}

.bank-checkout__followup {
    margin-top: 12px !important;
    font-size: 12px !important;
}

@keyframes bank-checkout-spin {
    to { transform: rotate(360deg); }
}

@keyframes bank-checkout-rise {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 480px) {
    .bank-checkout {
        padding: 20px 16px;
        border-radius: 17px;
    }

    .bank-checkout__bank-row {
        grid-template-columns: 68px minmax(0, 1fr);
    }

    .bank-checkout__copy {
        grid-column: 2;
        justify-self: start;
    }

    .bank-checkout__phone-group {
        grid-template-columns: 106px minmax(0, 1fr);
    }

    .bank-checkout__payment-options {
        grid-template-columns: 1fr;
    }

    .bank-checkout__payment-option:first-child {
        grid-column: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bank-checkout *,
    .bank-checkout *::before,
    .bank-checkout *::after {
        scroll-behavior: auto !important;
        transition: none !important;
        animation-duration: .01ms !important;
    }
}
