/* FollowerAbzar 80.2.5 - visual/pricing hotfix layer. */

/* Verified payment-card selector: keep it on a full row and out of the amount grid. */
.fasmm-zibal-pay-form>.fasmm-payment-card-choice-box,
.fasmm-card-transfer-form>.fasmm-payment-card-choice-box,
.fasmm-wallet-payment-panel .fasmm-payment-card-choice-box{
  grid-column:1/-1!important;
  width:100%!important;
  min-width:0!important;
}
.fasmm-payment-card-choice-box{
  display:grid!important;
  gap:10px!important;
  margin:0!important;
  padding:13px!important;
  border:1px solid var(--fasmm-border,#e2e8f0)!important;
  border-radius:13px!important;
  background:var(--fasmm-bg-surface-2,#f8fafc)!important;
  color:var(--fasmm-text-primary,#1e293b)!important;
  box-shadow:none!important;
}
.fasmm-payment-card-choice-heading{
  display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0;
  padding:0 2px 2px;
}
.fasmm-payment-card-choice-heading>div{display:grid;gap:2px;min-width:0}
.fasmm-payment-card-choice-heading strong{font-size:12px;font-weight:900;color:var(--fasmm-text-primary,#1e293b)}
.fasmm-payment-card-choice-heading small{font-size:10px;line-height:1.7;color:var(--fasmm-text-secondary,#64748b)}
.fasmm-payment-card-choice-heading>.ri{font-size:20px;color:var(--fasmm-primary,#4f46e5);flex:0 0 auto}
.fasmm-payment-selected-card-preview{width:100%;min-width:0;margin:0!important}
.fasmm-payment-selected-card-preview .fasmm-real-bank-card.fasmm-bank-card-text{
  width:100%!important;min-width:0!important;padding:11px 12px!important;
  border-color:var(--fasmm-border,#e2e8f0)!important;
  background:var(--fasmm-bg-surface,#fff)!important;
}
.fasmm-payment-card-choice-box .fasmm-bank-card-text__main{min-width:0!important;flex:1 1 auto!important}
.fasmm-payment-card-choice-box .fasmm-bank-card-text__main>b{min-width:0;max-width:210px;overflow:hidden;text-overflow:ellipsis}
.fasmm-payment-card-choice-box .fasmm-payment-card-toggle{
  position:relative!important;z-index:1!important;width:100%!important;min-height:44px!important;
  display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;
  padding:10px 12px!important;border:1px solid var(--fasmm-border,#e2e8f0)!important;border-radius:10px!important;
  background:var(--fasmm-bg-surface,#fff)!important;color:var(--fasmm-text-primary,#1e293b)!important;
  text-align:right!important;box-shadow:none!important;
}
.fasmm-payment-card-choice-box .fasmm-payment-card-toggle>span{display:flex;align-items:center;gap:7px;min-width:0}
.fasmm-payment-card-choice-box .fasmm-payment-card-toggle>span>.ri{font-size:17px;color:var(--fasmm-primary,#4f46e5)}
.fasmm-payment-card-choice-box .fasmm-payment-card-toggle strong{font-size:12px;font-weight:900}
.fasmm-payment-card-choice-box .fasmm-payment-card-toggle>.ri{font-size:18px;transition:transform .16s ease}
.fasmm-payment-card-choice-box.open .fasmm-payment-card-toggle>.ri{transform:rotate(180deg)}
.fasmm-payment-card-choice-box .fasmm-payment-card-picker[hidden]{display:none!important}
.fasmm-payment-card-choice-box.open .fasmm-payment-card-picker:not([hidden]){
  display:grid!important;position:relative!important;inset:auto!important;top:auto!important;right:auto!important;left:auto!important;bottom:auto!important;
  z-index:2!important;width:100%!important;max-height:310px!important;overflow:auto!important;
  margin:0!important;padding:7px!important;gap:7px!important;
  border:1px solid var(--fasmm-border,#e2e8f0)!important;border-radius:11px!important;
  background:var(--fasmm-bg-surface,#fff)!important;box-shadow:none!important;
}
.fasmm-payment-card-choice-box .fasmm-bank-card-choice{padding:2px!important;border-radius:10px!important}
.fasmm-payment-card-choice-box .fasmm-bank-card-choice.is-active{border-color:var(--fasmm-primary,#4f46e5)!important;background:color-mix(in srgb,var(--fasmm-primary,#4f46e5) 7%,transparent)!important}
.fasmm-payment-card-choice-box .fasmm-payment-card-verification-note{
  display:flex!important;align-items:flex-start!important;gap:7px!important;padding:9px 10px!important;
  border:1px solid color-mix(in srgb,var(--fasmm-info-border,#93c5fd) 75%,var(--fasmm-border,#e2e8f0))!important;
  border-radius:9px!important;background:var(--fasmm-info-bg,#eff6ff)!important;color:var(--fasmm-info-text,#1e40af)!important;
  font-size:10px!important;font-weight:700!important;line-height:1.75!important;
}
.fasmm-payment-card-choice-box .fasmm-add-payment-card-btn{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;width:max-content!important;max-width:100%!important;
  min-height:34px!important;padding:7px 10px!important;border:1px solid var(--fasmm-border,#e2e8f0)!important;border-radius:9px!important;
  background:var(--fasmm-bg-surface,#fff)!important;color:var(--fasmm-primary,#4f46e5)!important;text-decoration:none!important;
  font-size:10px!important;font-weight:900!important;box-shadow:none!important;
}

/* New-order dark mode: override historical hard-coded white controls. */
/* 80.2.6: SMM dark-mode overrides removed. */
/* Card selector dark mode. */
body.fasmm-dark .fasmm-payment-card-choice-box,
[data-theme="dark"] .fasmm-payment-card-choice-box{
  background:var(--fasmm-bg-surface-2,#2d2941)!important;border-color:var(--fasmm-border,#49445f)!important;color:var(--fasmm-text-primary,#f8f6fc)!important;
}
body.fasmm-dark .fasmm-payment-card-choice-heading strong,
[data-theme="dark"] .fasmm-payment-card-choice-heading strong{color:var(--fasmm-text-primary,#f8f6fc)!important}
body.fasmm-dark .fasmm-payment-card-choice-heading small,
[data-theme="dark"] .fasmm-payment-card-choice-heading small{color:var(--fasmm-text-secondary,#c4bdcf)!important}
body.fasmm-dark .fasmm-payment-selected-card-preview .fasmm-real-bank-card.fasmm-bank-card-text,
[data-theme="dark"] .fasmm-payment-selected-card-preview .fasmm-real-bank-card.fasmm-bank-card-text,
body.fasmm-dark .fasmm-payment-card-choice-box .fasmm-payment-card-toggle,
[data-theme="dark"] .fasmm-payment-card-choice-box .fasmm-payment-card-toggle,
body.fasmm-dark .fasmm-payment-card-choice-box.open .fasmm-payment-card-picker:not([hidden]),
[data-theme="dark"] .fasmm-payment-card-choice-box.open .fasmm-payment-card-picker:not([hidden]){
  background:var(--fasmm-bg-surface,#242136)!important;border-color:var(--fasmm-border,#49445f)!important;color:var(--fasmm-text-primary,#f8f6fc)!important;
}
body.fasmm-dark .fasmm-payment-card-choice-box .fasmm-add-payment-card-btn,
[data-theme="dark"] .fasmm-payment-card-choice-box .fasmm-add-payment-card-btn{
  background:var(--fasmm-bg-surface,#242136)!important;border-color:var(--fasmm-border,#49445f)!important;color:var(--fasmm-primary,#a69cff)!important;
}

@media(max-width:767px){
  .fasmm-payment-card-choice-box{padding:11px!important}
  .fasmm-payment-card-choice-heading{align-items:flex-start}
  .fasmm-payment-card-choice-heading small{font-size:9px}
  .fasmm-payment-card-choice-box .fasmm-bank-card-text__main>b{max-width:150px}
  .fasmm-payment-card-choice-box.open .fasmm-payment-card-picker:not([hidden]){max-height:260px!important}
}
