.nb-finance-choice{margin:0 0 12px;direction:rtl}
.nb-finance-choice__switch{display:grid;grid-template-columns:1fr 1fr;padding:4px;border:1px solid #202020;border-radius:11px;background:#070707}
.nb-finance-choice__switch button{min-height:50px;padding:7px 10px;border:0;border-radius:8px;background:transparent;color:#7e8792;font:inherit;cursor:pointer;display:grid;gap:2px;text-align:right}
.nb-finance-choice__switch button span{font-size:10px;font-weight:850}
.nb-finance-choice__switch button small{font-size:8px;color:#69727e}
.nb-finance-choice__switch button.is-active{background:rgba(12,162,28,.10);box-shadow:inset 0 0 0 1px rgba(12,162,28,.35);color:#fff}
.nb-finance-choice__switch button.is-active small{color:#6fd47a}
.nb-finance-choice__installment{margin-top:7px;padding:8px 10px;border:1px solid #1d1d1d;border-radius:9px;display:flex;align-items:center;justify-content:space-between;gap:10px}
.nb-finance-choice__installment>div{display:grid;gap:2px}
.nb-finance-choice__installment strong{font-size:9px}
.nb-finance-choice__installment span{font-size:7.5px;color:#727b86}
.nb-finance-choice__installment button{padding:0;border:0;background:transparent;color:#65d270;font:inherit;font-size:8px;font-weight:800;cursor:pointer}
.nb-finance-modal[hidden]{display:none!important}
.nb-finance-modal{position:fixed;z-index:10050;inset:0;display:grid;place-items:center;padding:18px}
.nb-finance-modal__backdrop{position:absolute;inset:0;background:rgba(0,0,0,.78);backdrop-filter:blur(7px)}
.nb-finance-modal__card{position:relative;width:min(620px,100%);max-height:min(780px,88vh);overflow:auto;padding:22px;border:1px solid #292929;border-radius:18px;background:radial-gradient(circle at 100% 0,rgba(12,162,28,.08),transparent 36%),#090909;box-shadow:0 35px 120px rgba(0,0,0,.65);color:#fff;direction:rtl}
.nb-finance-modal__card header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding-bottom:16px;border-bottom:1px solid #202020}
.nb-finance-modal__card header small{color:#5bd367;font-size:9px}
.nb-finance-modal__card header h3{margin:4px 0 0;font-size:24px}
.nb-finance-modal__card header button{width:34px;height:34px;border:1px solid #272727;border-radius:9px;background:#0d0d0d;color:#9da6b0;font-size:20px;cursor:pointer}
.nb-finance-schedule{display:grid;margin:16px 0;border:1px solid #222;border-radius:12px;overflow:hidden}
.nb-finance-schedule>div{min-height:54px;padding:10px 13px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #1c1c1c}
.nb-finance-schedule>div:last-child{border-bottom:0}
.nb-finance-schedule span{display:flex;align-items:center;gap:10px;color:#8c96a2;font-size:10px}
.nb-finance-schedule b{width:26px;height:26px;display:grid;place-items:center;border:1px solid rgba(12,162,28,.28);border-radius:7px;background:rgba(12,162,28,.06);color:#65d270;font-size:8px}
.nb-finance-schedule strong{font-size:11px}
.nb-finance-rules{padding:15px;border:1px solid rgba(191,144,0,.25);border-radius:12px;background:rgba(191,144,0,.045)}
.nb-finance-rules h4{margin:0 0 9px;color:#e7bd47;font-size:12px}
.nb-finance-rules p{margin:7px 0;color:#a7afb9;font-size:9.5px;line-height:1.9}
.nb-finance-modal__ok{width:100%;min-height:44px;margin-top:14px;border:1px solid #0ca21c;border-radius:9px;background:#0ca21c;color:#fff;font:inherit;font-size:11px;font-weight:900;cursor:pointer}
.nb-installment-checkout-policy{margin:8px 0 14px;padding:12px 13px;border:1px solid #27302a;border-radius:10px;background:linear-gradient(90deg,rgba(12,162,28,.025),rgba(48,25,132,.025))}
.nb-installment-checkout-policy label{display:flex;align-items:flex-start;gap:9px;color:#b7bec7;font-size:9px;line-height:1.9;cursor:pointer}
.nb-installment-checkout-policy input{margin-top:4px;flex:0 0 auto}
.nb-finance-wallet-checkout{
    position:relative;
    box-sizing:border-box;
    width:100%;
    margin:-1px 0 0;
    padding:0;
    border:0;
    border-radius:0;
    background:transparent;
}
.nb-finance-wallet-checkout::before{
    content:"";
    display:block;
    width:100%;
    height:1px;
    background:#1d211e;
}
.nb-finance-wallet-checkout__label{
    box-sizing:border-box;
    width:100%;
    min-height:64px;
    margin:0;
    padding:0;
    display:grid;
    grid-template-columns:auto 1fr auto;
    align-items:center;
    gap:12px;
    direction:rtl;
    cursor:pointer;
}
.nb-finance-wallet-checkout__label > input[type="checkbox"]{
    grid-column:1;
    justify-self:start;
    appearance:none;
    -webkit-appearance:none;
    box-sizing:border-box;
    width:20px;
    height:20px;
    min-width:20px;
    margin:0;
    border:1px solid #39443d;
    border-radius:6px;
    background:#080908;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.025);
    cursor:pointer;
}
.nb-finance-wallet-checkout__label > input[type="checkbox"]:checked{
    border-color:#21b735;
    background:#0ca21c;
}
.nb-finance-wallet-checkout__label > input[type="checkbox"]:checked::after{
    content:"✓";
    display:grid;
    place-items:center;
    width:100%;
    height:100%;
    color:#fff;
    font:900 13px/1 Arial,sans-serif;
}
.nb-finance-wallet-checkout__title{
    grid-column:2;
    justify-self:end;
    margin:0;
    color:#e8ede9;
    font-size:16px;
    font-weight:850;
    line-height:1.5;
    text-align:right;
    white-space:nowrap;
}
.nb-finance-wallet-checkout__amount{
    grid-column:3;
    justify-self:start;
    margin:0;
    color:#66d671;
    font-size:0;
    line-height:1;
    white-space:nowrap;
    direction:rtl;
}
.nb-finance-wallet-checkout__amount .nb-finance-money{
    display:inline-flex;
    align-items:baseline;
    gap:4px;
}
.nb-finance-wallet-checkout__amount .nb-finance-money__number{
    color:#66d671;
    font-family:inherit;
    font-size:14px;
    font-weight:850;
    line-height:1.1;
}
.nb-finance-wallet-checkout__amount .nb-finance-money__currency{
    color:#7f8a82;
    font-family:inherit;
    font-size:11px;
    font-weight:700;
    line-height:1.1;
}
@media(max-width:700px){
    .nb-finance-wallet-checkout__label{min-height:58px;gap:10px}
    .nb-finance-wallet-checkout__title{font-size:14px;white-space:normal}
    .nb-finance-wallet-checkout__amount .nb-finance-money__number{font-size:13px}
    .nb-finance-wallet-checkout__amount .nb-finance-money__currency{font-size:10px}
}

.nb-finance-account{display:grid;gap:18px;direction:rtl}
.nb-finance-account__hero{min-height:230px;padding:34px;display:flex;align-items:center;justify-content:space-between;gap:28px;border:1px solid rgba(12,162,28,.26);border-radius:20px;background:radial-gradient(circle at 100% 0,rgba(12,162,28,.11),transparent 42%),radial-gradient(circle at 0 100%,rgba(48,25,132,.12),transparent 44%),#080908}
.nb-finance-account__hero small{color:#59d167;font-size:10px}
.nb-finance-account__hero h1{margin:8px 0 7px;font-size:42px}
.nb-finance-account__hero p{margin:0;color:#88929e;font-size:11px}
.nb-finance-balance{min-width:260px;padding:18px;border:1px solid #262626;border-radius:14px;background:#090909;display:grid;gap:5px}
.nb-finance-balance>span{color:#7f8994;font-size:9px}
.nb-finance-balance strong{font-size:22px}
.nb-finance-balance small{color:#5fcf6b;font-size:8px}
.nb-finance-account__section{padding:22px;border:1px solid #242424;border-radius:18px;background:#080808}
.nb-finance-account__section>header{display:flex;align-items:end;justify-content:space-between;gap:15px;margin-bottom:15px}
.nb-finance-account__section>header small{color:#59d167;font-size:9px}
.nb-finance-account__section>header h2{margin:4px 0 0;font-size:25px}
.nb-finance-account__section>header>span{padding:5px 8px;border:1px solid #252525;border-radius:7px;color:#818b97;font-size:8px}
.nb-finance-plan-list{display:grid;gap:12px}
.nb-finance-plan{padding:17px;border:1px solid #252525;border-radius:14px;background:#090909}
.nb-finance-plan--suspended{border-color:rgba(214,151,0,.42);background:rgba(214,151,0,.025)}
.nb-finance-plan--completed{border-color:rgba(12,162,28,.32)}
.nb-finance-plan>header{display:flex;align-items:flex-start;justify-content:space-between;gap:15px}
.nb-finance-plan>header small{color:#63d16e;font-size:8px}
.nb-finance-plan>header h3{margin:3px 0 0;font-size:16px}
.nb-finance-plan>header b{font-size:9px;color:#9fa7b1}
.nb-finance-progress{height:5px;margin:14px 0;background:#171717;border-radius:999px;overflow:hidden}
.nb-finance-progress span{display:block;height:100%;background:#0ca21c;border-radius:inherit}
.nb-finance-plan__numbers{display:grid;grid-template-columns:repeat(3,1fr);border:1px solid #1f1f1f;border-radius:10px;overflow:hidden}
.nb-finance-plan__numbers>div{padding:11px;border-left:1px solid #1f1f1f;display:grid;gap:4px}
.nb-finance-plan__numbers>div:last-child{border-left:0}
.nb-finance-plan__numbers small{color:#717b87;font-size:7.5px}
.nb-finance-plan__numbers strong{font-size:10px}
.nb-finance-access-note{margin:11px 0 0;color:#82909d;font-size:8.5px}
.nb-finance-installment-rows{margin-top:12px;border-top:1px solid #1f1f1f}
.nb-finance-installment-rows>div{min-height:46px;display:grid;grid-template-columns:80px 1fr 100px 75px;align-items:center;gap:10px;border-bottom:1px solid #1b1b1b;font-size:8.5px}
.nb-finance-installment-rows em{font-style:normal;color:#7f8994}
.nb-finance-installment-rows .is-paid em{color:#5fd16c}
.nb-finance-installment-rows .is-overdue em{color:#e2a43b}
.nb-finance-plan footer{margin-top:13px;display:flex;justify-content:flex-end;gap:8px}
.nb-finance-plan footer a{min-height:38px;padding:8px 12px;display:inline-flex;align-items:center;justify-content:center;border:1px solid #292929;border-radius:8px;color:#c0c7cf;font-size:8.5px;font-weight:800;text-decoration:none}
.nb-finance-plan footer a.is-primary{border-color:#0ca21c;background:#0ca21c;color:#fff}
.nb-finance-ledger{display:grid}
.nb-finance-ledger>div{min-height:53px;display:grid;grid-template-columns:150px 1fr 145px;align-items:center;gap:12px;border-bottom:1px solid #1e1e1e}
.nb-finance-ledger>div:last-child{border-bottom:0}
.nb-finance-ledger span{direction:ltr;text-align:left;font-weight:900;font-size:9px}
.nb-finance-ledger span.is-credit{color:#63d16e}
.nb-finance-ledger span.is-debit{color:#e17a7a}
.nb-finance-ledger strong{font-size:9px}
.nb-finance-ledger small{color:#707b87;font-size:8px}
.nb-finance-empty{padding:26px;border:1px dashed #292929;border-radius:12px;color:#747e89;text-align:center;font-size:10px}

@media(max-width:700px){.nb-finance-choice__switch{grid-template-columns:1fr}
.nb-finance-modal{padding:10px}
.nb-finance-modal__card{padding:17px}
.nb-finance-account__hero{min-height:0;padding:22px;display:grid}
.nb-finance-account__hero h1{font-size:30px}
.nb-finance-balance{min-width:0;width:100%}
.nb-finance-account__section{padding:15px}
.nb-finance-plan__numbers{grid-template-columns:1fr}
.nb-finance-plan__numbers>div{border-left:0;border-bottom:1px solid #1f1f1f}
.nb-finance-plan__numbers>div:last-child{border-bottom:0}
.nb-finance-installment-rows>div{grid-template-columns:58px 1fr;gap:5px 9px;padding:8px 0}
.nb-finance-installment-rows small,.nb-finance-installment-rows em{text-align:left}
.nb-finance-plan footer{display:grid;grid-template-columns:1fr}
.nb-finance-ledger>div{grid-template-columns:1fr auto;padding:10px 0}
.nb-finance-ledger small{grid-column:1/-1}
.nb-finance-choice__installment{align-items:flex-start}
.nb-finance-schedule>div{align-items:flex-start;flex-direction:column}
.nb-finance-schedule strong{align-self:flex-end}
}


.nb-order-installment-status{margin-top:16px;padding:18px 20px;border:1px solid rgba(12,162,28,.25);border-radius:15px;background:radial-gradient(circle at 100% 0,rgba(12,162,28,.07),transparent 40%),#080908;display:flex;align-items:center;justify-content:space-between;gap:18px;direction:rtl}
.nb-order-installment-status small{color:#5fd16b;font-size:8.5px}
.nb-order-installment-status h2{margin:4px 0 5px;font-size:19px}
.nb-order-installment-status p{margin:0;color:#7e8894;font-size:9px}
.nb-order-installment-status__actions{display:flex;gap:8px}
.nb-order-installment-status__actions a{min-height:39px;padding:8px 12px;display:inline-flex;align-items:center;justify-content:center;border:1px solid #292929;border-radius:8px;color:#c1c8d0;text-decoration:none;font-size:8.5px;font-weight:850}
.nb-order-installment-status__actions a.is-primary{background:#0ca21c;border-color:#0ca21c;color:#fff}
@media(max-width:700px){.nb-order-installment-status{display:grid;padding:15px}
.nb-order-installment-status__actions{display:grid;grid-template-columns:1fr}
.nb-order-installment-status__actions a{width:100%}
}

.nb-finance-wallet-order-pay{margin:0 0 12px;padding:12px 13px;border:1px solid rgba(12,162,28,.24);border-radius:11px;background:rgba(12,162,28,.035)}
.nb-finance-wallet-order-pay label{display:flex;align-items:center;gap:10px;cursor:pointer}
.nb-finance-wallet-order-pay input{width:17px;height:17px;margin:0;accent-color:#0ca21c;flex:0 0 auto}
.nb-finance-wallet-order-pay label>span{display:grid;gap:3px}
.nb-finance-wallet-order-pay strong{color:#e6ebee;font-size:9px}
.nb-finance-wallet-order-pay small{color:#66d472;font-size:7.5px}
.nb-order-pay-credit-row>strong{display:flex;align-items:center;gap:4px;color:#66d472!important}
.nb-finance-plan--overdue{border-color:rgba(214,151,0,.34);background:rgba(214,151,0,.02)}

/* v1.2 — Persian money, video access and responsive installment UI. */
.nb-finance-choice,.nb-finance-modal,.nb-finance-account,.nb-order-installment-status{font-family:var(--font-sans,"NabeghehaCustom","Segoe UI",Tahoma,Arial,sans-serif)}
.nb-finance-money{display:inline-flex;align-items:baseline;gap:6px;direction:rtl;unicode-bidi:isolate;white-space:nowrap;font-family:var(--font-sans,"NabeghehaCustom","Segoe UI",Tahoma,Arial,sans-serif)!important;font-variant-numeric:tabular-nums}
.nb-finance-money__number,.nb-finance-money__currency{font-family:inherit!important}.nb-finance-money__number{font-weight:900}.nb-finance-money__currency{color:#7e8894;font-size:.72em;font-weight:700}
.nb-finance-choice__switch button{align-content:center}.nb-finance-choice__switch button small{display:flex;align-items:baseline;gap:7px;direction:rtl;font-family:var(--font-sans)!important}.nb-finance-choice__switch .nb-finance-money{font-size:11px}.nb-finance-choice__switch .nb-finance-money__currency{font-size:8px}
.nb-finance-choice__installment{min-height:56px;padding:10px 13px}.nb-finance-choice__installment button{min-height:34px;padding:7px 10px;border:1px solid rgba(12,162,28,.25);border-radius:7px;background:rgba(12,162,28,.045)}
.nb-finance-modal__card header button{display:grid;place-items:center;padding:0;line-height:1}.nb-finance-modal__card header button span{display:block;font:400 25px/1 Arial,sans-serif;transform:translateY(-1px)}
.nb-finance-schedule__row{display:grid!important;grid-template-columns:minmax(0,1fr) auto;align-items:center!important;gap:6px 16px!important}.nb-finance-schedule__date{min-width:0}.nb-finance-schedule__row>strong{justify-self:end}.nb-finance-schedule__row>small{grid-column:1/-1;padding-right:36px;color:#66727d;font-size:8px;line-height:1.8}.nb-finance-schedule .nb-finance-money__number{font-size:11px}.nb-finance-schedule .nb-finance-money__currency{font-size:8px}
.nb-finance-balance strong,.nb-finance-plan__numbers strong,.nb-finance-installment-rows strong{font-family:var(--font-sans)!important}.nb-finance-balance .nb-finance-money{font-size:22px}.nb-finance-plan__numbers .nb-finance-money{font-size:10px}.nb-finance-installment-rows .nb-finance-money{font-size:9px}.nb-finance-ledger .nb-finance-money{display:inline-flex;direction:rtl}.nb-finance-ledger .nb-finance-money__currency{font-size:7px}
.nb-finance-installment-pay{min-height:29px;padding:5px 8px;display:inline-flex;align-items:center;justify-content:center;border:1px solid rgba(12,162,28,.32);border-radius:7px;background:rgba(12,162,28,.07);color:#68d474!important;font-size:7.5px;font-weight:850;text-decoration:none!important;white-space:nowrap}
body.nb-account-finance-page .content-shell{padding-top:48px;background:radial-gradient(circle at 88% 0,rgba(12,162,28,.075),transparent 27%),radial-gradient(circle at 8% 18%,rgba(48,25,132,.08),transparent 30%),var(--bg)}
body.nb-account-finance-page .content-shell__inner--narrow{max-width:var(--container,1180px)}body.nb-account-finance-page .entry-content{max-width:none}body.nb-account-finance-page .entry-content>h1{display:none}body.nb-account-finance-page .woocommerce-MyAccount-content{float:none!important;width:100%!important;margin:0!important}
.nb-installment-checkout-policy input{appearance:none;-webkit-appearance:none;position:relative;width:18px;height:18px;min-width:18px;margin:1px 0 0!important;border:1px solid #455048;border-radius:5px;background:#080908}.nb-installment-checkout-policy input:checked{border-color:#24bb37;background:#0ca21c}.nb-installment-checkout-policy input:checked:after{content:"✓";position:absolute;inset:0;display:grid;place-items:center;color:#fff;font-size:11px;font-weight:900;line-height:1}
@media(max-width:700px){
  .nb-finance-choice__switch{grid-template-columns:1fr 1fr}.nb-finance-choice__switch button{min-width:0;padding:8px}.nb-finance-choice__switch button span{font-size:9px}.nb-finance-choice__switch button small{font-size:7px;flex-wrap:wrap}.nb-finance-choice__switch .nb-finance-money{font-size:9px}
  .nb-finance-choice__installment{display:grid;grid-template-columns:1fr;align-items:center!important;justify-items:center;text-align:center}.nb-finance-choice__installment>div{justify-items:center}.nb-finance-choice__installment button{justify-self:center}
  .nb-finance-modal{padding:8px}.nb-finance-modal__card{padding:15px;border-radius:15px}.nb-finance-modal__card header{align-items:flex-start;gap:10px;padding-bottom:13px}.nb-finance-modal__card header h3{font-size:20px}.nb-finance-modal__card header button{width:34px;height:34px;flex:0 0 34px}
  .nb-finance-schedule__row{grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:6px 10px!important;padding:10px!important}.nb-finance-schedule__row>strong{align-self:auto!important;justify-self:end}.nb-finance-schedule__row>small{grid-column:1/-1;padding-right:36px;font-size:7.2px}.nb-finance-schedule span{font-size:8.5px}.nb-finance-rules{padding:12px}.nb-finance-rules p{font-size:8px;line-height:1.85}
  .nb-finance-account__hero{padding:20px}.nb-finance-account__hero h1{font-size:29px}.nb-finance-balance .nb-finance-money{font-size:20px}
  .nb-finance-installment-rows>div{grid-template-columns:56px minmax(0,1fr) auto;gap:6px 8px;padding:9px 0}.nb-finance-installment-rows>div small{grid-column:2;text-align:right}.nb-finance-installment-rows>div em,.nb-finance-installment-rows>div .nb-finance-installment-pay{grid-column:3;grid-row:1/3;align-self:center;text-align:center}.nb-finance-installment-rows strong{justify-self:start}.nb-finance-installment-rows .nb-finance-money{font-size:8.5px}
  body.nb-account-finance-page .content-shell__inner--narrow{width:min(calc(100% - 24px),var(--container,1180px))}
}

/* v2.0 — Billing invoices and direct invoice payment. */
.nb-finance-flash{padding:12px 14px;border:1px solid #2a2a2a;border-radius:10px;background:#090909;color:#aeb7c0;font-size:9px;line-height:1.9}
.nb-finance-flash.is-success{border-color:rgba(12,162,28,.34);background:rgba(12,162,28,.045);color:#71d87c}
.nb-finance-flash.is-warning{border-color:rgba(204,153,31,.34);background:rgba(204,153,31,.035);color:#d7b45d}
.nb-finance-flash.is-danger{border-color:rgba(190,73,73,.34);background:rgba(190,73,73,.035);color:#df8c8c}
.nb-finance-invoice-list{display:grid;gap:10px}
.nb-finance-invoice{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px 18px;padding:16px;border:1px solid #222;border-radius:13px;background:#090909}
.nb-finance-invoice__main small{color:#68737f;font-size:7.5px}.nb-finance-invoice__main h3{margin:4px 0 0;font-size:13px}.nb-finance-invoice__main p{margin:5px 0 0;color:#78838f;font-size:8px;line-height:1.8}
.nb-finance-invoice__amount{display:grid;justify-items:end;align-content:start;gap:4px}.nb-finance-invoice__amount strong{font-size:11px}.nb-finance-invoice__amount>span{color:#8d98a4;font-size:7.5px}
.nb-finance-invoice__meta{display:flex;align-items:center;gap:12px;color:#6d7884;font-size:7.5px}.nb-finance-invoice__meta a{color:#8ca0b3;text-decoration:none}
.nb-finance-invoice__pay,.nb-finance-invoice__locked{justify-self:end;align-self:center;min-height:34px;padding:7px 11px;border-radius:8px;font-size:8px;font-weight:850;text-decoration:none}
.nb-finance-invoice__pay{display:inline-flex;align-items:center;border:1px solid #0ca21c;background:#0ca21c;color:#fff!important}.nb-finance-invoice__locked{border:1px solid #242424;color:#737d88;background:#0b0b0b}
.nb-finance-invoice-history{display:grid}.nb-finance-invoice-history>div{min-height:52px;display:grid;grid-template-columns:95px minmax(0,1fr) 140px 125px;align-items:center;gap:10px;border-bottom:1px solid #1d1d1d}.nb-finance-invoice-history>div:last-child{border-bottom:0}.nb-finance-invoice-history span{font-size:7.5px;color:#8a95a0}.nb-finance-invoice-history span.is-paid{color:#65d270}.nb-finance-invoice-history strong{font-size:8.5px}.nb-finance-invoice-history b{font-size:8.5px}.nb-finance-invoice-history small{color:#68737e;font-size:7.5px}
.nb-finance-pay{display:grid;gap:14px;max-width:920px;margin:0 auto;font-family:var(--font-sans,"NabeghehaCustom","Segoe UI",Tahoma,Arial,sans-serif)}
.nb-finance-pay__hero{padding:24px;display:flex;align-items:center;justify-content:space-between;gap:24px;border:1px solid rgba(48,25,132,.38);border-radius:17px;background:radial-gradient(circle at 100% 0,rgba(48,25,132,.16),transparent 42%),#080808}.nb-finance-pay__hero small{color:#8c7fd4;font-size:8.5px}.nb-finance-pay__hero h1{margin:5px 0 0;font-size:24px}.nb-finance-pay__hero p{margin:6px 0 0;color:#7c8793;font-size:8.5px}.nb-finance-pay__hero>strong{font-size:17px;white-space:nowrap}
.nb-finance-pay__form{padding:20px;border:1px solid #242424;border-radius:16px;background:#080808;display:grid;gap:14px}
.nb-finance-pay__wallet{padding:13px;border:1px solid rgba(12,162,28,.25);border-radius:11px;background:rgba(12,162,28,.035);display:flex;align-items:center;gap:10px;cursor:pointer}.nb-finance-pay__wallet input{appearance:none;-webkit-appearance:none;width:18px;height:18px;margin:0;border:1px solid #455048;border-radius:5px;background:#080908;position:relative}.nb-finance-pay__wallet input:checked{border-color:#24bb37;background:#0ca21c}.nb-finance-pay__wallet input:checked:after{content:"✓";position:absolute;inset:0;display:grid;place-items:center;color:#fff;font-size:11px;font-weight:900}.nb-finance-pay__wallet>span{display:grid;gap:3px}.nb-finance-pay__wallet strong{font-size:9px}.nb-finance-pay__wallet small{font-size:7.5px;color:#67d272}
.nb-finance-pay__gateways{display:grid;grid-template-columns:1fr 1fr;gap:8px}.nb-finance-pay__gateways h2{grid-column:1/-1;margin:0 0 2px;font-size:13px}.nb-finance-pay__gateways label{min-height:58px;padding:11px 12px;border:1px solid #242424;border-radius:10px;background:#090909;display:flex;align-items:center;gap:9px;cursor:pointer}.nb-finance-pay__gateways input{accent-color:#0ca21c}.nb-finance-pay__gateways label>span{display:grid;gap:3px}.nb-finance-pay__gateways strong{font-size:9px}.nb-finance-pay__gateways small{font-size:7px;color:#8c7fd4}
.nb-finance-pay__summary{border:1px solid #212121;border-radius:11px;overflow:hidden}.nb-finance-pay__summary>div{min-height:44px;padding:9px 12px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #1c1c1c}.nb-finance-pay__summary>div:last-child{border-bottom:0}.nb-finance-pay__summary span{color:#7d8792;font-size:8px}.nb-finance-pay__summary strong{font-size:9px}.nb-finance-pay__summary .is-total{background:#0b0b0b}.nb-finance-pay__summary .is-total span{color:#b8c0c8}.nb-finance-pay__summary .is-total strong{font-size:11px}
.nb-finance-pay__submit{min-height:46px;border:1px solid #0ca21c;border-radius:9px;background:#0ca21c;color:#fff;font:inherit;font-size:10px;font-weight:900;cursor:pointer}.nb-finance-pay__submit:disabled{opacity:.45;cursor:not-allowed}.nb-finance-back-link{justify-self:center;color:#77828e!important;font-size:8px;text-decoration:none!important}
.nb-order-billing-history{margin-top:16px;padding:18px 20px;border:1px solid #242424;border-radius:15px;background:#080808;direction:rtl}.nb-order-billing-history>header small{color:#8c7fd4;font-size:8px}.nb-order-billing-history>header h2{margin:4px 0 5px;font-size:18px}.nb-order-billing-history>header p{margin:0;color:#747f8a;font-size:8.5px;line-height:1.8}.nb-order-billing-history__list{margin-top:12px;border-top:1px solid #202020}.nb-order-billing-history__list>div{min-height:48px;display:grid;grid-template-columns:80px minmax(0,1fr) 120px 145px auto;align-items:center;gap:10px;border-bottom:1px solid #1c1c1c}.nb-order-billing-history__list span,.nb-order-billing-history__list small{font-size:7.5px;color:#75808b}.nb-order-billing-history__list strong{font-size:8.5px}.nb-order-billing-history__list b{font-size:8.5px}.nb-order-billing-history__list a{padding:5px 8px;border:1px solid rgba(12,162,28,.3);border-radius:7px;color:#67d272!important;font-size:7.5px;text-decoration:none!important}
@media(max-width:700px){
  .nb-finance-invoice{grid-template-columns:1fr}.nb-finance-invoice__amount{justify-items:start}.nb-finance-invoice__meta{flex-wrap:wrap}.nb-finance-invoice__pay,.nb-finance-invoice__locked{justify-self:stretch;text-align:center;justify-content:center}
  .nb-finance-invoice-history>div{grid-template-columns:1fr auto;padding:9px 0}.nb-finance-invoice-history small{grid-column:1/-1}
  .nb-finance-pay__hero{display:grid;padding:18px}.nb-finance-pay__hero h1{font-size:20px}.nb-finance-pay__hero>strong{font-size:15px}.nb-finance-pay__gateways{grid-template-columns:1fr}
  .nb-order-billing-history{padding:15px}.nb-order-billing-history__list>div{grid-template-columns:70px minmax(0,1fr) auto;gap:6px 8px;padding:8px 0}.nb-order-billing-history__list small{grid-column:2/-1}.nb-order-billing-history__list a{grid-column:3;grid-row:1/3}
}
body.nb-account-finance-pay-page .nb-account-switcher__item--finance{border-color:rgba(12,162,28,.34);background:rgba(12,162,28,.055);color:#fff}

/* =========================================================
   v2.2 — Customer finance UX polish
   ========================================================= */
.nb-finance-choice,.nb-finance-modal,.nb-finance-account,.nb-finance-pay,.nb-order-installment-status,.nb-order-billing-history,
.nb-finance-choice *, .nb-finance-modal *, .nb-finance-account *, .nb-finance-pay *, .nb-order-installment-status *, .nb-order-billing-history *{
    font-family:var(--font-sans,"NabeghehaCustom","Segoe UI",Tahoma,Arial,sans-serif)!important;
}
.nb-finance-money{display:inline-flex!important;align-items:baseline!important;gap:5px!important;direction:rtl!important;unicode-bidi:isolate!important;white-space:nowrap!important;line-height:1.25}
.nb-finance-money__number{font-family:inherit!important;font-weight:900!important;unicode-bidi:isolate!important;direction:ltr!important}
.nb-finance-money__currency{font-family:inherit!important;color:#7e8894!important;font-size:.72em!important;font-weight:700!important;margin:0!important}

/* Product installment modal. */
.nb-finance-modal__card header button[data-nb-modal-close]{display:grid!important;place-items:center!important;padding:0!important;line-height:0!important}
.nb-finance-modal__card header button[data-nb-modal-close] svg{display:block;width:17px;height:17px;margin:0!important}
.nb-finance-schedule__row{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(125px,auto)!important;grid-template-rows:auto auto!important;align-items:center!important;gap:5px 16px!important;padding:12px 14px!important}
.nb-finance-schedule__date{grid-column:1;grid-row:1;min-width:0}
.nb-finance-schedule__row>small{grid-column:1;grid-row:2;padding:0 36px 0 0!important;color:#66727d;font-size:8px;line-height:1.8}
.nb-finance-schedule__row>strong{grid-column:2;grid-row:1/3;align-self:center!important;justify-self:end!important;display:flex;align-items:center;min-height:100%}
.nb-finance-schedule__row>strong .nb-finance-money{font-size:11px}

/* Finance overview. */
.nb-finance-account{font-family:var(--font-sans)!important}
.nb-finance-invoice{grid-template-columns:minmax(0,1fr) 180px!important;grid-template-areas:"main amount" "meta action";align-items:center!important;gap:12px 20px!important;padding:17px 18px!important}
.nb-finance-invoice__main{grid-area:main}.nb-finance-invoice__main small{color:#65717d!important}.nb-finance-invoice__main h3{font-family:inherit!important;font-size:14px!important;line-height:1.8!important}
.nb-finance-invoice__amount{grid-area:amount;align-self:center!important;align-content:center!important;justify-items:start!important;min-height:58px}.nb-finance-invoice__amount strong{font-size:12px!important}.nb-finance-invoice__amount>span{font-size:8px!important}
.nb-finance-invoice__meta{grid-area:meta;min-height:30px}.nb-finance-invoice__meta a{text-decoration:none!important}
.nb-finance-invoice__pay,.nb-finance-invoice__locked{grid-area:action;justify-self:stretch!important;min-height:38px!important;display:flex!important;align-items:center!important;justify-content:center!important;text-align:center!important;text-decoration:none!important}
.nb-finance-plan header b,.nb-finance-installment-rows span,.nb-finance-installment-rows small,.nb-finance-installment-rows em{font-family:inherit!important}
.nb-finance-installment-pay{min-width:92px!important;text-decoration:none!important}
.nb-finance-plan footer{justify-content:center!important}.nb-finance-plan footer a{min-width:140px;text-decoration:none!important}
.nb-finance-invoice-history>div{grid-template-columns:105px minmax(0,1fr) 150px 145px!important;gap:14px!important}.nb-finance-invoice-history strong{font-size:9px!important;line-height:1.8}.nb-finance-invoice-history b{font-size:9px!important}
.nb-finance-ledger>div{grid-template-columns:165px minmax(0,1fr) 145px!important}.nb-finance-ledger>div>span{direction:rtl!important;text-align:right!important}.nb-finance-ledger .nb-finance-money{font-size:9px!important}

/* Direct invoice payment: same width as account nav and one consistent selection language. */
.nb-finance-pay{width:100%!important;max-width:none!important;margin:0!important;gap:14px!important}
.nb-finance-pay__hero{min-height:120px;padding:22px 24px!important}.nb-finance-pay__hero small{font-size:9px!important}.nb-finance-pay__hero h1{font-family:inherit!important;font-size:25px!important;line-height:1.65!important}.nb-finance-pay__hero>strong{font-size:18px!important;align-self:center!important}
.nb-finance-pay__form{padding:22px!important;gap:16px!important}
.nb-finance-pay__summary{order:1;border-radius:13px!important}.nb-finance-pay__summary>div{min-height:51px!important;padding:11px 14px!important}.nb-finance-pay__summary span{font-size:9px!important}.nb-finance-pay__summary strong{font-size:10px!important}.nb-finance-pay__summary .is-total{min-height:62px!important;background:rgba(12,162,28,.025)!important}.nb-finance-pay__summary .is-total span{color:#d5dce2!important;font-weight:850}.nb-finance-pay__summary .is-total strong{font-size:13px!important;color:#68d474!important}
.nb-finance-pay__choices{order:2;display:grid;gap:14px;padding-top:2px}
.nb-finance-pay__wallet{margin:0!important}
.nb-finance-pay__choice{position:relative;min-height:68px;padding:13px 15px!important;border:1px solid #252b27!important;border-radius:13px!important;background:#090a09!important;display:flex!important;align-items:center!important;gap:12px!important;cursor:pointer!important;transition:border-color .18s ease,background .18s ease,box-shadow .18s ease}
.nb-finance-pay__choice:has(input:checked){border-color:rgba(12,162,28,.55)!important;background:rgba(12,162,28,.05)!important;box-shadow:inset 0 0 0 1px rgba(12,162,28,.10)}
.nb-finance-pay__choice input{position:absolute!important;opacity:0!important;pointer-events:none!important;width:1px!important;height:1px!important}
.nb-finance-pay__choice-mark{width:25px;height:25px;flex:0 0 25px;border:1px solid #3e4942;border-radius:8px;background:#070807;display:grid;place-items:center;order:-1}
.nb-finance-pay__choice-mark::after{content:"";width:9px;height:5px;border-right:2px solid transparent;border-bottom:2px solid transparent;transform:rotate(45deg) translateY(-1px)}
.nb-finance-pay__choice input:checked+.nb-finance-pay__choice-mark{border-color:#25c53b;background:#0ca21c}.nb-finance-pay__choice input:checked+.nb-finance-pay__choice-mark::after{border-color:#fff}
.nb-finance-pay__choice-mark.is-radio{border-radius:50%}.nb-finance-pay__choice-mark.is-radio::after{width:9px;height:9px;border:0;border-radius:50%;background:transparent;transform:none}.nb-finance-pay__choice input:checked+.nb-finance-pay__choice-mark.is-radio{background:#071108}.nb-finance-pay__choice input:checked+.nb-finance-pay__choice-mark.is-radio::after{background:#24c83b}
.nb-finance-pay__choice-copy{display:grid!important;gap:4px!important;min-width:0;flex:1}.nb-finance-pay__choice-copy strong{font-size:10px!important;color:#e6ebee}.nb-finance-pay__choice-copy small{font-size:8px!important;color:#6f7b86!important;line-height:1.7}.nb-finance-pay__choice-copy .nb-finance-money{font-size:8px!important;color:#67d272}
.nb-finance-pay__sandbox{display:inline-flex!important;width:max-content;padding:2px 7px;border:1px solid rgba(140,127,212,.25);border-radius:999px;color:#9d91df!important;background:rgba(48,25,132,.08)}
.nb-finance-pay__gateways{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}.nb-finance-pay__gateways h2{grid-column:1/-1;margin:0 0 2px!important;font-family:inherit!important;font-size:12px!important}.nb-finance-pay__gateways label{min-height:68px!important}
.nb-finance-pay__submit{order:3;min-height:50px!important;font-size:11px!important}.nb-finance-back-link{order:4;text-decoration:none!important}

/* Order-detail finance history. */
.nb-order-billing-history{padding:20px!important}.nb-order-billing-history>header{padding-bottom:15px;border-bottom:1px solid #1d1d1d}.nb-order-billing-history>header h2{font-family:inherit!important;font-size:20px!important}.nb-order-billing-history>header p{max-width:760px;font-size:9px!important}
.nb-order-billing-history__head{display:grid;grid-template-columns:minmax(0,1fr) 150px 190px 90px;gap:12px;padding:10px 12px;color:#68737e;font-size:8px;border-bottom:1px solid #1f1f1f}
.nb-order-billing-history__list{margin-top:0!important;border-top:0!important}
.nb-order-billing-history__list>div{min-height:62px!important;display:grid!important;grid-template-columns:minmax(0,1fr) 150px 190px 90px!important;align-items:center!important;gap:12px!important;padding:10px 12px!important}
.nb-order-billing-history__list strong{font-family:inherit!important;font-size:9.5px!important;line-height:1.8}.nb-order-billing-history__list b{font-size:9.5px!important}.nb-order-billing-history__list small{display:grid;gap:3px;font-size:8px!important}.nb-order-billing-history__list small time{color:#66717d}.nb-order-billing-history__list a{width:100%;min-height:34px;display:flex;align-items:center;justify-content:center;text-decoration:none!important}
.nb-order-installment-status__actions a{text-decoration:none!important}

@media(max-width:700px){
  .nb-finance-schedule__row{grid-template-columns:minmax(0,1fr) 120px!important;grid-template-rows:auto auto!important;padding:11px 10px!important}.nb-finance-schedule__row>strong{grid-column:2;grid-row:1/3;align-self:center!important}.nb-finance-schedule__row>small{grid-column:1;grid-row:2;padding-right:36px!important}.nb-finance-modal__card header button[data-nb-modal-close]{width:38px!important;height:38px!important;flex:0 0 38px!important}
  .nb-finance-account__section>header{align-items:center!important}.nb-finance-invoice{grid-template-columns:1fr!important;grid-template-areas:"main" "amount" "meta" "action"!important;padding:14px!important}.nb-finance-invoice__amount{min-height:0!important;display:flex!important;justify-content:space-between!important;align-items:center!important;justify-items:unset!important}.nb-finance-invoice__meta{justify-content:flex-start}.nb-finance-invoice__pay,.nb-finance-invoice__locked{width:100%!important}
  .nb-finance-plan>header{display:grid!important;gap:8px}.nb-finance-plan>header b{justify-self:start}.nb-finance-installment-rows>div{grid-template-columns:minmax(0,1fr) auto!important;grid-template-areas:"label amount" "date action"!important;gap:7px 10px!important;padding:12px 0!important}.nb-finance-installment-rows>div>span{grid-area:label}.nb-finance-installment-rows>div>strong{grid-area:amount;justify-self:end!important}.nb-finance-installment-rows>div>small{grid-area:date!important;text-align:right!important}.nb-finance-installment-rows>div>em,.nb-finance-installment-rows>div>.nb-finance-installment-pay{grid-area:action!important;justify-self:end!important;align-self:center!important}.nb-finance-installment-pay{min-width:110px!important}.nb-finance-plan footer{display:flex!important;justify-content:center!important}.nb-finance-plan footer a{width:100%!important;max-width:230px}
  .nb-finance-invoice-history>div{grid-template-columns:1fr auto!important;grid-template-areas:"title status" "amount date"!important;gap:7px 10px!important;padding:12px 0!important}.nb-finance-invoice-history>div>span{grid-area:status;justify-self:end}.nb-finance-invoice-history>div>strong{grid-area:title}.nb-finance-invoice-history>div>b{grid-area:amount}.nb-finance-invoice-history>div>small{grid-area:date!important;justify-self:end}.nb-finance-ledger>div{grid-template-columns:1fr auto!important;grid-template-areas:"note amount" "date date"!important;gap:6px 10px!important;padding:12px 0!important}.nb-finance-ledger>div>strong{grid-area:note}.nb-finance-ledger>div>span{grid-area:amount;justify-self:end}.nb-finance-ledger>div>small{grid-area:date!important;text-align:right!important}
  .nb-finance-pay__hero{padding:18px!important}.nb-finance-pay__hero h1{font-size:20px!important}.nb-finance-pay__form{padding:14px!important}.nb-finance-pay__gateways{grid-template-columns:1fr!important}.nb-finance-pay__choice{min-height:64px!important}.nb-finance-pay__summary>div{min-height:48px!important}
  .nb-order-installment-status{display:grid!important;text-align:right!important}.nb-order-installment-status__actions{display:grid!important;grid-template-columns:1fr!important;width:100%!important}.nb-order-installment-status__actions a,.nb-order-installment-status__actions span{width:100%!important;min-height:42px!important;text-align:center!important;justify-content:center!important}
  .nb-order-billing-history{padding:15px!important}.nb-order-billing-history__head{display:none!important}.nb-order-billing-history__list>div{grid-template-columns:1fr auto!important;grid-template-areas:"title amount" "status status" "action action"!important;gap:8px 10px!important;padding:13px 0!important}.nb-order-billing-history__list>div>strong{grid-area:title}.nb-order-billing-history__list>div>b{grid-area:amount;justify-self:end}.nb-order-billing-history__list>div>small{grid-area:status;display:flex!important;align-items:center;justify-content:space-between;gap:8px}.nb-order-billing-history__list>div>a{grid-area:action!important;width:100%!important;min-height:39px!important}
}

/* v2.2 final UX corrections. */
.nb-finance-modal__card header button[data-nb-modal-close]{
    display:grid!important;
    place-items:center!important;
    padding:0!important;
    line-height:0!important;
    text-indent:0!important;
}
.nb-finance-modal__card header button[data-nb-modal-close] svg{
    width:16px!important;height:16px!important;
    margin:auto!important;
    transform:none!important;
}
.nb-finance-schedule__row>strong{
    align-self:center!important;
    display:flex!important;
    align-items:center!important;
    justify-content:flex-end!important;
    height:100%!important;
}
.nb-finance-schedule__row>strong .nb-finance-money{align-items:center!important}

/* One selection language: gateways and wallet use the same square check state. */
.nb-finance-pay__choice-mark.is-radio{border-radius:8px!important}
.nb-finance-pay__choice-mark.is-radio::after{
    width:9px!important;height:5px!important;
    border-right:2px solid transparent!important;
    border-bottom:2px solid transparent!important;
    border-radius:0!important;
    background:transparent!important;
    transform:rotate(45deg) translateY(-1px)!important;
}
.nb-finance-pay__choice input:checked+.nb-finance-pay__choice-mark.is-radio{
    border-color:#25c53b!important;
    background:#0ca21c!important;
}
.nb-finance-pay__choice input:checked+.nb-finance-pay__choice-mark.is-radio::after{
    border-color:#fff!important;
    background:transparent!important;
}
.nb-finance-pay__gateways{grid-template-columns:1fr!important}
.nb-finance-pay__gateways h2{margin-top:2px!important;color:#d9dedb!important;font-size:10px!important}
.nb-finance-pay__gateway{width:100%!important}
.nb-finance-pay__sandbox{margin-top:1px!important}

/* Keep money inseparable and bidi-safe everywhere the plugin renders it. */
.nb-finance-money{
    display:inline-flex!important;
    align-items:center!important;
    gap:5px!important;
    direction:rtl!important;
    white-space:nowrap!important;
    font-family:var(--font-sans)!important;
}
.nb-finance-money__number{order:1!important;direction:ltr!important;unicode-bidi:isolate!important;font-family:inherit!important}
.nb-finance-money__currency{order:2!important;margin:0!important;font-family:inherit!important}

/* Customer-facing finance records: cleaner alignment and no accidental underlines. */
.nb-finance-account a,.nb-finance-pay a,.nb-order-billing-history a,.nb-order-installment-status a{text-decoration:none!important;border-bottom:0!important}
.nb-finance-plan>header h3,.nb-finance-invoice h3,.nb-finance-invoice-history strong,.nb-order-billing-history strong{font-family:var(--font-sans)!important}
.nb-finance-installment-rows>div{align-items:center!important}
.nb-finance-installment-rows>div>strong{align-self:center!important}
.nb-finance-plan footer{gap:8px!important}

@media(max-width:700px){
    .nb-finance-account__section{padding:15px!important}
    .nb-finance-account__section>header{display:flex!important;align-items:flex-start!important;gap:10px!important}
    .nb-finance-account__section>header>div{min-width:0;flex:1}
    .nb-finance-invoice-history>div{align-items:center!important}
    .nb-finance-ledger>div{align-items:center!important}
    .nb-order-billing-history__list>div{border-bottom:1px solid #1d1d1d!important}
    .nb-order-billing-history__list>div:last-child{border-bottom:0!important}
}


/* v2.2.1 — compact choice + checkout policy polish */

.nb-finance-choice__switch button small{
    display:inline-flex;
    align-items:baseline;
    justify-content:flex-start;
    gap:4px;
}

.nb-finance-choice__switch .nb-finance-money{
    gap:3px;
}

.nb-finance-choice__switch .nb-finance-money__currency{
    margin:0;
}

.nb-installment-checkout-policy{
    margin:8px 0 0;
    padding:0;
    border:0;
    border-radius:0;
    background:none;
}

.nb-installment-checkout-policy label{
    align-items:center;
    gap:10px;
    font-size:8.7px;
    line-height:1.8;
}

.nb-installment-checkout-policy label > span{
    flex:1 1 auto;
}

@media(max-width:767px){
  .nb-finance-choice__switch button small{gap:3px}
  .nb-finance-choice__switch .nb-finance-money{gap:2px}
  .nb-installment-checkout-policy label{align-items:flex-start;font-size:8.2px;line-height:1.85}
}


/* v2.2.2 — exact installment price spacing */

/* The installment option must render exactly like the full-payment amount:
   ۱,۵۹۹,۰۰۰ تومان — no stretched flex gap between number and currency. */
.nb-finance-choice__switch button[data-nb-mode="installment"] small{
    width:max-content!important;
    max-width:100%!important;
    justify-self:start!important;
    justify-content:flex-start!important;
    align-items:baseline!important;
    column-gap:7px!important;
}
.nb-finance-choice__switch button[data-nb-mode="installment"] small > span:first-child{
    flex:0 0 auto!important;
}
.nb-finance-choice__switch button[data-nb-mode="installment"] .nb-finance-money{
    width:auto!important;
    max-width:max-content!important;
    flex:0 0 auto!important;
    justify-content:flex-start!important;
    gap:4px!important;
}
.nb-finance-choice__switch button[data-nb-mode="installment"] .nb-finance-money__number,
.nb-finance-choice__switch button[data-nb-mode="installment"] .nb-finance-money__currency{
    flex:0 0 auto!important;
    margin:0!important;
}


/* v2.2.3 — guaranteed compact installment currency spacing */

.nb-finance-choice__switch button[data-nb-mode="installment"] small{
    width:auto!important;
    max-width:100%!important;
    display:flex!important;
    align-items:baseline!important;
    justify-content:flex-start!important;
    gap:7px!important;
}
.nb-finance-choice__compact-money{
    display:inline!important;
    width:auto!important;
    margin:0!important;
    padding:0!important;
    white-space:nowrap!important;
    direction:rtl!important;
    unicode-bidi:isolate!important;
    color:#7e8792!important;
    font-family:var(--font-sans,"NabeghehaCustom","Segoe UI",Tahoma,Arial,sans-serif)!important;
    font-size:9px!important;
    font-weight:850!important;
    letter-spacing:0!important;
    word-spacing:0!important;
}
.nb-finance-choice__switch button[data-nb-mode="installment"].is-active .nb-finance-choice__compact-money{
    color:#6fd47a!important;
}
@media(max-width:700px){
    .nb-finance-choice__compact-money{font-size:8px!important}
}


/* v2.2.4 — final UI polish for finance/payment surfaces */
.nb-finance-pay__choice-mark,
.nb-finance-pay__choice-mark.is-radio{
    border-radius:8px!important;
}
.nb-finance-pay__choice-mark::after,
.nb-finance-pay__choice-mark.is-radio::after{
    content:"✓"!important;
    width:auto!important;
    height:auto!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    color:transparent!important;
    font-size:13px!important;
    font-weight:900!important;
    line-height:1!important;
    transform:none!important;
}
.nb-finance-pay__choice input:checked + .nb-finance-pay__choice-mark::after,
.nb-finance-pay__choice input:checked + .nb-finance-pay__choice-mark.is-radio::after{
    color:#fff!important;
}
.nb-finance-installment-rows{
    padding-inline:12px!important;
}
.nb-finance-installment-rows>div{
    padding-inline:2px!important;
}
.nb-finance-installment-pay,
.nb-finance-plan footer a,
.nb-order-installment-status__actions a{
    box-shadow:inset 0 0 0 1px rgba(255,255,255,.02)!important;
    background-clip:padding-box!important;
}
.nb-finance-installment-pay{
    min-width:102px!important;
    max-width:100%!important;
}
.nb-order-installment-status__actions{
    align-items:stretch!important;
}
.nb-order-installment-status__actions a,
.nb-order-installment-status__actions span{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    min-height:39px!important;
}
.nb-order-billing-history__list>div,
.nb-finance-plan,
.nb-finance-account__section{
    overflow:visible!important;
}


/* v2.2.6 — restore stable invoice cards; only fix the requested installment actions. */
.nb-finance-plan--completed{
    border-color:#252525!important;
    background:#090909!important;
}

/* Keep the installment row action inside its own column and visually centered. */
@media(min-width:701px){
    .nb-finance-installment-rows>div{
        grid-template-columns:80px minmax(0,1fr) 100px 132px!important;
    }
    .nb-finance-installment-rows>div>.nb-finance-installment-pay{
        justify-self:center!important;
        width:108px!important;
        min-width:108px!important;
        max-width:108px!important;
        margin-inline:auto!important;
    }
}

/* The order-details action should have a clean border, not a clipped/inset shadow. */
.nb-finance-plan footer a,
.nb-order-installment-status__actions a{
    box-shadow:none!important;
    filter:none!important;
    outline:0!important;
    background-clip:border-box!important;
}


/* v2.2.7 — no clipped actions; one stable action column. */
.nb-finance-invoice__pay,
.nb-finance-plan footer a,
.nb-finance-installment-pay,
.nb-order-installment-status__actions a{
    box-sizing:border-box!important;
    position:relative!important;
    overflow:visible!important;
    clip-path:none!important;
    filter:none!important;
    box-shadow:none!important;
    outline:0!important;
    line-height:1.2!important;
}
.nb-finance-invoice__pay{
    height:38px!important;
    min-height:38px!important;
    padding:0 14px!important;
    border:1px solid #0ca21c!important;
    border-radius:8px!important;
}
.nb-finance-plan footer{
    margin-top:14px!important;
    padding:1px 0 3px!important;
    overflow:visible!important;
}
.nb-finance-plan footer a{
    height:40px!important;
    min-height:40px!important;
    padding:0 16px!important;
    border:1px solid #292929!important;
    border-radius:8px!important;
    background:#090909!important;
}
@media(min-width:701px){
    .nb-finance-installment-rows{
        padding-inline:0!important;
    }
    .nb-finance-installment-rows>div{
        min-height:58px!important;
        grid-template-columns:80px minmax(0,1fr) 104px 112px!important;
        gap:10px!important;
        padding:0 0!important;
        align-items:center!important;
    }
    .nb-finance-installment-rows>div>em,
    .nb-finance-installment-rows>div>.nb-finance-installment-pay{
        width:96px!important;
        min-width:96px!important;
        max-width:96px!important;
        justify-self:center!important;
        align-self:center!important;
        margin:0!important;
        text-align:center!important;
    }
    .nb-finance-installment-pay{
        height:34px!important;
        min-height:34px!important;
        padding:0 10px!important;
        border:1px solid rgba(12,162,28,.32)!important;
        border-radius:7px!important;
    }
}
@media(max-width:700px){
    .nb-finance-invoice__pay,
    .nb-finance-plan footer a,
    .nb-finance-installment-pay{
        min-height:40px!important;
        height:40px!important;
    }
}


/* v2.2.8 — restore the actual bottom edge that the generic link cleanup removed. */
.nb-finance-account a.nb-finance-installment-pay{
    border:1px solid rgba(12,162,28,.32)!important;
    border-bottom:1px solid rgba(12,162,28,.32)!important;
    border-radius:7px!important;
    background:rgba(12,162,28,.07)!important;
    box-shadow:none!important;
    overflow:visible!important;
    background-clip:border-box!important;
}
.nb-order-installment-status .nb-order-installment-status__actions a{
    border:1px solid #292929!important;
    border-bottom:1px solid #292929!important;
    border-radius:8px!important;
    box-shadow:none!important;
    overflow:visible!important;
    background-clip:border-box!important;
}
.nb-order-installment-status .nb-order-installment-status__actions a.is-primary{
    border-color:#0ca21c!important;
    border-bottom-color:#0ca21c!important;
}
