.fsc-checkout-shell{
  --fsc-bg:#ffffff;
  --fsc-card:#ffffff;
  --fsc-border:#e7ebf0;
  --fsc-border-strong:#cbd3df;
  --fsc-text:#222b3a;
  --fsc-heading:#182033;
  --fsc-muted:#8d98aa;
  --fsc-soft:#f7f8fa;
  --fsc-primary:#ef0f5a;
  --fsc-primary-hover:#d90d51;
  --fsc-danger:#ef4444;
  --fsc-success:#2ecb78;
  --fsc-warning-bg:#fff3eb;
  --fsc-warning-text:#e57d42;
  --fsc-radius:14px;
  --fsc-radius-sm:8px;
  --fsc-shadow:0 12px 34px rgba(15,23,42,.08);
  --fsc-shadow-soft:0 6px 20px rgba(15,23,42,.06);
  --fsc-font: "IranYekan", Sans-serif;
}
#fsc-checkout-form{flex-direction: column !important;}
.fsc-payment-processing-spinner{font-family:var(--fsc-font);}
.fsc-checkout-shell,
.fsc-checkout-shell *,
.fsc-checkout-shell *::before,
.fsc-checkout-shell *::after,
.fsc-payment-processing-overlay,
.fsc-payment-processing-overlay *,
.fsc-payment-processing-overlay *::before,
.fsc-payment-processing-overlay *::after{box-sizing:border-box;}

body.fsc-checkout-active footer,
body.fsc-checkout-active .site-footer,
body.fsc-checkout-active #colophon,
body.fsc-checkout-active .elementor-location-footer,
body.fsc-checkout-active .footer,
body.fsc-checkout-active .main-footer{display:none!important;}

body.fsc-checkout-active{background:#fff;}

.fsc-checkout-shell{
  direction:rtl;
  width:100%;
  max-width:100%;
  padding:26px 0 84px;
  background:transparent;
  font-family:var(--fsc-font);
  color:var(--fsc-text);
}

.fsc-checkout-layout{width:100%;max-width:1280px;margin:0 auto;padding:0 24px;}
.fsc-checkout-main{width:100%;min-width:0;}

.fsc-checkout-shell.is-cart-updating .fsc-next,
.fsc-checkout-shell.is-cart-updating .fsc-qty-btn,
.fsc-checkout-shell.is-cart-updating .fsc-remove-item{pointer-events:none;opacity:.65;}

/* Stepper */
.fsc-stepper{
  position:relative;
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:0;
  align-items:start;
  max-width:620px;
  margin:0 auto 44px;
  direction:rtl;
}

.fsc-mobile-step-back{display:none;}
.fsc-payment-gateways #payment .wc_payment_method::after{-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='currentColor' viewBox='0 0 16 16'%3E%3Cpath d='M8.97 4.97a.75.75 0 0 1 1.07 1.05l-3.99 4.99a.75.75 0 0 1-1.08.02L2.324 8.384a.75.75 0 1 1 1.06-1.06l2.094 2.093L8.95 4.992zm-.92 5.14.92.92a.75.75 0 0 0 1.079-.02l3.992-4.99a.75.75 0 1 0-1.091-1.028L9.477 9.417l-.485-.486z'/%3E%3C/svg%3E") center / contain no-repeat;}
.fsc-stepper-item{position:relative;display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center;color:#98a1ad;}
.fsc-stepper-item::before{display:none!important;}
.fsc-stepper-icon{width:42px;height:42px;display:flex;align-items:center;justify-content:center;position:relative;color:inherit;z-index:2;background:#fff;}
.fsc-stepper-icon svg{width:32px;height:32px;stroke:currentColor;}
.fsc-stepper-icon::before{content:"";position:absolute;top:50%;right:calc(100% + 8px);width:92px;height:1px;background:#dfe3e8;transform:translateY(-50%);}
.fsc-stepper-item:first-child .fsc-stepper-icon::before{display:none;}
.fsc-stepper-label{font-size:13px;font-weight:500;line-height:1.6;white-space:nowrap;color:inherit;}
.fsc-stepper-item.is-active{color:var(--fsc-primary);}
.fsc-stepper-item.is-done{color:#718096;}
.fsc-stepper-item.is-done .fsc-stepper-icon::before,
.fsc-stepper-item.is-active .fsc-stepper-icon::before{background:#dfe3e8;}

/* Panel */
.fsc-panel-card{width:100%;padding:0;background:transparent;border:0;box-shadow:none;}
.fsc-step-panel{display:none;animation:fsc-fade-in .25s ease;}
.fsc-step-panel.is-active{display:block;}
.fsc-panel-title,.fsc-panel-text{display:none;}

@keyframes fsc-fade-in{from{opacity:0;transform:translateY(8px);}to{opacity:1;transform:translateY(0);}}
@keyframes fsc-spin{to{transform:rotate(360deg);}}

/* Cart table - desktop */
.fsc-cart-head{
  display:grid;
  grid-template-columns:minmax(420px,1fr) 280px 170px;
  gap:18px;
  padding:0 18px 12px;
  color:#7f8a99;
  font-size:14px;
  font-weight:700;
  direction:rtl;
}
.fsc-cart-head-product{text-align:right;}
.fsc-cart-head-price,.fsc-cart-head-qty{text-align:center;}
.fsc-cart-list{display:flex;flex-direction:column;gap:12px;}
.fsc-cart-item{
  display:grid;
  grid-template-columns:minmax(420px,1fr) 280px 170px;
  gap:18px;
  align-items:center;
  width:100%;
  min-height:76px;
  padding:10px 18px;
  direction:rtl;
  background:#fff;
  border:1px solid #f2f4f7;
  border-radius:10px;
  box-shadow:var(--fsc-shadow-soft);
}
.fsc-cart-col{min-width:0;}
.fsc-cart-col-product{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:14px;direction:rtl;}
.fsc-cart-item-image{flex:0 0 auto;}
.fsc-cart-item-image img{width:64px;height:64px;border-radius:8px;object-fit:cover;display:block;}
.fsc-cart-item-main{min-width:0;flex:1 1 auto;}
.fsc-cart-item-name{color:#2f3745;font-size:14px;line-height:1.9;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:right;}
.fsc-cart-col-price{text-align:center;}
.fsc-cart-item-price-box{display:flex;flex-direction:column;align-items:center;gap:3px;}
.fsc-cart-item-discount{color:#ef5b6c;font-size:13px;font-weight:800;line-height:1.6;}
.fsc-cart-item-price{color:#202938;font-size:14px;font-weight:600;line-height:1.7;}
.fsc-cart-col-qty{display:flex;align-items:center;justify-content:flex-start;direction:ltr;}
.fsc-cart-controls{display:inline-flex;align-items:center;gap:10px;direction:ltr;}
.fsc-remove-item{width:32px;height:40px;border:0!important;background:transparent!important;color:#202938;display:flex;align-items:center;justify-content:center;cursor:pointer;padding:0;box-shadow:none!important;transition:.18s ease;}
.fsc-remove-item svg{width:15px;height:15px;}
.fsc-remove-item:hover{color:var(--fsc-primary);background:transparent!important;}
.fsc-qty{display:inline-flex;align-items:center;direction:ltr;background:#fff;border:1px solid #e1e5ea;border-radius:8px;overflow:hidden;height:40px;}
.fsc-qty-btn{width:34px;height:40px;border:0;background:#fff;color:#202938;font-size:20px;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:.18s ease;box-shadow:none;padding:0;}
.fsc-qty-btn + .fsc-qty-input-wrap,.fsc-qty-input-wrap + .fsc-qty-btn{border-left:1px solid #eceff3;}
.fsc-qty-btn:hover{color:var(--fsc-primary);background:#fff8fa;}
.fsc-qty-input-wrap{position:relative;width:44px;height:40px;}
.fsc-qty-input{width:100%;height:100%;text-align:center!important;border:0;background:#fff;color:#2b3440;font-size:15px;font-weight:500;padding:0!important;margin:0;direction:ltr;line-height:40px;appearance:textfield;-moz-appearance:textfield;}
.fsc-qty-input::-webkit-outer-spin-button,.fsc-qty-input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0;}
.fsc-qty-loader{display:none;position:absolute;inset:0;background:rgba(255,255,255,.82);}
.fsc-qty-loader::after{content:"";position:absolute;top:50%;left:50%;width:14px;height:14px;margin:-7px 0 0 -7px;border:2px solid rgba(239,15,90,.22);border-top-color:var(--fsc-primary);border-radius:50%;animation:fsc-spin 1s linear infinite;}
.fsc-qty-loading .fsc-qty-loader{display:block;}
.fsc-qty-text{font-weight:500;color:var(--fsc-muted);font-size:13px;}

/* Totals */
.fsc-totals-wrap{margin-top:22px;display:flex;justify-content:flex-start;margin-right:0;margin-left:auto;}
.fsc-totals-card{width:100%;background:#fff;border:1px solid #f0f2f5;border-radius:10px;padding:18px 20px;box-shadow:var(--fsc-shadow-soft);}
.fsc-totals{display:flex;flex-direction:column;gap:0;}
.fsc-total-row{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;padding:6px 0;border-bottom:1px solid #eef0f3;color:#8d98aa;font-size:14px;line-height:1.7;direction:rtl;}
.fsc-total-row:last-child{border-bottom:0;}
.fsc-total-row span{color:#8d98aa;font-weight:500;}
.fsc-total-row strong{color:#202938;font-weight:500;font-size:14px;text-align:left;}
.fsc-total-row-discount span,.fsc-total-row-discount strong{color:#ef5b6c;font-weight:800;}
.fsc-total-row-final{padding-top:9px;}
.fsc-total-row-final span{color:#8d98aa;font-weight:500;}
.fsc-total-row-final strong{color:#111827;font-size:16px;font-weight:900;}

/* Buttons */
.fsc-btn{border:0;border-radius:8px;min-height:46px;padding:0 28px;cursor:pointer;font-weight:800;font-size:14px;transition:.2s ease;position:relative;display:inline-flex;align-items:center;justify-content:center;text-decoration:none;}
.fsc-btn-primary{background:var(--fsc-primary);color:#fff;min-width:160px;box-shadow:none;}
.fsc-btn-primary:hover{background:var(--fsc-primary-hover);color:#fff;}
.fsc-btn-primary:disabled{background:#e5e7eb!important;color:#a3a8b2!important;cursor:not-allowed;}
.fsc-btn-secondary{background:#fff;color:#d0195d;border:1px solid #ececec;min-width:150px;box-shadow:0 8px 18px rgba(15,23,42,.08);}
.fsc-btn-secondary:hover{background:#fafafa;color:#d0195d;}
.fsc-btn.is-loading{color:transparent!important;pointer-events:none;}
.fsc-btn.is-loading::after{content:"";position:absolute;width:18px;height:18px;border:2px solid rgba(255,255,255,.35);border-top-color:#fff;border-radius:50%;animation:fsc-spin 1s linear infinite;}
.fsc-btn-secondary.is-loading::after{border-color:rgba(208,25,93,.2);border-top-color:#d0195d;}
.fsc-cart-step-actions{margin-top:20px;display:flex;justify-content:flex-start;max-width:420px;margin-right:0;margin-left:auto;direction:ltr;}
.fsc-panel-actions-between{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:28px;}
.fsc-cart-step-actions.is-disabled{display:none;}
.fsc-mobile-cart-total,.fsc-mobile-payable-total{display:none;}

/* Common */
.fsc-summary-wrap,.fsc-summary-block{width:100%;}
.fsc-empty{padding:18px;border:1px dashed #dfe3e8;border-radius:10px;color:var(--fsc-muted);background:#fff;}
.fsc-notice{position:fixed;top:24px;left:50%;transform:translateX(-50%) translateY(-12px);width:min(92vw,440px);background:#fff;border:1px solid var(--fsc-border);border-radius:12px;padding:14px 16px;box-shadow:0 18px 50px rgba(0,0,0,.12);z-index:99999;opacity:0;visibility:hidden;pointer-events:none;transition:opacity .25s ease,transform .25s ease,visibility .25s ease;font-size:14px;line-height:1.8;color:var(--fsc-text);text-align:center;}
.fsc-notice.is-visible{opacity:1;visibility:visible;transform:translateX(-50%) translateY(0);}
.fsc-notice.is-error{border-color:rgba(220,38,38,.28);background:#fff5f5;color:var(--fsc-danger);}
.fsc-notice.is-success{border-color:rgba(22,163,74,.28);background:#f0fdf4;color:#16a34a;}
.fsc-invalid{border-color:#ef4444!important;box-shadow:0 0 0 3px rgba(239,68,68,.08)!important;}

/* Step layouts - desktop */
.fsc-shipping-step-layout,
.fsc-payment-step-layout{display:grid;grid-template-columns:400px minmax(0,1fr);gap:34px;align-items:start;direction:ltr;max-width:1200px;margin:0 auto;}
.fsc-shipping-sidebar,.fsc-payment-sidebar{grid-column:1;grid-row:1;direction:rtl;background:#fff;border:1px solid #f0f2f5;border-radius:10px;box-shadow:var(--fsc-shadow-soft);padding:18px;}
.fsc-shipping-main,.fsc-payment-main{grid-column:2;grid-row:1;min-width:0;direction:rtl;display:flex;flex-direction:column;gap:18px;}
.fsc-shipping-form-card{background:#fff;border:1px solid #f0f2f5;border-radius:10px;box-shadow:var(--fsc-shadow-soft);padding:20px;direction:rtl;}
.fsc-shipping-step-actions,.fsc-payment-step-actions{max-width:1200px;margin:54px auto 0;display:flex;justify-content:space-between;align-items:center;gap:20px;direction:rtl;}

/* Coupon */
.fsc-checkout-coupon-box{display:flex;align-items:center;gap:0;border:1px solid var(--fsc-border-strong);border-radius:7px;overflow:hidden;height:50px;margin-bottom:18px;background:#fff;}
.fsc-coupon-input{height:100%;border:0;padding:0 14px;font-size:13px;color:#202938;background:#fff;outline:none;text-align:right;flex:1 1 auto;min-width:0;}
.fsc-coupon-btn{height:100%;border:0;background:var(--fsc-primary);color:#fff;font-size:13px;font-weight:800;cursor:pointer;flex:0 0 132px;transition:.18s ease;position:relative;}
.fsc-coupon-btn:hover{background:var(--fsc-primary-hover);color:#fff;}
.fsc-coupon-btn:disabled,.fsc-checkout-coupon-box.is-loading .fsc-coupon-btn{background:#e7e7e7;color:#9ca3af;cursor:not-allowed;}
.fsc-checkout-coupon-box.is-loading{opacity:.75;pointer-events:none;}
.fsc-remove-coupon{margin-right:8px;border:1px solid #ffd0d7;background:#fff5f6;color:#ef5b6c;border-radius:999px;padding:2px 9px;font-size:11px;font-weight:800;line-height:1.7;cursor:pointer;}
.fsc-remove-coupon:hover{background:#ffecef;color:#d82b42;}
/* Modern Woo fields */
.fsc-hidden-shipping{display:none!important;}
.fsc-modern-form .col-1,.fsc-modern-form .col-2{width:100%;float:none;}
.fsc-modern-form .woocommerce-billing-fields > h3,
.fsc-modern-form .woocommerce-shipping-fields > h3,
.fsc-modern-form .woocommerce-additional-fields > h3{display:none;}
.fsc-modern-form .woocommerce-billing-fields__field-wrapper,
.fsc-modern-form .woocommerce-additional-fields__field-wrapper{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:18px 20px;}
.fsc-modern-form .form-row{float:none!important;width:auto!important;margin:0!important;padding:0!important;display:flex;flex-direction:column;gap:8px;}
.fsc-modern-form #billing_first_name_field,.fsc-modern-form #billing_last_name_field,.fsc-modern-form #billing_phone_field,.fsc-modern-form #billing_email_field{grid-column:span 3;}
.fsc-modern-form #billing_state_field,.fsc-modern-form #billing_city_field,.fsc-modern-form #billing_postcode_field{grid-column:span 2;}
.fsc-modern-form #billing_address_1_field,.fsc-modern-form #billing_address_2_field,.fsc-modern-form #order_comments_field{grid-column:1 / -1;}
.fsc-modern-form label{color:#111827;font-size:13px;font-weight:500;line-height:1.7;margin:0;text-align:right;}
.fsc-modern-form .required{color:var(--fsc-primary);text-decoration:none!important;}
.fsc-modern-form input.input-text,.fsc-modern-form input[type="text"],.fsc-modern-form input[type="email"],.fsc-modern-form input[type="tel"],.fsc-modern-form textarea,.fsc-modern-form select,.fsc-modern-form .select2-selection{width:100%!important;min-height:50px;border:1px solid var(--fsc-border-strong)!important;border-radius:7px!important;background:#fff!important;color:#202938;font-size:14px;padding:0 14px!important;box-shadow:none!important;outline:none!important;direction:rtl;text-align:right;}
.fsc-modern-form input:focus,.fsc-modern-form textarea:focus,.fsc-modern-form select:focus,.fsc-modern-form .select2-container--open .select2-selection{border-color:#94a3b8!important;box-shadow:0 0 0 3px rgba(148,163,184,.16)!important;}
.fsc-modern-form textarea{padding-top:14px!important;min-height:50px;resize:vertical;}
.fsc-modern-form .select2-container{width:100%!important;}
.fsc-modern-form .select2-selection{display:flex!important;align-items:center;height:50px!important;}
.fsc-modern-form .select2-selection__rendered{width:100%!important;padding:0!important;color:#202938!important;line-height:50px!important;text-align:right!important;direction:rtl!important;}
.fsc-modern-form .select2-selection__arrow{top:12px!important;left:12px!important;right:auto!important;}

/* Shipping methods */
.fsc-shipping-methods-card{background:#fff;border:1px solid #e9eef3;border-right:2px solid var(--fsc-success);border-radius:10px;box-shadow:var(--fsc-shadow-soft);padding:18px;position:relative;}
.fsc-shipping-methods-card.is-loading{opacity:.65;pointer-events:none;}
.fsc-shipping-methods-head{display:flex;align-items:flex-start;gap:14px;margin-bottom:14px;color:#263241;}
.fsc-shipping-truck{flex:0 0 40px;width:40px;height:40px;display:flex;align-items:center;justify-content:center;color:#111827;}
.fsc-shipping-truck svg{width:34px;height:34px;}
.fsc-shipping-methods-head strong{display:flex;align-items:center;gap:8px;font-size:15px;font-weight:900;color:#111827;line-height:1.8;}
.fsc-shipping-methods-head strong::after{content:"۱ محصول";font-size:12px;color:#111827;background:#f3f4f6;border-radius:7px;padding:2px 10px;font-weight:800;}
.fsc-shipping-methods-head span span,.fsc-shipping-methods-head div > span{display:block;color:#6b7280;font-size:13px;line-height:2;}
.fsc-shipping-methods-list{display:flex;flex-direction:column;gap:10px;}
.fsc-shipping-method-option{position:relative;display:grid;grid-template-columns:24px minmax(0,1fr) auto;align-items:center;gap:12px;min-height:72px;border:1px solid #edf0f4;border-radius:9px;background:#fff;padding:12px;cursor:pointer;transition:.18s ease;}
.fsc-shipping-method-option:hover{border-color:#b9c3d0;}
.fsc-shipping-method-option:has(input:checked){border-color:var(--fsc-success);box-shadow:0 0 0 1px var(--fsc-success);}
.fsc-shipping-method-input{position:absolute;opacity:0;pointer-events:none;}
.fsc-shipping-method-radio{padding:7px;border-radius:50%;border:2px solid #c9d2df;display:block;position:relative;}
.fsc-shipping-method-input:checked + .fsc-shipping-method-radio{border-color:var(--fsc-success);background:var(--fsc-success);}
.fsc-shipping-method-input:checked + .fsc-shipping-method-radio::after{content:"✓";position:absolute;color:#fff;font-size:10px;font-weight:900;top:50%;left:50%;transform:translate(-50%,-50%);}
.fsc-shipping-method-body{display:flex;flex-direction:column;gap:4px;    width: 85% !important;}
.fsc-shipping-method-title{font-size:14px;font-weight:900;color:#111827;}
.fsc-shipping-method-desc{font-size:12px;color:#6b7280;line-height:1.8;}
.fsc-shipping-method-price{font-size:13px;color:#111827;font-weight:800;white-space:nowrap;}
.fsc-shipping-empty{padding:14px;border:1px dashed #dfe3e8;border-radius:9px;background:#fafafa;color:#8d98aa;font-size:13px;line-height:1.9;text-align:center;}

/* Hide product list inside side summaries */
.fsc-shipping-summary-wrap .fsc-summary-block.is-payment-step .fsc-cart-list,
.fsc-payment-summary-wrap .fsc-summary-block.is-payment-step .fsc-cart-list,
.fsc-shipping-summary-wrap .fsc-cart-head,
.fsc-payment-summary-wrap .fsc-cart-head{display:none;}
.fsc-shipping-summary-wrap .fsc-totals-wrap,
.fsc-payment-summary-wrap .fsc-totals-wrap{max-width:none;margin:0;display:block;}
.fsc-shipping-summary-wrap .fsc-totals-card,
.fsc-payment-summary-wrap .fsc-totals-card{border:0;box-shadow:none;padding:0;border-radius:0;background:transparent;}

/* Payment step */
.fsc-payment-alert{background:var(--fsc-warning-bg);color:var(--fsc-warning-text);border-radius:7px;padding:12px 16px;font-size:13px;font-weight:500;line-height:1.9;text-align:center;}
.fsc-payment-gateways #payment{background:transparent!important;border:0!important;border-radius:0!important;margin:0!important;padding:0!important;}
.fsc-payment-gateways #payment ul.payment_methods{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px!important;margin:0!important;padding:0!important;border:0!important;list-style:none!important;}
.fsc-payment-gateways #payment ul.payment_methods::before,
.fsc-payment-gateways #payment ul.payment_methods::after{display:none!important;}
.fsc-payment-gateways #payment li.wc_payment_method{position:relative!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;min-height:122px!important;margin:0!important;padding:0!important;background:#fff!important;border:1px solid #edf0f4!important;border-radius:9px!important;box-shadow:var(--fsc-shadow-soft)!important;transition:.18s ease!important;overflow:hidden!important;}
.fsc-payment-gateways #payment li.wc_payment_method:hover{border-color:#cbd5e1!important;transform:translateY(-1px);}
.fsc-payment-gateways #payment li.wc_payment_method.is-selected{border-color:var(--fsc-success)!important;box-shadow:0 0 0 1px var(--fsc-success), var(--fsc-shadow-soft)!important;}
.fsc-payment-gateways #payment li.wc_payment_method.is-selected::after{content:"✓";position:absolute;top:14px;right:14px;width:24px;height:24px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:var(--fsc-success);color:#fff;font-size:15px;font-weight:900;z-index:3;}
.fsc-payment-gateways #payment li.wc_payment_method > input.input-radio{position:absolute!important;opacity:0!important;pointer-events:none!important;}
.fsc-payment-gateways #payment li.wc_payment_method > label{width:100%!important;min-height:122px!important;margin:0!important;padding:18px 14px!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:8px!important;text-align:center!important;cursor:pointer!important;color:#111827!important;font-size:13px!important;font-weight:700!important;line-height:1.8!important;}
.fsc-payment-gateways #payment li.wc_payment_method > label img{max-width:88px!important;max-height:42px!important;width:auto!important;height:auto!important;margin:0 auto 4px!important;display:block!important;object-fit:contain!important;}
.fsc-payment-gateways #payment div.payment_box{width:100%!important;margin:0!important;padding:10px 14px 14px!important;background:#fafafa!important;border-top:1px solid #edf0f4!important;color:#4b5563!important;font-size:12px!important;line-height:1.8!important;text-align:center!important;}
.fsc-payment-gateways #payment div.payment_box::before{display:none!important;}
.fsc-payment-gateways #payment .place-order{margin:18px 0 0!important;padding:0!important;background:transparent!important;border:0!important;}
.fsc-payment-gateways #payment #place_order{display:none!important;}
.fsc-payment-gateways #payment .woocommerce-terms-and-conditions-wrapper{font-size:12px;color:#6b7280;line-height:1.9;text-align:right;}
.fsc-payment-gateways .woocommerce-privacy-policy-text{margin-top:10px;}

/* Tablet */
@media (max-width:1100px){
  .fsc-checkout-layout{padding:0 20px;}
  .fsc-cart-head,.fsc-cart-item{grid-template-columns:minmax(280px,1fr) 220px 160px;}
  .fsc-stepper-icon::before{width:70px;}
  .fsc-shipping-step-layout,.fsc-payment-step-layout{grid-template-columns:360px minmax(0,1fr);gap:24px;}
  .fsc-payment-gateways #payment ul.payment_methods{grid-template-columns:repeat(2,minmax(0,1fr));}
}

/* Mobile */
@media (max-width:767px){
  .fsc-checkout-shell{padding:0 0 104px;background:#fff;}
  .fsc-checkout-layout{padding:0 14px;max-width:100%;}
  .fsc-panel-card{padding:0;}

  .fsc-stepper{position:relative;display:flex;align-items:center;justify-content:center;height:56px;max-width:none;margin:0 -14px 18px;padding:0 16px;background:#fff;border-bottom:1px solid #eef0f3;box-shadow:0 2px 8px rgba(15,23,42,.03);}
  .fsc-stepper::before{content:attr(data-progress);position:absolute;left:16px;top:50%;transform:translateY(-50%);color:#93a0b2;font-size:13px;font-weight:500;}
  .fsc-mobile-step-back{display:flex;position:absolute;right:12px;top:50%;transform:translateY(-50%);width:34px;height:34px;border:0;background:transparent;color:#111827;font-size:30px;line-height:1;font-weight:300;align-items:center;justify-content:center;cursor:pointer;z-index:5;}
  .fsc-stepper-item{display:none;}
  .fsc-stepper-item.is-active{display:flex;align-items:center;justify-content:center;color:#1f2937;}
  .fsc-stepper-icon{display:none;}
  .fsc-stepper-label{font-size:15px;font-weight:900;color:#1f2937;line-height:1.4;}

  .fsc-cart-head{display:none;}
  .fsc-cart-list{gap:12px;}
  .fsc-cart-item{display:block;min-height:0;padding:13px 16px;border-radius:5px;border:1px solid #edf0f4;background:#fff;box-shadow:0 2px 12px rgba(15,23,42,.08);direction:rtl;}
  .fsc-cart-col-product{display:flex;flex-direction:row;align-items:flex-start;justify-content:flex-start;gap:12px;padding-bottom:14px;margin-bottom:10px;border-bottom:1px solid #edf0f4;direction:rtl;}
  .fsc-cart-item-image{flex:0 0 64px;order:1;}
  .fsc-cart-item-image img{width:64px;height:64px;border-radius:6px;object-fit:cover;}
  .fsc-cart-item-main{flex:1 1 auto;min-width:0;order:2;}
  .fsc-cart-item-name{color:#202938;font-size:14px;line-height:1.9;font-weight:500;white-space:normal;overflow:visible;text-overflow:clip;text-align:right;}
  .fsc-cart-col-price{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:4px 0 12px;text-align:right;direction:rtl;}
  .fsc-cart-col-price::before{content:"جمع قیمت:";color:#8d98aa;font-size:14px;line-height:1.9;font-weight:500;white-space:nowrap;}
  .fsc-cart-item-price-box{margin-right:auto;display:flex;flex-direction:column;align-items:flex-start;text-align:left;direction:rtl;gap:2px;}
  .fsc-cart-item-discount{color:#ef5b6c;font-size:13px;font-weight:900;line-height:1.6;}
  .fsc-cart-item-price{color:#202938;font-size:14px;font-weight:500;line-height:1.7;}
  .fsc-cart-col-qty{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:2px;direction:rtl;}
  .fsc-cart-col-qty::before{content:"تعداد:";color:#8d98aa;font-size:14px;line-height:1.9;font-weight:500;white-space:nowrap;}
  .fsc-cart-controls{gap:8px;direction:ltr;}
  .fsc-remove-item{width:32px;height:36px;}
  .fsc-qty{height:36px;border-radius:5px;border:1px solid #e5e7eb;}
  .fsc-qty-btn{width:36px;height:36px;font-size:19px;color:#111827;}
  .fsc-qty-input-wrap{width:42px;height:36px;}
  .fsc-qty-input{font-size:14px;line-height:36px;}

  .fsc-totals-wrap{max-width:none;margin:18px 0 0;display:block;}
  .fsc-totals-card{width:100%;padding:0;border:0;border-radius:0;box-shadow:none;background:transparent;}
  .fsc-total-row{min-height:44px;padding:7px 0;border-bottom:1px solid #eef0f3;color:#8d98aa;font-size:14px;line-height:1.8;}
  .fsc-total-row span::after{content:":";}
  .fsc-total-row strong{font-size:14px;font-weight:500;}
  .fsc-total-row-discount span,.fsc-total-row-discount strong{color:#ef5b6c;font-weight:900;}
  .fsc-total-row-final{border-bottom:0;padding-top:12px;}
  .fsc-total-row-final strong{font-size:16px;font-weight:900;}

  .fsc-cart-step-actions,.fsc-shipping-step-actions,.fsc-payment-step-actions{position:fixed!important;left:0!important;right:0!important;bottom:0!important;z-index:9998!important;height:82px!important;max-width:none!important;margin:0!important;padding:10px 16px calc(10px + env(safe-area-inset-bottom))!important;display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:space-between!important;gap:14px!important;background:#fff!important;border-top:1px solid #eef0f3!important;box-shadow:0 -8px 24px rgba(15,23,42,.08)!important;direction:rtl!important;}
  .fsc-cart-step-actions.is-disabled{display:none!important;}
  .fsc-cart-step-actions .fsc-btn,.fsc-shipping-step-actions .fsc-next,.fsc-payment-step-actions .fsc-btn-primary{order:1!important;flex:0 0 176px!important;width:176px!important;min-width:0!important;height:46px!important;min-height:46px!important;border-radius:6px!important;font-size:14px!important;font-weight:900!important;box-shadow:none!important;}
  .fsc-shipping-step-actions .fsc-prev,.fsc-payment-step-actions .fsc-prev{display:none!important;}
  .fsc-mobile-cart-total,.fsc-mobile-payable-total{order:2!important;flex:1 1 auto!important;min-width:0!important;display:flex!important;flex-direction:column!important;justify-content:center!important;gap:4px!important;text-align:left!important;direction:rtl!important;}
  .fsc-mobile-cart-total span,.fsc-mobile-payable-total span{color:#8d98aa!important;font-size:13px!important;font-weight:500!important;line-height:1.4!important;}
  .fsc-mobile-cart-total strong,.fsc-mobile-payable-total strong{color:#344054!important;font-size:14px!important;font-weight:900!important;line-height:1.4!important;white-space:nowrap!important;}

  .fsc-shipping-step-layout,.fsc-payment-step-layout{display:flex!important;flex-direction:column!important;gap:20px!important;width:100%!important;max-width:100%!important;margin:0!important;direction:rtl!important;}
  .fsc-shipping-main{order:1;width:100%;display:flex;flex-direction:column;gap:20px;}
  .fsc-shipping-sidebar{order:2;}
  .fsc-payment-main{order:1;width:100%;display:flex;flex-direction:column;gap:18px;}
  .fsc-payment-sidebar{order:2;}
  .fsc-shipping-form-card,.fsc-shipping-sidebar,.fsc-payment-sidebar{width:100%!important;max-width:100%!important;padding:16px 20px!important;margin:0!important;border-radius:5px!important;border:1px solid #edf0f4!important;box-shadow:0 2px 12px rgba(15,23,42,.08)!important;background:#fff!important;direction:rtl!important;}
  .fsc-modern-form,.fsc-modern-form .woocommerce-billing-fields,.fsc-modern-form .woocommerce-billing-fields__field-wrapper,.fsc-modern-form .woocommerce-additional-fields,.fsc-modern-form .woocommerce-additional-fields__field-wrapper{display:flex!important;flex-direction:column!important;width:100%!important;max-width:100%!important;gap:18px!important;}
  .fsc-modern-form .form-row,.fsc-modern-form .form-row-first,.fsc-modern-form .form-row-last,.fsc-modern-form .form-row-wide,.fsc-modern-form p.form-row{display:flex!important;flex-direction:column!important;float:none!important;clear:both!important;width:100%!important;max-width:100%!important;min-width:0!important;margin:0!important;padding:0!important;gap:7px!important;grid-column:1 / -1!important;}
  .fsc-modern-form label{display:block!important;width:100%!important;color:#111827!important;font-size:13px!important;font-weight:500!important;line-height:1.8!important;text-align:right!important;margin:0!important;padding:0!important;}
  .fsc-modern-form input.input-text,.fsc-modern-form input[type="text"],.fsc-modern-form input[type="email"],.fsc-modern-form input[type="tel"],.fsc-modern-form textarea,.fsc-modern-form select{display:block!important;width:100%!important;max-width:100%!important;min-width:0!important;height:50px!important;min-height:50px!important;border:1px solid #cbd3df!important;border-radius:5px!important;background:#fff!important;color:#202938!important;font-size:13px!important;font-weight:400!important;line-height:50px!important;padding:0 14px!important;margin:0!important;box-shadow:none!important;outline:none!important;direction:rtl!important;text-align:right!important;}
  .fsc-modern-form textarea{height:50px!important;min-height:50px!important;line-height:1.7!important;padding-top:14px!important;resize:none!important;}
  .fsc-modern-form .select2-container{width:100%!important;max-width:100%!important;}
  .fsc-modern-form .select2-selection{width:100%!important;height:50px!important;min-height:50px!important;border:1px solid #cbd3df!important;border-radius:5px!important;background:#fff!important;display:flex!important;align-items:center!important;box-shadow:none!important;}
  .fsc-modern-form .select2-selection__rendered{width:100%!important;padding:0 14px!important;color:#202938!important;font-size:13px!important;line-height:50px!important;text-align:right!important;direction:rtl!important;}
  .fsc-modern-form .select2-selection__arrow{top:12px!important;left:12px!important;right:auto!important;}

  .fsc-shipping-methods-card{border-radius:5px;padding:18px 20px;box-shadow:0 2px 12px rgba(15,23,42,.08);}
  .fsc-shipping-methods-head{align-items:flex-start;margin-bottom:18px;}
  .fsc-shipping-method-option{grid-template-columns:22px minmax(0,1fr);gap:10px;padding:12px;}
  .fsc-shipping-method-price{grid-column:2;justify-self:start;margin-top:4px;}

  .fsc-checkout-coupon-box{grid-template-columns:1fr 142px;height:50px;margin-bottom:16px;border-radius:5px;}
  .fsc-coupon-input,.fsc-coupon-btn{font-size:13px;}

  .fsc-payment-alert{font-size:13px;line-height:1.9;padding:12px 14px;border-radius:5px;}
  .fsc-payment-gateways #payment ul.payment_methods{display:flex!important;flex-direction:row!important;gap:22px!important;}
  .fsc-payment-gateways #payment li.wc_payment_method{min-height:106px!important;border-radius:6px!important;}
  .fsc-payment-gateways #payment li.wc_payment_method > label{min-height:106px!important;padding:18px 12px!important;}
  .fsc-payment-gateways #payment li.wc_payment_method > label img{max-height:48px!important;max-width:110px!important;}
  .fsc-payment-gateways #payment li.wc_payment_method.is-selected::after{top:14px;right:14px;width:24px;height:24px;}
  .fsc-payment-gateways #payment .place-order{margin-top:12px!important;}
  .fsc-payment-summary-wrap .fsc-totals-wrap,.fsc-shipping-summary-wrap .fsc-totals-wrap{margin-top:0!important;}
  .fsc-payment-summary-wrap .fsc-totals-card,.fsc-shipping-summary-wrap .fsc-totals-card{padding:0!important;border:0!important;box-shadow:none!important;}

  .fsc-panel-actions-between{flex-direction:column;align-items:stretch;max-width:none;margin-right:0;margin-left:0;}
  .fsc-panel-actions-between .fsc-btn{width:100%;}
  .fsc-empty{border-radius:5px;padding:18px;font-size:14px;}
}

/* ==========================================================
   FSC UI Refinement v7.1 — polished RTL desktop + stable mobile
   ========================================================== */
.fsc-checkout-shell strong.fsc-mobile-bottom-total-amount bdi {
    color: black;
    font-size: 20px;
}
@media (min-width: 768px){
  body.fsc-checkout-active{
    background:#fff;
  }

  .fsc-checkout-shell{
    padding-top:30px;
    padding-bottom:92px;
  }

  .fsc-checkout-layout{
    max-width:1240px;
    padding-left:28px;
    padding-right:28px;
  }

  .fsc-stepper{
    max-width:680px;
    margin-bottom:52px;
  }

  .fsc-stepper-icon::before{
    width:104px;
  }

  /* Cart desktop: table full width, summary/action on visual left */
  .fsc-cart-item{
    min-height:78px;
    border-radius:12px;
    border-color:#f1f4f8;
    box-shadow:0 10px 28px rgba(15,23,42,.055);
  }

  .fsc-totals-wrap{
    max-width:420px;
    margin-top:24px;
    margin-right:auto;
    margin-left:0;
  }

  .fsc-cart-step-actions{
    width:420px;
    max-width:420px;
    margin-right:auto;
    margin-left:0;
    justify-content:flex-start;
  }

  .fsc-cart-step-actions .fsc-btn{
    min-width:170px;
  }

  /* Step 2 / Step 3 desktop shell */
  .fsc-shipping-step-layout,
  .fsc-payment-step-layout{
    display:grid;
    grid-template-columns:390px minmax(0, 1fr);
    gap:34px;
    max-width:1180px;
    margin:0 auto;
    align-items:start;
    direction:ltr;
  }

  .fsc-shipping-sidebar,
  .fsc-payment-sidebar{
    grid-column:1;
    grid-row:1;
    position:sticky;
    top:24px;
    background:#fff;
    border:1px solid #edf1f6;
    border-radius:16px;
    box-shadow:0 14px 40px rgba(15,23,42,.075);
    padding:18px;
    direction:rtl;
  }

  .fsc-shipping-main,
  .fsc-payment-main{
    grid-column:2;
    grid-row:1;
    min-width:0;
    direction:rtl;
    display:flex;
    flex-direction:column;
    gap:20px;
  }

  .fsc-shipping-form-card{
    width:100%;
    background:#fff;
    border:1px solid #edf1f6;
    border-radius:16px;
    box-shadow:0 14px 40px rgba(15,23,42,.075);
    padding:28px 30px;
    direction:rtl;
  }

  .fsc-checkout-coupon-box{
    height:50px;
    border-radius:10px;
    border-color:#cdd6e2;
    margin-bottom:18px;
  }

  .fsc-coupon-input{
    font-size:13px;
    color:#1f2937;
  }

  .fsc-coupon-btn{
    font-size:13px;
    font-weight:800;
  }

  .fsc-shipping-summary-wrap .fsc-totals-card,
  .fsc-payment-summary-wrap .fsc-totals-card{
    border:0;
    box-shadow:none;
    padding:0;
  }

  .fsc-summary-block.is-payment-step .fsc-total-row{
    min-height:46px;
    padding:7px 0;
  }

  .fsc-summary-block.is-payment-step .fsc-total-row-final strong{
    font-size:17px;
  }

  /* Polished RTL WooCommerce fields */
  .fsc-modern-form,
  .fsc-modern-form .woocommerce-billing-fields,
  .fsc-modern-form .woocommerce-additional-fields{
    width:100%;
    direction:rtl;
  }

  .fsc-modern-form .woocommerce-billing-fields__field-wrapper,
  .fsc-modern-form .woocommerce-additional-fields__field-wrapper{
    display:grid!important;
    grid-template-columns:repeat(12, minmax(0, 1fr));
    gap:18px 20px;
    width:100%;
    direction:ltr;
    align-items:end;
  }

  .fsc-modern-form .form-row,
  .fsc-modern-form p.form-row,
  .fsc-modern-form .form-row-first,
  .fsc-modern-form .form-row-last,
  .fsc-modern-form .form-row-wide{
    float:none!important;
    clear:none!important;
    width:auto!important;
    max-width:none!important;
    margin:0!important;
    padding:0!important;
    display:flex!important;
    flex-direction:column!important;
    gap:7px!important;
    direction:rtl;
    min-width:0;
  }

  .fsc-modern-form #billing_first_name_field{grid-column:7 / 13;}
  .fsc-modern-form #billing_last_name_field{grid-column:1 / 7;}
  .fsc-modern-form #billing_phone_field{grid-column:7 / 13;}
  .fsc-modern-form #billing_email_field{grid-column:1 / 7;}
  .fsc-modern-form #billing_state_field{grid-column:9 / 13;}
  .fsc-modern-form #billing_city_field{grid-column:5 / 9;}
  .fsc-modern-form #billing_postcode_field{grid-column:1 / 5;}
  .fsc-modern-form #billing_address_1_field,
  .fsc-modern-form #billing_address_2_field,
  .fsc-modern-form #order_comments_field,
  .fsc-modern-form #billing_company_field,
  .fsc-modern-form #billing_country_field{
    grid-column:1 / 13;
  }

  .fsc-modern-form label{
    display:block!important;
    width:100%;
    color:#151b2d!important;
    font-size:13px!important;
    font-weight:700!important;
    line-height:1.7!important;
    text-align:right!important;
    margin:0!important;
  }

  .fsc-modern-form .required{
    color:var(--fsc-primary)!important;
    text-decoration:none!important;
    margin-right:4px;
  }

  .fsc-modern-form input.input-text,
  .fsc-modern-form input[type="text"],
  .fsc-modern-form input[type="email"],
  .fsc-modern-form input[type="tel"],
  .fsc-modern-form textarea,
  .fsc-modern-form select,
  .fsc-modern-form .select2-selection{
    width:100%!important;
    height:50px!important;
    min-height:50px!important;
    border:1px solid #cbd5e1!important;
    border-radius:10px!important;
    background:#fff!important;
    color:#111827!important;
    font-size:14px!important;
    font-weight:500!important;
    line-height:50px!important;
    padding:0 15px!important;
    box-shadow:none!important;
    outline:none!important;
    direction:rtl!important;
    text-align:right!important;
    transition:border-color .18s ease, box-shadow .18s ease, background .18s ease;
  }

  .fsc-modern-form textarea{
    height:50px!important;
    min-height:50px!important;
    line-height:1.8!important;
    padding-top:13px!important;
    resize:vertical!important;
  }

  .fsc-modern-form input.input-text:focus,
  .fsc-modern-form input[type="text"]:focus,
  .fsc-modern-form input[type="email"]:focus,
  .fsc-modern-form input[type="tel"]:focus,
  .fsc-modern-form textarea:focus,
  .fsc-modern-form select:focus,
  .fsc-modern-form .select2-container--open .select2-selection{
    border-color:#94a3b8!important;
    background:#fff!important;
    box-shadow:0 0 0 4px rgba(148,163,184,.13)!important;
  }

  .fsc-modern-form input:-webkit-autofill,
  .fsc-modern-form input:-webkit-autofill:hover,
  .fsc-modern-form input:-webkit-autofill:focus{
    -webkit-text-fill-color:#111827!important;
    box-shadow:0 0 0 1000px #fff inset!important;
    transition:background-color 9999s ease-in-out 0s!important;
  }

  .fsc-modern-form .select2-container{
    width:100%!important;
  }

  .fsc-modern-form .select2-selection{
    display:flex!important;
    align-items:center!important;
  }

  .fsc-modern-form .select2-selection__rendered{
    width:100%!important;
    padding:0!important;
    color:#111827!important;
    line-height:50px!important;
    text-align:right!important;
    direction:rtl!important;
  }

  .fsc-modern-form .select2-selection__arrow{
    top:12px!important;
    left:12px!important;
    right:auto!important;
  }

  /* Shipping methods: elegant card below the address form */
  .fsc-shipping-methods-card{
    border-radius:16px;
    border:1px solid #edf1f6;
    border-right:3px solid var(--fsc-success);
    box-shadow:0 14px 40px rgba(15,23,42,.075);
    padding:22px 24px;
  }

  .fsc-shipping-methods-head{
    align-items:center;
    gap:14px;
    margin-bottom:16px;
  }

  .fsc-shipping-method-option{
    min-height:74px;
    border-radius:12px;
    padding:14px 16px;
  }

  /* Payment desktop */
  .fsc-payment-alert{
    border-radius:10px;
    padding:13px 18px;
  }

  .fsc-payment-gateways #payment ul.payment_methods{
    grid-template-columns:repeat(3, minmax(0, 1fr))!important;
    gap:18px!important;
  }

  .fsc-payment-gateways #payment li.wc_payment_method{
    border-radius:14px!important;
    min-height:128px!important;
  }

  .fsc-payment-gateways #payment li.wc_payment_method > label{
    min-height:128px!important;
  }

  .fsc-shipping-step-actions,
  .fsc-payment-step-actions{
    max-width:1180px;
    margin-top:34px;
  }

  .fsc-shipping-step-actions .fsc-btn-primary,
  .fsc-payment-step-actions .fsc-btn-primary{
    min-width:180px;
  }
}

@media (min-width: 768px) and (max-width: 1100px){
  .fsc-shipping-step-layout,
  .fsc-payment-step-layout{
    grid-template-columns:340px minmax(0,1fr);
    gap:24px;
  }

  .fsc-shipping-form-card{
    padding:24px 22px;
  }

  .fsc-modern-form .woocommerce-billing-fields__field-wrapper,
  .fsc-modern-form .woocommerce-additional-fields__field-wrapper{
    gap:16px;
  }
}

/* ==========================================================
   FSC Final UI Hotfix v8 — stable custom checkout form layout
   ========================================================== */
@media (min-width: 768px){
  .fsc-checkout-layout{
    max-width:1280px !important;
  }

  .fsc-shipping-step-layout{
    grid-template-columns:380px minmax(0, 1fr) !important;
    gap:34px !important;
    max-width:1180px !important;
    margin:0 auto !important;
    direction:ltr !important;
    align-items:start !important;
  }

  .fsc-shipping-sidebar{
    grid-column:1 !important;
    grid-row:1 !important;
    align-self:start !important;
    position:sticky !important;
    top:24px !important;
  }

  .fsc-shipping-main{
    grid-column:2 !important;
    grid-row:1 !important;
    min-width:0 !important;
  }

  .fsc-shipping-form-card{
    padding:28px 30px !important;
    border-radius:18px !important;
    border:1px solid #edf1f6 !important;
    background:#fff !important;
    box-shadow:0 18px 48px rgba(15,23,42,.075) !important;
  }

  .fsc-custom-checkout-fields{
    display:flex !important;
    flex-direction:column !important;
    gap:20px !important;
    width:100% !important;
    max-width:100% !important;
    direction:rtl !important;
  }

  .fsc-custom-checkout-fields .fsc-field-row{
    display:grid !important;
    width:100% !important;
    max-width:100% !important;
    gap:18px 20px !important;
    direction:rtl !important;
    align-items:end !important;
  }

  .fsc-custom-checkout-fields .fsc-field-row-two{
    grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
  }

  .fsc-custom-checkout-fields .fsc-field-row-three{
    grid-template-columns:1fr 1fr 1fr !important;
  }

  .fsc-custom-checkout-fields .fsc-field-row-full{
    grid-template-columns:1fr !important;
  }

  .fsc-custom-checkout-fields .fsc-field-unit,
  .fsc-custom-checkout-fields .form-row,
  .fsc-custom-checkout-fields p.form-row,
  .fsc-custom-checkout-fields .form-row-first,
  .fsc-custom-checkout-fields .form-row-last,
  .fsc-custom-checkout-fields .form-row-wide{
    float:none !important;
    clear:none !important;
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    margin:0 !important;
    padding:0 !important;
    display:flex !important;
    flex-direction:column !important;
    gap:7px !important;
    grid-column:auto !important;
    direction:rtl !important;
  }

  .fsc-custom-checkout-fields label{
    display:block !important;
    width:100% !important;
    margin:0 !important;
    padding:0 !important;
    color:#151b2d !important;
    font-size:13px !important;
    font-weight:800 !important;
    line-height:1.75 !important;
    text-align:right !important;
    letter-spacing:-.01em !important;
  }

  .fsc-custom-checkout-fields .required{
    color:var(--fsc-primary) !important;
    text-decoration:none !important;
    margin-right:4px !important;
  }

  .fsc-custom-checkout-fields input.input-text,
  .fsc-custom-checkout-fields input[type="text"],
  .fsc-custom-checkout-fields input[type="email"],
  .fsc-custom-checkout-fields input[type="tel"],
  .fsc-custom-checkout-fields input[type="password"],
  .fsc-custom-checkout-fields textarea,
  .fsc-custom-checkout-fields select,
  .fsc-custom-checkout-fields .select2-selection{
    display:block !important;
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    height:52px !important;
    min-height:52px !important;
    border:1px solid #cbd5e1 !important;
    border-radius:12px !important;
    background:#fff !important;
    color:#111827 !important;
    font-size:14px !important;
    font-weight:500 !important;
    line-height:52px !important;
    padding:0 16px !important;
    margin:0 !important;
    box-shadow:none !important;
    outline:none !important;
    direction:rtl !important;
    text-align:right !important;
    transition:border-color .18s ease, box-shadow .18s ease, background .18s ease !important;
  }

  .fsc-custom-checkout-fields textarea{
    height:52px !important;
    min-height:52px !important;
    line-height:1.75 !important;
    padding-top:14px !important;
    resize:vertical !important;
  }

  .fsc-custom-checkout-fields input:focus,
  .fsc-custom-checkout-fields textarea:focus,
  .fsc-custom-checkout-fields select:focus,
  .fsc-custom-checkout-fields .select2-container--open .select2-selection{
    border-color:#8ea2bd !important;
    background:#fff !important;
    box-shadow:0 0 0 4px rgba(148,163,184,.15) !important;
  }

  .fsc-custom-checkout-fields input:-webkit-autofill,
  .fsc-custom-checkout-fields input:-webkit-autofill:hover,
  .fsc-custom-checkout-fields input:-webkit-autofill:focus{
    -webkit-text-fill-color:#111827 !important;
    box-shadow:0 0 0 1000px #fff inset !important;
    transition:background-color 9999s ease-in-out 0s !important;
  }

  .fsc-custom-checkout-fields .select2-container{
    width:100% !important;
    max-width:100% !important;
  }

  .fsc-custom-checkout-fields .select2-selection{
    display:flex !important;
    align-items:center !important;
  }

  .fsc-custom-checkout-fields .select2-selection__rendered{
    width:100% !important;
    padding:0 !important;
    color:#111827 !important;
    font-size:14px !important;
    line-height:52px !important;
    text-align:right !important;
    direction:rtl !important;
  }

  .fsc-custom-checkout-fields .select2-selection__arrow{
    top:13px !important;
    left:13px !important;
    right:auto !important;
  }

  .fsc-shipping-methods-card{
    margin-top:0 !important;
    border-radius:18px !important;
    border:1px solid #edf1f6 !important;
    border-right:3px solid var(--fsc-success) !important;
    background:#fff !important;
    box-shadow:0 18px 48px rgba(15,23,42,.075) !important;
    padding:22px 24px !important;
  }

  .fsc-shipping-method-option{
    border-radius:14px !important;
    min-height:74px !important;
  }

  .fsc-shipping-step-actions{
    max-width:1180px !important;
    margin:34px auto 0 !important;
  }
}

@media (max-width: 767px){
  .fsc-custom-checkout-fields{
    display:flex !important;
    flex-direction:column !important;
    gap:20px !important;
    width:100% !important;
    direction:rtl !important;
  }

  .fsc-custom-checkout-fields .fsc-field-row,
  .fsc-custom-checkout-fields .fsc-field-row-two,
  .fsc-custom-checkout-fields .fsc-field-row-three,
  .fsc-custom-checkout-fields .fsc-field-row-full{
    display:flex !important;
    flex-direction:column !important;
    gap:20px !important;
    width:100% !important;
  }

  .fsc-custom-checkout-fields .fsc-field-unit,
  .fsc-custom-checkout-fields .form-row,
  .fsc-custom-checkout-fields p.form-row,
  .fsc-custom-checkout-fields .form-row-first,
  .fsc-custom-checkout-fields .form-row-last,
  .fsc-custom-checkout-fields .form-row-wide{
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    margin:0 !important;
    padding:0 !important;
    display:flex !important;
    flex-direction:column !important;
    gap:7px !important;
  }

  .fsc-custom-checkout-fields label{
    display:block !important;
    width:100% !important;
    color:#111827 !important;
    font-size:13px !important;
    font-weight:700 !important;
    line-height:1.8 !important;
    text-align:right !important;
    margin:0 !important;
  }

  .fsc-custom-checkout-fields input.input-text,
  .fsc-custom-checkout-fields input[type="text"],
  .fsc-custom-checkout-fields input[type="email"],
  .fsc-custom-checkout-fields input[type="tel"],
  .fsc-custom-checkout-fields input[type="password"],
  .fsc-custom-checkout-fields textarea,
  .fsc-custom-checkout-fields select,
  .fsc-custom-checkout-fields .select2-selection{
    width:100% !important;
    height:50px !important;
    min-height:50px !important;
    border-radius:7px !important;
    border:1px solid #cbd5e1 !important;
    background:#fff !important;
    padding:0 14px !important;
    font-size:13px !important;
    line-height:50px !important;
    text-align:right !important;
    direction:rtl !important;
  }

  .fsc-custom-checkout-fields textarea{
    height:50px !important;
    min-height:50px !important;
    line-height:1.7 !important;
    padding-top:14px !important;
    resize:none !important;
  }
}
.fsc-stepper-item:nth-child(5) .fsc-stepper-icon:before {
    display: none;
}
/* ==========================================================
   FSC v2.4 compatibility patch: Woo totals + mobile gateway grid
   ========================================================== */
.fsc-total-row-fee span,
.fsc-total-row-tax span{
  color:#8d98aa;
}

.fsc-total-row strong .woocommerce-remove-coupon{
  display:none !important;
}

.fsc-total-row strong small.includes_tax{
  display:block;
  margin-top:2px;
  color:#98a1ad;
  font-size:11px;
  font-weight:500;
  line-height:1.6;
}

.fsc-cart-item-main dl.variation{
  margin:4px 0 0;
  color:#8d98aa;
  font-size:12px;
  line-height:1.7;
}

.fsc-cart-item-main dl.variation dt,
.fsc-cart-item-main dl.variation dd{
  display:inline;
  margin:0;
  padding:0;
  font-weight:500;
}

.fsc-cart-item-main dl.variation dd p{
  display:inline;
  margin:0;
}

@media (max-width:767px){
  .fsc-payment-main{
    overflow:visible !important;
  }

  .fsc-payment-gateways,
  .fsc-payment-gateways #payment{
    width:100% !important;
    max-width:100% !important;
    overflow:visible !important;
  }

  .fsc-payment-gateways #payment ul.payment_methods{
    display:grid !important;
    grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
    gap:12px !important;
    width:100% !important;
    max-width:100% !important;
    margin:0 !important;
    padding:0 !important;
    direction:rtl !important;
    align-items:stretch !important;
    overflow:visible !important;
  }

  .fsc-payment-gateways #payment li.wc_payment_method{
    width:100% !important;
    min-width:0 !important;
    min-height:134px !important;
    margin:0 !important;
    border-radius:7px !important;
    border:1px solid #dfe5ee !important;
    box-shadow:0 2px 10px rgba(15,23,42,.05) !important;
    overflow:hidden !important;
  }

  .fsc-payment-gateways #payment li.wc_payment_method:not(.is-selected)::before{
    content:"";
    position:absolute;
    top:12px;
    right:12px;
    width:20px;
    height:20px;
    border-radius:50%;
    border:2px solid #cbd5e1;
    background:#fff;
    z-index:4;
  }

  .fsc-payment-gateways #payment li.wc_payment_method.is-selected{
    border-color:var(--fsc-success) !important;
    box-shadow:0 0 0 1px var(--fsc-success), 0 2px 10px rgba(15,23,42,.05) !important;
  }

  .fsc-payment-gateways #payment li.wc_payment_method.is-selected::after{
    top:12px !important;
    right:12px !important;
    width:22px !important;
    height:22px !important;
    font-size:14px !important;
    line-height:22px !important;
  }

  .fsc-payment-gateways #payment li.wc_payment_method > label{
    width:100% !important;
    min-height:134px !important;
    padding:24px 10px 12px !important;
    gap:7px !important;
    font-size:12px !important;
    font-weight:800 !important;
    line-height:1.75 !important;
  }

  .fsc-payment-gateways #payment li.wc_payment_method > label img{
    max-width:92px !important;
    max-height:42px !important;
    margin:0 auto 2px !important;
  }

  .fsc-payment-gateways #payment li.wc_payment_method > label::after{
    content:"انتخاب";
    min-width:64px;
    height:28px;
    padding:0 12px;
    border:1px solid #dfe5ee;
    border-radius:999px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    color:#475467;
    background:#fff;
    font-size:11px;
    font-weight:800;
    line-height:28px;
  }

  .fsc-payment-gateways #payment li.wc_payment_method.is-selected > label::after{
    content:"انتخاب شده";
    color:var(--fsc-success);
    background:#f2fff8;
    border-color:#afe8cc;
  }

  .fsc-payment-gateways #payment div.payment_box{
    padding:8px 10px 10px !important;
    font-size:11px !important;
    line-height:1.7 !important;
    text-align:center !important;
  }
}

@media (max-width:380px){
  .fsc-payment-gateways #payment ul.payment_methods{
    gap:10px !important;
  }

  .fsc-payment-gateways #payment li.wc_payment_method > label{
    font-size:11px !important;
    padding-left:8px !important;
    padding-right:8px !important;
  }

  .fsc-payment-gateways #payment li.wc_payment_method > label img{
    max-width:82px !important;
  }
}

/* FSC v2.5 coupon UX */
.fsc-coupon-label{display:inline-flex;align-items:center;gap:6px;flex-wrap:wrap;}
.fsc-remove-coupon:disabled{opacity:.6;cursor:not-allowed;}
@media (max-width:480px){
  .fsc-coupon-btn{flex-basis:118px;font-size:12px;}
  .fsc-coupon-input{font-size:12px;padding-inline:12px;}
}


/* ==========================================================
   FSC v2.6 senior-friendly red/black UI + visible payment loader
   ========================================================== */
.fsc-checkout-shell,
.fsc-payment-processing-overlay{
  --fsc-text:#111111;
  --fsc-heading:#000000;
  --fsc-muted:#4b5563;
  --fsc-border:#d6dde8;
  --fsc-border-strong:#9ca3af;
  --fsc-primary:#d71920;
  --fsc-primary-hover:#b51218;
  --fsc-danger:#d71920;
  --fsc-warning-text:#9f3a0b;
}

.fsc-checkout-shell{
  font-family:var(--fsc-font) !important;
  color:#111111 !important;
  font-size:16px;
}

.fsc-checkout-shell *,
.fsc-checkout-shell input,
.fsc-checkout-shell button,
.fsc-checkout-shell textarea,
.fsc-checkout-shell select,
.fsc-payment-processing-overlay,
.fsc-payment-processing-overlay *{
  font-family:var(--fsc-font) !important;
}

.fsc-panel-title,
.fsc-stepper-label,
.fsc-cart-head,
.fsc-cart-item-name,
.fsc-total-row,
.fsc-total-row span,
.fsc-total-row strong,
.fsc-coupon-input,
.fsc-coupon-btn,
.fsc-shipping-method-title,
.fsc-shipping-method-price,
.fsc-payment-gateways #payment li.wc_payment_method > label,
.fsc-payment-gateways #payment div.payment_box,
.fsc-notice,
.fsc-empty{
  color:#111111 !important;
}

.fsc-total-row span,
.fsc-cart-col-price::before,
.fsc-cart-col-qty::before,
.fsc-mobile-cart-total span,
.fsc-mobile-payable-total span{
  color:#374151 !important;
  font-weight:700 !important;
}

.fsc-total-row strong,
.fsc-mobile-cart-total strong,
.fsc-mobile-payable-total strong,
.fsc-cart-item-price,
.fsc-cart-item-name{
  color:#000000 !important;
  font-weight:900 !important;
}

.fsc-total-row-discount span,
.fsc-total-row-discount strong,
.fsc-cart-item-discount{
  color:#b51218 !important;
}

.fsc-total-row-final strong{
  color:#000000 !important;
  font-size:20px !important;
  font-weight:950 !important;
}

.fsc-btn,
.fsc-coupon-btn,
.fsc-qty-btn,
.fsc-remove-coupon{
  font-size:16px !important;
  font-weight:900 !important;
}

.fsc-btn-primary,
.fsc-coupon-btn{
  background:#d71920 !important;
  color:#ffffff !important;
  border-color:#d71920 !important;
  box-shadow:0 10px 22px rgba(215,25,32,.18) !important;
}

.fsc-btn-primary:hover,
.fsc-coupon-btn:hover{
  background:#b51218 !important;
  color:#ffffff !important;
}

.fsc-btn-secondary{
  color:#111111 !important;
  border:1px solid #bfc7d4 !important;
  background:#ffffff !important;
}

.fsc-btn-secondary:hover{
  color:#d71920 !important;
  border-color:#d71920 !important;
}

.fsc-stepper-item.is-active{
  color:#d71920 !important;
}

.fsc-modern-form label,
.fsc-custom-checkout-fields label{
  color:#000000 !important;
  font-size:15px !important;
  font-weight:900 !important;
}

.fsc-modern-form input.input-text,
.fsc-modern-form input[type="text"],
.fsc-modern-form input[type="email"],
.fsc-modern-form input[type="tel"],
.fsc-modern-form textarea,
.fsc-modern-form select,
.fsc-modern-form .select2-selection,
.fsc-custom-checkout-fields input.input-text,
.fsc-custom-checkout-fields input[type="text"],
.fsc-custom-checkout-fields input[type="email"],
.fsc-custom-checkout-fields input[type="tel"],
.fsc-custom-checkout-fields input[type="password"],
.fsc-custom-checkout-fields textarea,
.fsc-custom-checkout-fields select,
.fsc-custom-checkout-fields .select2-selection,
.fsc-coupon-input{
  color:#000000 !important;
  font-size:16px !important;
  font-weight:700 !important;
  border-color:#aeb8c7 !important;
}

.fsc-modern-form input::placeholder,
.fsc-custom-checkout-fields input::placeholder,
.fsc-coupon-input::placeholder,
.fsc-modern-form textarea::placeholder,
.fsc-custom-checkout-fields textarea::placeholder{
  color:#6b7280 !important;
  opacity:1 !important;
}

.fsc-modern-form input:focus,
.fsc-modern-form textarea:focus,
.fsc-modern-form select:focus,
.fsc-custom-checkout-fields input:focus,
.fsc-custom-checkout-fields textarea:focus,
.fsc-custom-checkout-fields select:focus,
.fsc-coupon-input:focus{
  border-color:#d71920 !important;
  box-shadow:0 0 0 4px rgba(215,25,32,.12) !important;
}

.fsc-payment-alert{
  color:#7c2d12 !important;
  font-size:15px !important;
  font-weight:700 !important;
  border-right:3px solid #d71920 !important;
}

.fsc-payment-gateways #payment li.wc_payment_method{
  border-color:#cbd5e1 !important;
}

.fsc-payment-gateways #payment li.wc_payment_method > label{
  font-size:16px !important;
  font-weight:950 !important;
}

.fsc-payment-gateways #payment li.wc_payment_method:hover{
  border-color:#111111 !important;
}

.fsc-payment-processing-overlay{
  position:fixed;
  inset:0;
  z-index:2147483000;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
  background:rgba(255,255,255,.86);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:opacity .18s ease, visibility .18s ease;
  direction:rtl;
}

body.fsc-order-processing .fsc-payment-processing-overlay{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
}

body.fsc-order-processing .fsc-checkout-shell{
  pointer-events:none;
}

.fsc-payment-processing-card{
  width:min(92vw,430px);
  min-height:230px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:16px;
  padding:30px 26px;
  background:#ffffff;
  border:2px solid #111111;
  border-radius:20px;
  box-shadow:0 28px 70px rgba(0,0,0,.20);
  text-align:center;
}

.fsc-payment-processing-spinner{
  width:64px;
  height:64px;
  border-radius:50%;
  border:6px solid #f2d4d6;
  border-top-color:#d71920;
  border-left-color:#111111;
  animation:fsc-spin .82s linear infinite;
}

.fsc-payment-processing-card strong{
  color:#000000;
  font-size:21px;
  font-weight:950;
  line-height:1.6;
}

.fsc-payment-processing-card span:not(.fsc-payment-processing-spinner){
  color:#374151;
  font-size:16px;
  font-weight:800;
  line-height:1.9;
}

#fsc-place-order.is-processing-payment,
#fsc-place-order-review.is-processing-payment{
  min-width:210px !important;
  background:#111111 !important;
  color:#ffffff !important;
}

#fsc-place-order.is-processing-payment::after,
#fsc-place-order-review.is-processing-payment::after{
  width:24px !important;
  height:24px !important;
  border-width:3px !important;
  border-color:rgba(255,255,255,.38) !important;
  border-top-color:#ffffff !important;
}

@media (max-width:767px){
  .fsc-checkout-shell{
    font-size:16px !important;
  }

  .fsc-stepper-label{
    color:#000000 !important;
    font-size:17px !important;
    font-weight:950 !important;
  }

  .fsc-mobile-step-back{
    color:#000000 !important;
    font-size:34px !important;
  }

  .fsc-cart-item-name,
  .fsc-cart-item-price,
  .fsc-total-row,
  .fsc-total-row strong,
  .fsc-total-row span,
  .fsc-shipping-method-title,
  .fsc-shipping-method-price{
    font-size:16px !important;
  }

  .fsc-total-row-final strong{
    font-size:22px !important;
  }

  .fsc-custom-checkout-fields label,
  .fsc-modern-form label{
    font-size:15px !important;
  }

  .fsc-custom-checkout-fields input.input-text,
  .fsc-custom-checkout-fields input[type="text"],
  .fsc-custom-checkout-fields input[type="email"],
  .fsc-custom-checkout-fields input[type="tel"],
  .fsc-custom-checkout-fields input[type="password"],
  .fsc-custom-checkout-fields textarea,
  .fsc-custom-checkout-fields select,
  .fsc-custom-checkout-fields .select2-selection,
  .fsc-modern-form input.input-text,
  .fsc-modern-form input[type="text"],
  .fsc-modern-form input[type="email"],
  .fsc-modern-form input[type="tel"],
  .fsc-modern-form textarea,
  .fsc-modern-form select,
  .fsc-modern-form .select2-selection{
    min-height:54px !important;
    height:54px !important;
    font-size:16px !important;
    line-height:54px !important;
  }

  .fsc-checkout-coupon-box{
    height:54px !important;
    grid-template-columns:1fr 132px !important;
    border-color:#aeb8c7 !important;
  }

  .fsc-coupon-input,
  .fsc-coupon-btn{
    font-size:15px !important;
  }

  .fsc-payment-gateways #payment ul.payment_methods{
    gap:14px !important;
  }

  .fsc-payment-gateways #payment li.wc_payment_method{
    min-height:142px !important;
    border-color:#bcc6d4 !important;
  }

  .fsc-payment-gateways #payment li.wc_payment_method > label{
    min-height:142px !important;
    font-size:14px !important;
    font-weight:950 !important;
    line-height:1.8 !important;
  }

  .fsc-payment-gateways #payment li.wc_payment_method > label::after{
    color:#111111 !important;
    font-size:12px !important;
    font-weight:900 !important;
    border-color:#aeb8c7 !important;
  }

  .fsc-payment-gateways #payment li.wc_payment_method.is-selected > label::after{
    color:#0f7a43 !important;
  }

  .fsc-cart-step-actions .fsc-btn,
  .fsc-shipping-step-actions .fsc-next,
  .fsc-payment-step-actions .fsc-btn-primary{
    height:50px !important;
    min-height:50px !important;
    font-size:14px !important;
    border-radius:9px !important;
  }

  .fsc-mobile-cart-total span,
  .fsc-mobile-payable-total span{
    font-size:14px !important;
  }

  .fsc-mobile-cart-total strong,
  .fsc-mobile-payable-total strong,
  .fsc-checkout-shell strong.fsc-mobile-bottom-total-amount bdi{
    color:#000000 !important;
    font-size:18px !important;
    font-weight:950 !important;
  }
.fsc-mobile-bottom-total-amount .amount{
	font-size: 18px !important;
}
  .fsc-payment-processing-card{
    min-height:250px;
    border-radius:18px;
    padding:28px 20px;
  }

  .fsc-payment-processing-spinner{
    width:70px;
    height:70px;
  }

  .fsc-payment-processing-card strong{
    font-size:22px;
  }

  .fsc-payment-processing-card span:not(.fsc-payment-processing-spinner){
    font-size:16px;
  }
}

/* FSC v2.6 final-button spinner alignment */
#fsc-place-order.is-processing-payment,
#fsc-place-order-review.is-processing-payment{
  display:inline-flex !important;
  flex-direction:row !important;
  gap:10px !important;
  align-items:center !important;
  justify-content:center !important;
  color:#ffffff !important;
}
#fsc-place-order.is-processing-payment::after,
#fsc-place-order-review.is-processing-payment::after{
  position:static !important;
  display:inline-block !important;
  flex:0 0 auto !important;
  margin:0 !important;
}
.fsc-payment-gateways #payment li.wc_payment_method {
    cursor: pointer !important;
}

.fsc-payment-gateways #payment li.wc_payment_method > label {
    pointer-events: none !important;
}

.fsc-payment-gateways #payment li.wc_payment_method .payment_box,
.fsc-payment-gateways #payment li.wc_payment_method .payment_box * {
    pointer-events: auto !important;
}
.fsc-payment-gateways #payment li.wc_payment_method:not(.is-selected) .payment_box {
    display: none !important;
}

.fsc-payment-gateways #payment li.wc_payment_method.is-selected .payment_box {
    display: block !important;
}
/* Fix mobile vertical overflow when refreshing directly on step 2/3/4 */

#billing_state , #billing_city{    max-width: 85% !important;}
#order_comments{font-size: 14px !important;height: 62px !important;}
/* Payment popup font fix */
body.fsc-checkout-active .fsc-payment-processing-overlay,
body.fsc-checkout-active .fsc-payment-processing-overlay *,
body.fsc-order-processing .fsc-payment-processing-overlay,
body.fsc-order-processing .fsc-payment-processing-overlay * {
    font-family: 'IranYekan', 'IRANYekan', 'Yekan Bakh', 'Vazirmatn', 'IRANSansX', 'IRANSans', Tahoma, Arial, sans-serif !important;
    letter-spacing: 0 !important;
}

body.fsc-checkout-active .fsc-payment-processing-card,
body.fsc-order-processing .fsc-payment-processing-card {
    direction: rtl !important;
    text-align: center !important;
}

body.fsc-checkout-active .fsc-payment-processing-card strong,
body.fsc-order-processing .fsc-payment-processing-card strong {
    font-size: 20px !important;
    font-weight: 800 !important;
    line-height: 1.7 !important;
    color: #111 !important;
}


body.fsc-checkout-active .fsc-payment-processing-title,
body.fsc-order-processing .fsc-payment-processing-title {
    display: block !important;
    min-height: 38px !important;
    opacity: 0 !important;
    transform: translateY(5px) !important;
    transition: opacity .22s ease, transform .22s ease !important;
}

body.fsc-checkout-active .fsc-payment-processing-title.is-visible,
body.fsc-order-processing .fsc-payment-processing-title.is-visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

body.fsc-checkout-active .fsc-payment-processing-card span,
body.fsc-order-processing .fsc-payment-processing-card span {
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 1.8 !important;
    color: #222 !important;
}
/* Gateway visual select pill */
.fsc-payment-gateways #payment li.wc_payment_method {
    position: relative !important;
}

.fsc-payment-gateways #payment li.wc_payment_method > label {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    width: 100% !important;
}

.fsc-payment-gateways .fsc-gateway-select-pill {
    flex: 0 0 auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 76px !important;
    height: 34px !important;
    padding: 0 14px !important;
    border-radius: 999px !important;
    background: #111 !important;
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    font-family: 'IranYekan', 'IRANYekan', 'Yekan Bakh', 'Vazirmatn', 'IRANSansX', 'IRANSans', Tahoma, Arial, sans-serif !important;
    pointer-events: none !important;
    white-space: nowrap !important;
}

.fsc-payment-gateways li.wc_payment_method.is-selected .fsc-gateway-select-pill,
.fsc-payment-gateways .fsc-gateway-select-pill.is-selected {
    background: #b91c1c !important;
    color: #fff !important;
}

@media (max-width: 768px) {
    .fsc-payment-gateways .fsc-gateway-select-pill {
        min-width: 70px !important;
        height: 32px !important;
        padding: 0 12px !important;
        font-size: 13px !important;
    }
}
[data-fsc-shipping-methods] {
    position: relative;
}

[data-fsc-shipping-methods].is-loading {
    pointer-events: none;
    opacity: 0.65;
    min-height: 80px;
}

[data-fsc-shipping-methods].is-loading::after {
    content: "در حال بروزرسانی روش ارسال...";
    position: absolute;
    inset: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(3px);
    font-size: 14px;
    font-weight: 700;
    color: #222;
}

[data-fsc-shipping-methods].is-loading::before {
    content: "";
    position: absolute;
    top: 50%;
    right: calc(50% - 115px);
    z-index: 21;
    width: 18px;
    height: 18px;
    margin-top: -9px;
    border: 2px solid rgba(0, 0, 0, 0.18);
    border-top-color: #222;
    border-radius: 50%;
    animation: fscShippingSpin 0.75s linear infinite;
}

@keyframes fscShippingSpin {
    to {
        transform: rotate(360deg);
    }
}
/* Fix duplicate payment gateway select buttons */
.fsc-payment-gateways #payment li.wc_payment_method > label::after,
.fsc-payment-gateways #payment li.wc_payment_method.is-selected > label::after {
    content: none !important;
    display: none !important;
}

/* FSC v2.9.1 final order modal loader */
body.fsc-order-processing .fsc-payment-processing-overlay{
  background:rgba(17,24,39,.42) !important;
  backdrop-filter:blur(10px) saturate(130%) !important;
  -webkit-backdrop-filter:blur(10px) saturate(130%) !important;
}

body.fsc-order-processing .fsc-payment-processing-card{
  width:min(92vw,460px) !important;
  min-height:270px !important;
  padding:34px 28px 30px !important;
  border:0 !important;
  border-radius:24px !important;
  background:linear-gradient(180deg,#ffffff 0%,#fff7f7 100%) !important;
  box-shadow:0 30px 90px rgba(0,0,0,.30),0 0 0 1px rgba(215,25,32,.10) !important;
  transform:translateY(0) scale(1) !important;
  animation:fsc-loader-pop .22s ease-out both !important;
}

body.fsc-order-processing .fsc-payment-processing-spinner{
  width:76px !important;
  height:76px !important;
  border-width:7px !important;
  border-color:rgba(215,25,32,.16) !important;
  border-top-color:#d71920 !important;
  border-left-color:#111111 !important;
  box-shadow:0 0 0 10px rgba(215,25,32,.06) !important;
}

body.fsc-order-processing .fsc-payment-processing-title{
  min-height:40px !important;
  color:#111111 !important;
  font-size:22px !important;
  font-weight:950 !important;
  line-height:1.8 !important;
}

body.fsc-order-processing .fsc-payment-processing-subtitle{
  max-width:360px !important;
  color:#4b5563 !important;
  font-size:15px !important;
  font-weight:800 !important;
  line-height:2 !important;
}

.fsc-payment-processing-dots{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:7px !important;
  height:18px !important;
  margin-top:2px !important;
}

.fsc-payment-processing-dots i{
  width:8px !important;
  height:8px !important;
  display:block !important;
  border-radius:999px !important;
  background:#d71920 !important;
  opacity:.35 !important;
  animation:fsc-processing-dot 1.05s infinite ease-in-out !important;
}

.fsc-payment-processing-dots i:nth-child(2){animation-delay:.16s !important;}
.fsc-payment-processing-dots i:nth-child(3){animation-delay:.32s !important;}

#fsc-place-order.is-processing-payment,
#fsc-place-order-review.is-processing-payment{
  min-width:250px !important;
  min-height:56px !important;
  background:#111111 !important;
  color:#ffffff !important;
}

@keyframes fsc-loader-pop{
  from{opacity:0;transform:translateY(12px) scale(.96);}
  to{opacity:1;transform:translateY(0) scale(1);}
}

@keyframes fsc-processing-dot{
  0%,80%,100%{opacity:.35;transform:translateY(0) scale(.86);}
  40%{opacity:1;transform:translateY(-5px) scale(1);}
}

@media (max-width:767px){
  body.fsc-order-processing .fsc-payment-processing-card{
    width:min(92vw,390px) !important;
    min-height:285px !important;
    padding:32px 18px 28px !important;
  }

  body.fsc-order-processing .fsc-payment-processing-title{
    font-size:21px !important;
  }
}

/* FSC v2.9.6 - top minimum order guard */
.fsc-min-order-alert{
  display:none;
  width:100%;
  margin:0 0 16px;
  padding:16px 18px;
  direction:rtl;
  text-align:right;
  align-items:center;
  gap:14px;
  background:#fff7ed;
  border:1px solid rgba(249,115,22,.34);
  border-right:5px solid #f97316;
  border-radius:18px;
  box-shadow:0 10px 26px rgba(154,52,18,.10);
  color:#3f2417;
}
.fsc-min-order-alert.is-visible{
  display:flex;
  animation:fsc-fade-in .18s ease;
}
.fsc-min-order-icon{
  flex:0 0 42px;
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:#ffedd5;
  color:#ea580c;
  font-size:24px;
  font-weight:1000;
  line-height:1;
}
.fsc-min-order-content{
  flex:1;
  min-width:0;
}
.fsc-min-order-title{
  display:block;
  margin:0 0 6px;
  color:#35180e;
  font-size:16px;
  font-weight:1000;
  line-height:1.8;
}
.fsc-min-order-line{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:6px;
  color:#6b341d;
  font-size:14px;
  font-weight:850;
  line-height:2;
}
.fsc-min-order-remaining{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:3px 10px;
  border-radius:999px;
  background:#ea580c;
  color:#fff;
  font-size:15px;
  font-weight:1000;
  line-height:1.9;
  white-space:nowrap;
}
.fsc-min-order-remaining .woocommerce-Price-amount,
.fsc-min-order-remaining .woocommerce-Price-currencySymbol{font:inherit;color:inherit;}
.fsc-min-order-small{
  display:flex;
  flex-wrap:wrap;
  gap:6px 16px;
  margin-top:5px;
  color:#9a5b36;
  font-size:12px;
  font-weight:800;
  line-height:1.9;
}
.fsc-min-order-small b{
  color:#5f2d17;
  font-weight:1000;
}
.fsc-min-order-small .woocommerce-Price-amount,
.fsc-min-order-small .woocommerce-Price-currencySymbol{font:inherit;color:inherit;}
.fsc-min-order-shop{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:40px;
  padding:0 15px;
  border-radius:12px;
  background:#3f2417;
  color:#fff !important;
  text-decoration:none !important;
  font-size:13px;
  font-weight:900;
  line-height:1.8;
  white-space:nowrap;
  box-shadow:0 10px 22px rgba(63,36,23,.16);
  transition:transform .18s ease, background .18s ease;
}
.fsc-min-order-shop:hover{
  transform:translateY(-1px);
  background:#2d160d;
}
.fsc-cart-step-actions.has-min-order-warning .fsc-next:disabled{
  opacity:.72;
  cursor:not-allowed;
}

@media (max-width: 767px){
  .fsc-min-order-alert{
    margin:0 0 14px;
    padding:13px 14px;
    gap:10px;
    align-items:flex-start;
    border-radius:16px;
  }
  .fsc-min-order-icon{
    width:36px;
    height:36px;
    flex-basis:36px;
    font-size:20px;
  }
  .fsc-min-order-title{
    font-size:14px;
    line-height:1.8;
    margin-bottom:5px;
  }
  .fsc-min-order-line{
    font-size:13px;
    line-height:2;
  }
  .fsc-min-order-remaining{
    padding:2px 9px;
    font-size:14px;
  }
  .fsc-min-order-small{
    display:block;
    font-size:11.5px;
  }
  .fsc-min-order-small span{
    display:block;
  }
  .fsc-min-order-shop{
    display:none;
  }
}

