/* MR Commerce Pro v1.0.0 RC6 — Premium Checkout Experience (UI Foundation) */
#payment .payment_method_mrbp_manual_payment .payment_box {
    padding: 16px !important;
    border: 1px solid rgba(30, 138, 138, .16);
    border-radius: 18px;
    background: linear-gradient(145deg, #f5fcfb, #ffffff);
    box-shadow: 0 16px 38px rgba(15, 23, 42, .06);
}

.mrbp-checkout-payment {
    --mrbp-checkout-primary: #1e8a8a;
    --mrbp-checkout-primary-dark: #166d6d;
    --mrbp-checkout-text: #101828;
    --mrbp-checkout-muted: #667085;
    --mrbp-checkout-border: #d9e9e8;
    --mrbp-checkout-soft: #edf9f8;
    --mrbp-checkout-radius: 16px;
    --mrbp-checkout-shadow: 0 14px 34px rgba(15, 23, 42, .07);
    color: var(--mrbp-checkout-text);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.mrbp-checkout-payment__intro {
    margin: 0 0 7px !important;
    color: #475467;
    font-size: 14px;
    line-height: 1.65;
}

.mrbp-checkout-payment__subtitle {
    margin: 0 0 16px !important;
    color: var(--mrbp-checkout-muted);
    font-size: 13.5px;
    line-height: 1.55;
}

.mrbp-checkout-gateway-group { margin: 0 0 18px; }
.mrbp-checkout-gateway-group__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0 0 10px;
}
.mrbp-checkout-gateway-group__heading h4 {
    margin: 0 !important;
    color: var(--mrbp-checkout-text);
    font-size: 15px;
    font-weight: 800;
    line-height: 1.35;
}
.mrbp-checkout-gateway-group__heading span {
    padding: 5px 9px;
    border: 1px solid var(--mrbp-checkout-border);
    border-radius: 999px;
    background: #fff;
    color: var(--mrbp-checkout-muted);
    font-size: 11.5px;
    font-weight: 750;
}

.mrbp-checkout-gateways {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
}
.mrbp-checkout-gateway {
    position: relative;
    display: block;
    min-width: 0;
    margin: 0 !important;
    cursor: pointer;
}
.mrbp-checkout-gateway > input {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    border: 0 !important;
}
.mrbp-checkout-gateway__visual {
    position: relative;
    display: flex;
    min-height: 116px;
    padding: 11px 8px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid var(--mrbp-checkout-border);
    border-radius: 15px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 5px 14px rgba(15, 23, 42, .04);
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, background .18s ease;
}
.mrbp-checkout-gateway__logo {
    display: flex;
    width: 100%;
    height: 58px;
    margin: 0 !important;
    align-items: center;
    justify-content: center;
}
.mrbp-checkout-gateway__logo img {
    display: block !important;
    width: 86px !important;
    height: 58px !important;
    max-width: 100% !important;
    max-height: 58px !important;
    object-fit: contain !important;
    opacity: 1 !important;
    visibility: visible !important;
}
.mrbp-checkout-gateway__logo > span {
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    border-radius: 14px;
    background: #eaf8f8;
    color: var(--mrbp-checkout-primary-dark);
    font-size: 16px;
    font-weight: 850;
}
.mrbp-checkout-gateway__copy {
    display: block;
    width: 100%;
    min-width: 0;
    text-align: center;
}
.mrbp-checkout-gateway__copy strong {
    display: block;
    overflow: hidden;
    color: #111827;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.mrbp-checkout-gateway__check {
    position: absolute;
    top: 7px;
    right: 7px;
    display: grid;
    width: 20px;
    height: 20px;
    place-items: center;
    border: 1px solid #cfe1e1;
    border-radius: 50%;
    background: #fff;
    color: transparent;
    font-size: 11px;
}
.mrbp-checkout-gateway:hover .mrbp-checkout-gateway__visual {
    transform: translateY(-2px);
    border-color: #8bcaca;
    box-shadow: 0 10px 22px rgba(30, 138, 138, .10);
}
.mrbp-checkout-gateway.is-selected .mrbp-checkout-gateway__visual,
.mrbp-checkout-gateway > input:checked + .mrbp-checkout-gateway__visual {
    border-color: var(--mrbp-checkout-primary);
    background: linear-gradient(145deg, #f1fdfc, #fff);
    box-shadow: 0 0 0 2px rgba(30, 138, 138, .11), 0 10px 22px rgba(30, 138, 138, .09);
}
.mrbp-checkout-gateway.is-selected .mrbp-checkout-gateway__check,
.mrbp-checkout-gateway > input:checked + .mrbp-checkout-gateway__visual .mrbp-checkout-gateway__check {
    border-color: var(--mrbp-checkout-primary);
    background: var(--mrbp-checkout-primary);
    color: #fff;
}
.mrbp-checkout-gateway > input:focus-visible + .mrbp-checkout-gateway__visual {
    outline: 3px solid rgba(30, 138, 138, .22);
    outline-offset: 2px;
}

.mrbp-inline-panels { margin-top: 18px; }
.mrbp-inline-panel {
    display: none;
    overflow: hidden;
    border: 1px solid rgba(30, 138, 138, .18);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--mrbp-checkout-shadow);
    animation: mrbpPanelIn .22s ease both;
}
.mrbp-inline-panel.is-active { display: block; }
@keyframes mrbpPanelIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

.mrbp-rc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px;
    border-bottom: 1px solid rgba(30, 138, 138, .13);
    background: linear-gradient(135deg, #e8f8f6 0%, #f6fcfb 58%, #fff 100%);
}
.mrbp-rc-brand {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 12px;
}
.mrbp-rc-shield {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    border-radius: 13px;
    background: linear-gradient(135deg, #1e8a8a, #48b8b2);
    color: #fff;
    font-size: 18px;
    font-weight: 900;
    box-shadow: 0 9px 18px rgba(30, 138, 138, .20);
}
.mrbp-rc-brand > div { min-width: 0; }
.mrbp-rc-eyebrow {
    display: block;
    margin-bottom: 3px;
    color: var(--mrbp-checkout-primary);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .09em;
    text-transform: uppercase;
}
.mrbp-rc-brand h3 {
    margin: 0 !important;
    color: var(--mrbp-checkout-text);
    font-size: 19px;
    font-weight: 850;
    line-height: 1.22;
}
.mrbp-rc-brand p {
    margin: 4px 0 0 !important;
    color: var(--mrbp-checkout-muted);
    font-size: 12.5px;
    font-weight: 650;
    line-height: 1.4;
}
.mrbp-rc-verified {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border: 1px solid #b9ddda;
    border-radius: 999px;
    background: rgba(255, 255, 255, .90);
    color: var(--mrbp-checkout-primary-dark);
    font-size: 11px;
    font-weight: 800;
}
.mrbp-rc-verified > span {
    display: grid;
    width: 16px;
    height: 16px;
    place-items: center;
    border-radius: 50%;
    background: #dff4f2;
    font-size: 9px;
}

.mrbp-rc-body { padding: 16px; }
.mrbp-rc-hero {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 12px;
    align-items: stretch;
}
.mrbp-rc-hero.has-no-qr { grid-template-columns: 1fr; }
.mrbp-rc-qr,
.mrbp-rc-number-card {
    border: 1px solid var(--mrbp-checkout-border);
    border-radius: 15px;
    background: linear-gradient(145deg, #fbfefe, #fff);
    box-shadow: 0 8px 20px rgba(15, 23, 42, .04);
}
.mrbp-rc-qr {
    display: flex;
    min-height: 156px;
    padding: 11px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    text-align: center;
}
.mrbp-rc-qr > span {
    color: var(--mrbp-checkout-muted);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .07em;
    text-transform: uppercase;
}
.mrbp-rc-qr img {
    width: 100px;
    height: 100px;
    object-fit: contain;
}
.mrbp-rc-qr a {
    color: var(--mrbp-checkout-primary);
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
}
.mrbp-rc-number-card {
    min-width: 0;
    padding: 15px;
}
.mrbp-rc-number-head {
    display: flex;
    align-items: center;
    gap: 10px;
}
.mrbp-rc-number-head img {
    width: 52px;
    height: 40px;
    flex: 0 0 52px;
    object-fit: contain;
    border: 1px solid #e2eeee;
    border-radius: 10px;
    background: #fff;
    padding: 4px;
}
.mrbp-rc-number-head > div { min-width: 0; }
.mrbp-rc-number-head span {
    display: block;
    color: var(--mrbp-checkout-muted);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .07em;
    text-transform: uppercase;
}
.mrbp-rc-number-head strong {
    display: block;
    margin-top: 3px;
    overflow: hidden;
    color: var(--mrbp-checkout-text);
    font-size: 14px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.mrbp-rc-number-row {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 14px;
    padding: 12px 13px;
    border: 1px solid rgba(30, 138, 138, .18);
    border-radius: 12px;
    background: linear-gradient(135deg, #eafafa, #f8fefd);
}
.mrbp-rc-number-row b {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    color: var(--mrbp-checkout-primary);
    font-size: clamp(21px, 2.3vw, 27px);
    font-weight: 900;
    letter-spacing: .035em;
    line-height: 1.15;
    white-space: nowrap;
    word-break: normal;
    overflow-wrap: normal;
    text-overflow: ellipsis;
}
.mrbp-rc-number-row > .mrbp-rc-copy {
    display: inline-flex !important;
    position: static !important;
    inset: auto !important;
    width: auto !important;
    min-width: max-content !important;
    max-width: max-content !important;
    flex: 0 0 auto !important;
    align-self: center !important;
    margin: 0 !important;
    float: none !important;
    box-sizing: border-box !important;
    transform: none !important;
}
.mrbp-inline-copy {
    display: inline-flex !important;
    min-height: 34px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 7px 10px !important;
    border: 1px solid #b7deda !important;
    border-radius: 9px !important;
    background: #fff !important;
    color: var(--mrbp-checkout-primary-dark) !important;
    font-size: 11px !important;
    font-weight: 850 !important;
    line-height: 1 !important;
    cursor: pointer;
    box-shadow: none !important;
}
.mrbp-inline-copy span {
    margin: 0 !important;
    color: inherit !important;
    font-size: 12px !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}
.mrbp-inline-copy:hover,
.mrbp-inline-copy.is-copied {
    border-color: var(--mrbp-checkout-primary) !important;
    background: #eaf8f8 !important;
}
.mrbp-rc-account-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin-top: 11px;
}
.mrbp-rc-account-meta > span {
    min-width: 0;
    padding: 10px 11px;
    border: 1px solid #e3eeee;
    border-radius: 10px;
    background: #fff;
}
.mrbp-rc-account-meta small {
    display: block;
    color: #98a2b3;
    font-size: 9.5px;
    font-weight: 800;
    text-transform: uppercase;
}
.mrbp-rc-account-meta strong {
    display: block;
    margin-top: 4px;
    overflow-wrap: anywhere;
    color: #344054;
    font-size: 12.5px;
    font-weight: 800;
    line-height: 1.4;
}

.mrbp-rc-bank-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
    margin-top: 12px;
}
.mrbp-inline-detail {
    min-width: 0;
    padding: 11px 12px;
    border: 1px solid #e0eceb;
    border-radius: 11px;
    background: #fbfefe;
}
.mrbp-inline-detail > span {
    display: block;
    margin-bottom: 5px;
    color: #98a2b3;
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}
.mrbp-inline-detail strong {
    display: block;
    overflow-wrap: anywhere;
    color: #344054;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.4;
}

.mrbp-rc-instructions,
.mrbp-rc-customer-form {
    margin-top: 14px;
    padding: 14px;
    border: 1px solid #e0eceb;
    border-radius: 14px;
    background: #fff;
}
.mrbp-rc-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 11px;
}
.mrbp-rc-section-title > span {
    display: grid;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    place-items: center;
    border-radius: 9px;
    background: #eaf8f8;
    color: var(--mrbp-checkout-primary-dark);
    font-size: 12px;
    font-weight: 900;
}
.mrbp-rc-section-title h4 {
    margin: 0 !important;
    color: var(--mrbp-checkout-text);
    font-size: 15px;
    font-weight: 850;
    line-height: 1.3;
}
.mrbp-rc-section-title p {
    margin: 3px 0 0 !important;
    color: #667085;
    font-size: 12px;
    line-height: 1.5;
}
.mrbp-rc-steps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}
.mrbp-rc-step {
    display: flex;
    min-width: 0;
    align-items: flex-start;
    gap: 9px;
    padding: 11px 12px;
    border: 1px solid transparent;
    border-radius: 11px;
}
.mrbp-rc-step > span {
    display: grid;
    width: 23px;
    height: 23px;
    flex: 0 0 23px;
    place-items: center;
    border-radius: 7px;
    background: rgba(255, 255, 255, .90);
    color: var(--mrbp-checkout-primary-dark);
    font-size: 10px;
    font-weight: 900;
    box-shadow: 0 3px 8px rgba(15, 23, 42, .05);
}
.mrbp-rc-step p {
    margin: 2px 0 0 !important;
    color: #344054;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
}
.mrbp-rc-step--1 { border-color: #cce9e6; background: linear-gradient(135deg, #e9faf7, #f8fefd); }
.mrbp-rc-step--2 { border-color: #d8e5f4; background: linear-gradient(135deg, #eef6ff, #fafcff); }
.mrbp-rc-step--3 { border-color: #e7ddf4; background: linear-gradient(135deg, #f6f1fc, #fdfbff); }
.mrbp-rc-step--4 { border-color: #f0e2c7; background: linear-gradient(135deg, #fff7e8, #fffdf8); }

.mrbp-inline-panel__fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
}
.mrbp-inline-field { display: block; margin: 0 !important; }
.mrbp-inline-field > span {
    display: block;
    margin: 0 0 7px;
    color: #344054;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.4;
}
.mrbp-inline-panel__fields em { color: #dc2626; font-style: normal; }
.mrbp-inline-field__control { position: relative; }
.mrbp-inline-field__icon {
    position: absolute;
    top: 50%;
    left: 11px;
    z-index: 2;
    display: grid;
    width: 22px;
    height: 22px;
    transform: translateY(-50%);
    place-items: center;
    border-radius: 7px;
    background: #eaf8f8;
    color: var(--mrbp-checkout-primary-dark);
    font-size: 10px;
    font-weight: 900;
    pointer-events: none;
}
.mrbp-inline-panel__fields input {
    width: 100% !important;
    min-height: 48px !important;
    margin: 0 !important;
    padding: 10px 12px 10px 42px !important;
    border: 1px solid #d2e4e3 !important;
    border-radius: 11px !important;
    background: #fff !important;
    color: var(--mrbp-checkout-text) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, .02) !important;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.mrbp-inline-panel__fields input::placeholder {
    color: #98a2b3;
    font-size: 13px;
    opacity: 1;
}
.mrbp-inline-panel__fields input:focus {
    border-color: var(--mrbp-checkout-primary) !important;
    outline: 0 !important;
    background: #fff !important;
    box-shadow: 0 0 0 3px rgba(30, 138, 138, .12) !important;
}
.mrbp-inline-panel__fields small {
    display: block;
    margin-top: 6px;
    color: #667085;
    font-size: 11.5px;
    line-height: 1.5;
}
.mrbp-inline-field-error {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, .10) !important;
}
.mrbp-rc-notice {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-top: 13px;
    padding: 11px 12px;
    border: 1px solid rgba(30, 138, 138, .15);
    border-radius: 11px;
    background: linear-gradient(135deg, #edf9f7, #fbfefe);
    color: #344054;
}
.mrbp-rc-notice > span {
    display: grid;
    width: 23px;
    height: 23px;
    flex: 0 0 23px;
    place-items: center;
    border-radius: 7px;
    background: #dff4f2;
    color: #147c78;
    font-size: 11px;
    font-weight: 900;
}
.mrbp-rc-notice p {
    margin: 2px 0 0 !important;
    font-size: 12px;
    line-height: 1.55;
}
.mrbp-inline-validation {
    margin: 0 0 12px !important;
    padding: 11px 13px !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
}

@media (max-width: 1024px) {
    .mrbp-checkout-gateways { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
    .mrbp-rc-header { align-items: flex-start; }
    .mrbp-rc-verified { padding: 6px 8px; font-size: 10px; }
    .mrbp-rc-hero { grid-template-columns: 108px minmax(0, 1fr); }
    .mrbp-rc-number-row b { font-size: 21px; }
}

@media (max-width: 640px) {
    #payment .payment_method_mrbp_manual_payment .payment_box { padding: 12px !important; }
    .mrbp-checkout-gateways { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .mrbp-checkout-gateway__visual { min-height: 108px; padding: 9px 6px; }
    .mrbp-checkout-gateway__logo { height: 52px; }
    .mrbp-checkout-gateway__logo img { width: 76px !important; height: 52px !important; max-height: 52px !important; }
    .mrbp-rc-header { padding: 14px; }
    .mrbp-rc-shield { width: 38px; height: 38px; flex-basis: 38px; border-radius: 11px; }
    .mrbp-rc-brand h3 { font-size: 17px; }
    .mrbp-rc-brand p { font-size: 12px; }
    .mrbp-rc-verified { display: none; }
    .mrbp-rc-body { padding: 13px; }
    .mrbp-rc-hero { grid-template-columns: 1fr; }
    .mrbp-rc-qr { min-height: auto; }
    .mrbp-rc-qr img { width: 110px; height: 110px; }
    .mrbp-rc-number-row {
        align-items: center;
        flex-direction: row;
        flex-wrap: nowrap;
    }
    .mrbp-rc-number-row b {
        font-size: clamp(18px, 6vw, 23px);
        white-space: nowrap;
    }
    .mrbp-rc-copy {
        align-self: center;
        padding: 7px 9px !important;
        font-size: 10.5px !important;
    }
    .mrbp-rc-account-meta,
    .mrbp-rc-bank-meta,
    .mrbp-rc-steps,
    .mrbp-inline-panel__fields { grid-template-columns: 1fr; }
    .mrbp-rc-step p { font-size: 12.5px; }
    .mrbp-inline-field > span { font-size: 13px; }
    .mrbp-inline-panel__fields input { font-size: 14px !important; }
}

@media (max-width: 380px) {
    .mrbp-rc-number-row { padding: 10px; gap: 7px; }
    .mrbp-rc-number-row b { font-size: 17px; letter-spacing: .01em; }
    .mrbp-rc-copy { padding: 6px 7px !important; font-size: 9.5px !important; }
}
