@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;600;700;800&display=swap');
.ers-wrap{font-family:Vazirmatn,Tahoma,Arial,sans-serif;max-width:1180px;margin:35px auto;padding:0 15px;color:#20242a}
.ers-progress{display:flex;align-items:center;justify-content:center;margin-bottom:28px;gap:12px}
.ers-step{display:flex;align-items:center;gap:8px;color:#a0a6ad;font-size:13px;white-space:nowrap}
.ers-step span{width:34px;height:34px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#eef0f3;font-weight:800}
.ers-step.active{color:#1677d2}.ers-step.active span{background:#1677d2;color:#fff}
.ers-line{height:2px;width:55px;background:#e7e9ec}
.ers-grid{display:grid;grid-template-columns:minmax(0,1fr) 390px;gap:22px;align-items:start}
.ers-card{background:#fff;border:1px solid #e8eaed;border-radius:16px;box-shadow:0 8px 28px rgba(20,30,40,.06);padding:24px}
.ers-panel{display:none}.ers-panel.active{display:block}
.ers-card-title{display:flex;align-items:center;gap:12px;margin-bottom:22px}.ers-icon{font-size:28px}.ers-card h2{font-size:20px;margin:0 0 4px}.ers-card-title p{margin:0;color:#858b93;font-size:13px}
.ers-wrap label{display:block;font-size:13px;font-weight:700;margin:0 0 7px}
.ers-wrap input,.ers-wrap textarea{width:100%;box-sizing:border-box;border:1px solid #dfe3e8;border-radius:10px;padding:13px 14px;font:inherit;outline:none;background:#fff;transition:.2s}
.ers-wrap input:focus,.ers-wrap textarea:focus{border-color:#1677d2;box-shadow:0 0 0 3px rgba(22,119,210,.08)}
.ers-btn{border:0;border-radius:10px;background:#e8892f;color:#fff;font:700 14px Vazirmatn,Tahoma;padding:13px 22px;cursor:pointer;margin-top:16px;min-width:170px;transition:.2s}
.ers-btn:hover{filter:brightness(.96);transform:translateY(-1px)}
.ers-fields{display:grid;grid-template-columns:1fr 1fr;gap:16px}.ers-fields .full{grid-column:1/-1}
.ers-hidden{display:none;margin-top:18px}.ers-msg{margin-top:12px;font-size:13px}.ers-resend{font-size:12px;color:#777;margin-top:8px}
.ers-shipping{display:grid;gap:12px}.ers-ship{display:flex!important;align-items:center;gap:12px;border:1px solid #e2e5e9;border-radius:12px;padding:14px;cursor:pointer;margin:0!important}
.ers-ship:has(input:checked){border-color:#1677d2;background:#f4f9ff}.ers-ship input{width:auto}.ers-ship span{display:flex;justify-content:space-between;align-items:center;flex:1}.ers-ship small{color:#777}
.ers-summary{position:sticky;top:20px}.ers-summary h3{margin:0 0 18px;font-size:18px}.ers-product{display:flex;justify-content:space-between;gap:10px;padding:12px 0;border-bottom:1px solid #eee}.ers-product b{font-size:13px;display:block}.ers-product small{display:block;color:#888;margin-top:4px}.ers-product strong{font-size:12px;white-space:nowrap}
.ers-total-row{display:flex;justify-content:space-between;padding:14px 0;font-size:13px}.ers-total-row.shipping{border-top:1px dashed #ddd}.ers-total{display:flex;justify-content:space-between;border-top:1px solid #ddd;padding-top:18px;margin-top:5px}.ers-total strong{font-size:18px;color:#1677d2}
.ers-empty{text-align:center;padding:70px 20px}.ers-error{text-align:center;padding:30px}
@media(max-width:800px){.ers-grid{grid-template-columns:1fr}.ers-summary{position:static;order:-1}.ers-progress{overflow:auto;justify-content:flex-start;padding-bottom:5px}.ers-line{min-width:25px}.ers-step b{display:none}.ers-fields{grid-template-columns:1fr}.ers-fields .full{grid-column:auto}}

.ers-skip-otp{display:none!important}
\n/* v1.1: در سبد خرید فقط مبلغ کالاها و دکمه اقدام به پرداخت دیده شود. */\nbody.woocommerce-cart .cart_totals .shipping,\nbody.woocommerce-cart .cart_totals .woocommerce-shipping-totals,\nbody.woocommerce-cart .woocommerce-shipping-totals,\nbody.woocommerce-cart .woocommerce-shipping-destination,\nbody.woocommerce-cart .shipping-calculator-button,\nbody.woocommerce-cart .cart_totals .woocommerce-shipping-methods,\nbody.woocommerce-cart .cart_totals .shipping-methods,\nbody.woocommerce-cart .cart_totals [class*="shipping"] {\n    display:none !important;\n}\n
.ers-continue-link{display:inline-block;text-decoration:none;text-align:center;box-sizing:border-box}

#ers-phone,#ers-phone-start{direction:ltr;text-align:left}

.ers-nav{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:16px}
.ers-nav .ers-btn{margin-top:0}
.ers-nav-end{justify-content:flex-start}
.ers-prev{background:#6b7280}
@media(max-width:520px){.ers-nav{flex-direction:column-reverse;align-items:stretch}.ers-nav .ers-btn{width:100%}}

.ers-payment{display:grid;gap:12px}
.ers-pay{display:flex!important;align-items:center;gap:12px;border:1px solid #e2e5e9;border-radius:12px;padding:15px;cursor:pointer;margin:0!important}
.ers-pay:has(input:checked){border-color:#1677d2;background:#f4f9ff}
.ers-pay input{width:auto}
.ers-pay span{display:flex;flex-direction:column;gap:5px}
.ers-pay small{color:#777;font-size:12px}
.ers-no-payment{padding:16px;border-radius:12px;background:#fff5f5;color:#a33}
.ers-confirmation-code{margin:20px auto;padding:20px;max-width:700px;border:1px solid #e4e7eb;border-radius:16px;background:#fff;box-shadow:0 8px 28px rgba(20,30,40,.06);display:flex;align-items:center;gap:16px;direction:rtl}
.ers-confirmation-icon{width:48px;height:48px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#218c4b;color:#fff;font-size:25px;font-weight:800}
.ers-confirmation-code div:last-child{display:flex;flex-direction:column;gap:5px}
.ers-confirmation-code span{font-size:25px;font-weight:800;letter-spacing:3px;direction:ltr}
.ers-confirmation-code small{color:#777}

.ers-to-payment-link{display:inline-block;text-decoration:none;text-align:center;box-sizing:border-box}

.ers-nav{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:18px}
.ers-nav .ers-btn,.ers-continue-link,.ers-to-payment-link{background:#e8892f!important;color:#fff!important;border:0!important}
.ers-nav .ers-prev{background:#e8892f!important;color:#fff!important}
.ers-nav .ers-btn:hover,.ers-continue-link:hover,.ers-to-payment-link:hover{background:#d97722!important}
.ers-admin-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;max-width:1100px;margin:20px 0}
.ers-admin-card{background:#fff;border:1px solid #ddd;border-radius:14px;padding:20px;margin:18px 0;max-width:1100px}
.ers-admin-card h2{margin-top:0}.ers-orange-admin{margin-top:14px}
.ers-gateway-list{padding-right:20px}.ers-gateway-list li{margin:7px 0}
@media(max-width:800px){.ers-admin-grid{grid-template-columns:1fr}.ers-nav{flex-direction:row}}
@media(max-width:520px){.ers-nav{flex-direction:column-reverse}.ers-nav .ers-btn,.ers-continue-link,.ers-to-payment-link{width:100%}}

/* Final consistent orange navigation */
.ers-nav{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;margin-top:18px!important}
.ers-nav .ers-btn,.ers-nav a.ers-btn,.ers-continue-link,.ers-to-payment-link{
 background:#e8892f!important;color:#fff!important;border:0!important;border-radius:10px!important;
 min-width:170px!important;height:46px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;
 box-sizing:border-box!important;text-decoration:none!important;font-weight:700!important;
}
.ers-nav .ers-btn:hover,.ers-nav a.ers-btn:hover,.ers-continue-link:hover,.ers-to-payment-link:hover{background:#d97722!important}
.ers-confirmation-code{margin:22px auto!important;max-width:720px!important}
.ers-confirmation-code div:last-child{align-items:flex-start!important}
@media(max-width:520px){
 .ers-nav{flex-direction:column-reverse!important;align-items:stretch!important}
 .ers-nav .ers-btn,.ers-nav a.ers-btn,.ers-continue-link,.ers-to-payment-link{width:100%!important}
}

/* ERS FINAL BUTTON NORMALIZATION */
.ers-wrap .ers-btn,
.ers-wrap a.ers-btn,
.ers-wrap button.ers-btn,
.ers-wrap .ers-prev,
.ers-wrap .ers-next,
.ers-wrap .ers-continue-link,
.ers-wrap .ers-to-payment-link {
    background: #e8892f !important;
    background-image: none !important;
    color: #ffffff !important;
    border: 0 !important;
    border-color: #e8892f !important;
    box-shadow: none !important;
    text-shadow: none !important;
    border-radius: 10px !important;
    min-width: 170px !important;
    height: 46px !important;
    padding: 0 22px !important;
    margin-top: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 46px !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    font-family: Vazirmatn, Tahoma, Arial, sans-serif !important;
    cursor: pointer !important;
    opacity: 1 !important;
}
.ers-wrap .ers-btn:hover,
.ers-wrap a.ers-btn:hover,
.ers-wrap button.ers-btn:hover {
    background: #d97722 !important;
    color: #ffffff !important;
}
.ers-wrap .ers-btn:disabled {
    background: #e8892f !important;
    color: #ffffff !important;
    opacity: .7 !important;
}
.ers-wrap .ers-nav {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    width: 100% !important;
    margin-top: 20px !important;
}
@media (max-width: 520px) {
    .ers-wrap .ers-nav {
        flex-direction: column-reverse !important;
        align-items: stretch !important;
    }
    .ers-wrap .ers-nav .ers-btn,
    .ers-wrap .ers-nav a.ers-btn {
        width: 100% !important;
        min-width: 0 !important;
    }
}

.ers-pay-code{margin:15px 0;padding:16px;border:1px solid #e8892f;border-radius:12px;background:#fffaf5;display:flex;flex-direction:column;gap:6px}
.ers-pay-code strong{font-size:14px}.ers-pay-code span{font-size:24px;font-weight:800;letter-spacing:2px;direction:ltr}.ers-pay-code small{color:#777}

/* Stage 4 layout repair */
.ers-panel[data-panel="4"] .ers-nav{display:flex!important}
.ers-panel[data-panel="4"] .ers-payment{margin-bottom:4px}
.ers-panel[data-panel="4"] .ers-pay{width:100%;box-sizing:border-box}

.ers-msg{white-space:pre-wrap;line-height:1.8}

.ers-msg{word-break:break-word}

/* Guaranteed WooCommerce order-received receipt */
.ers-receipt{max-width:760px;margin:35px auto;padding:32px;background:#fff;border:1px solid #e7e7e7;border-radius:18px;text-align:center;box-shadow:0 8px 30px rgba(0,0,0,.06)}
.ers-receipt-icon{width:58px;height:58px;margin:0 auto 14px;border-radius:50%;background:#e8892f;color:#fff;font-size:34px;line-height:58px;font-weight:800}
.ers-receipt h1{margin:8px 0 10px;font-size:28px}.ers-receipt-lead{color:#666}
.ers-receipt-code{margin:24px auto;padding:20px;border:2px dashed #e8892f;border-radius:14px;background:#fffaf5;display:flex;flex-direction:column;gap:8px}
.ers-receipt-code small{color:#777}.ers-receipt-code strong{font-size:30px;letter-spacing:2px;direction:ltr}
.ers-receipt-info{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:20px 0}
.ers-receipt-info div{padding:14px;border-radius:12px;background:#f7f7f7;display:flex;flex-direction:column;gap:5px}
.ers-receipt-info span{font-size:12px;color:#777}.ers-receipt-items{text-align:right;border:1px solid #eee;border-radius:12px;overflow:hidden}
.ers-receipt-item{display:flex;justify-content:space-between;padding:13px 16px;border-bottom:1px solid #eee}
.ers-receipt-item:last-child{border-bottom:0}.ers-receipt-note{margin-top:20px;color:#777}
@media(max-width:600px){.ers-receipt{margin:20px 10px;padding:22px 15px}.ers-receipt h1{font-size:22px}.ers-receipt-code strong{font-size:22px}.ers-receipt-info{grid-template-columns:1fr}}

.ers-final-receipt{max-width:760px;margin:25px auto;padding:28px;border:1px solid #e5e7eb;border-radius:18px;background:#fff;text-align:center;box-shadow:0 8px 28px rgba(0,0,0,.05)}
.ers-final-check{width:58px;height:58px;line-height:58px;border-radius:50%;margin:0 auto 12px;background:#e8892f;color:#fff;font-size:32px;font-weight:800}
.ers-final-receipt h2{margin:8px 0}.ers-final-receipt p{color:#666}
.ers-final-code{margin:20px auto;padding:18px;border:2px dashed #e8892f;border-radius:12px;background:#fffaf5;display:flex;flex-direction:column;gap:7px}
.ers-final-code small{color:#777}.ers-final-code strong{font-size:28px;letter-spacing:2px;direction:ltr}
.ers-final-meta{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:16px 0}
.ers-final-meta div{padding:12px;background:#f7f7f7;border-radius:10px;display:flex;flex-direction:column;gap:5px}
.ers-final-meta span{font-size:12px;color:#777}.ers-final-items{text-align:right;border:1px solid #eee;border-radius:10px;overflow:hidden}
.ers-final-items div{display:flex;justify-content:space-between;padding:12px 15px;border-bottom:1px solid #eee}
.ers-final-items div:last-child{border-bottom:0}
@media(max-width:600px){.ers-final-receipt{margin:15px 8px;padding:20px 12px}.ers-final-meta{grid-template-columns:1fr}.ers-final-code strong{font-size:21px}}

/* v1.5.8: receipt is inserted into the actual rendered page */
.ers-final-receipt{max-width:760px!important;margin:25px auto!important;padding:28px!important;border:1px solid #e5e7eb!important;border-radius:18px!important;background:#fff!important;text-align:center!important;box-shadow:0 8px 28px rgba(0,0,0,.06)!important;position:relative!important;z-index:9999!important}
.ers-final-receipt .ers-final-check{width:58px!important;height:58px!important;line-height:58px!important;border-radius:50%!important;margin:0 auto 12px!important;background:#e8892f!important;color:#fff!important;font-size:32px!important;font-weight:800!important}
.ers-final-receipt h2{margin:8px 0 10px!important}.ers-final-receipt p{color:#666!important}
.ers-final-receipt .ers-final-code{margin:20px auto!important;padding:18px!important;border:2px dashed #e8892f!important;border-radius:12px!important;background:#fffaf5!important;display:flex!important;flex-direction:column!important;gap:7px!important}
.ers-final-receipt .ers-final-code small{color:#777!important}.ers-final-receipt .ers-final-code strong{font-size:28px!important;letter-spacing:2px!important;direction:ltr!important}
.ers-final-receipt .ers-final-items{text-align:right!important;border:1px solid #eee!important;border-radius:10px!important;overflow:hidden!important}
.ers-final-receipt .ers-final-items div{display:flex!important;justify-content:space-between!important;padding:12px 15px!important;border-bottom:1px solid #eee!important}
.ers-final-receipt .ers-final-items div:last-child{border-bottom:0!important}
@media(max-width:600px){.ers-final-receipt{margin:15px 8px!important;padding:20px 12px!important}.ers-final-receipt .ers-final-code strong{font-size:21px!important}}

.ers-order-result{max-width:820px;margin:30px auto;padding:30px;background:#fff;border-radius:18px;box-shadow:0 8px 30px rgba(0,0,0,.06);text-align:center}
.ers-result-check{width:60px;height:60px;line-height:60px;border-radius:50%;margin:0 auto 12px;background:#e8892f;color:#fff;font-size:34px;font-weight:800}
.ers-result-code{margin:22px auto;padding:20px;border:2px dashed #e8892f;border-radius:14px;background:#fffaf5;display:flex;flex-direction:column;gap:8px}
.ers-result-code strong{font-size:30px;letter-spacing:2px;direction:ltr}
.ers-result-meta{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:20px 0}
.ers-result-meta div{padding:14px;background:#f7f7f7;border-radius:12px;display:flex;flex-direction:column;gap:5px}
.ers-result-meta span{font-size:12px;color:#777}
.ers-result-items{text-align:right;border:1px solid #eee;border-radius:12px;overflow:hidden}
.ers-result-items div{display:flex;justify-content:space-between;padding:13px 16px;border-bottom:1px solid #eee}
.ers-result-items div:last-child{border-bottom:0}
.ers-result-error{max-width:700px;margin:30px auto;padding:20px;background:#fff;border:1px solid #eee;border-radius:12px;text-align:center}
@media(max-width:600px){.ers-order-result{margin:15px 8px;padding:20px 12px}.ers-result-meta{grid-template-columns:1fr}.ers-result-code strong{font-size:22px}}

.ers-admin .ers-admin-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;max-width:1100px}
.ers-admin .ers-admin-card{background:#fff;border:1px solid #e5e7eb;border-radius:14px;padding:20px;margin:18px 0;max-width:1100px}
.ers-admin .ers-admin-card h2{margin-top:0}
.ers-admin .ers-orange-admin{background:#e8892f!important;border-color:#e8892f!important;color:#fff!important}
.ers-admin .ers-orange-admin:hover{background:#d97722!important;border-color:#d97722!important}
.ers-admin input{min-height:36px}
@media(max-width:800px){.ers-admin .ers-admin-grid{grid-template-columns:1fr}}

/* v1.7.0 - product visuals and quantity controls */
.ers-products{display:flex;flex-direction:column;gap:10px}
.ers-product{display:grid;grid-template-columns:64px minmax(0,1fr) auto;gap:12px;align-items:center;padding:12px;border:1px solid #eee;border-radius:14px;background:#fff;transition:.2s;min-width:0}
.ers-product.is-loading{opacity:.55;pointer-events:none}
.ers-product-thumb{width:58px;height:58px;border-radius:12px;overflow:hidden;background:#f7f7f7;display:flex;align-items:center;justify-content:center}
.ers-product-thumb img{width:100%;height:100%;object-fit:contain}
.ers-product-info{min-width:0;display:flex;flex-direction:column;gap:4px}
.ers-product-info b{font-size:14px;line-height:1.65;word-break:keep-all;overflow-wrap:normal;hyphens:none}
.ers-product-info small{font-size:11px;color:#777}
.ers-stock-info{display:block;font-size:11px;font-weight:700;color:#218c4b;margin-top:1px}

.ers-qty{display:flex;align-items:center;gap:5px;margin-top:4px}
.ers-qty-btn{width:28px;height:28px;border:0;border-radius:8px;background:#e8892f;color:#fff;font-size:20px;line-height:1;cursor:pointer}
.ers-qty-input{width:42px!important;height:28px!important;padding:2px!important;text-align:center;border:1px solid #ddd!important;border-radius:8px!important}
.ers-product-line-total{white-space:nowrap;font-size:13px}
.ers-result-item{display:flex;justify-content:space-between;align-items:center;padding:12px 15px;border-bottom:1px solid #eee}
.ers-result-item:last-child{border-bottom:0}
.ers-result-product{display:flex;align-items:center;gap:10px}
.ers-result-product img{width:48px;height:48px;object-fit:contain;border-radius:8px;background:#f7f7f7}
.ers-result-actions{display:flex;justify-content:center;gap:10px;flex-wrap:wrap;margin-top:22px}
.ers-result-btn{display:inline-block;padding:11px 22px;border-radius:10px;background:#e8892f;color:#fff!important;text-decoration:none!important;font-weight:700}
.ers-result-btn:hover{filter:brightness(.94)}
@media(max-width:600px){.ers-product{grid-template-columns:48px 1fr}.ers-product-thumb{width:48px;height:48px}.ers-product-line-total{grid-column:2}.ers-qty-btn{width:26px;height:26px}}

/* v1.7.2 - personalized final receipt */
.ers-order-result h2{font-size:24px;line-height:1.9;margin:8px 0 6px}
.ers-result-sub{margin-bottom:18px}
.ers-result-meta{grid-template-columns:repeat(5,1fr)}
@media(max-width:900px){.ers-result-meta{grid-template-columns:repeat(2,1fr)}}
@media(max-width:600px){.ers-result-meta{grid-template-columns:1fr}.ers-order-result h2{font-size:20px}}

/* v1.8.0 final receipt redesign */
.ers-order-result{
  max-width:900px!important;margin:35px auto!important;padding:0!important;background:#fff!important;
  border:1px solid #ececec!important;border-radius:24px!important;overflow:hidden!important;
  box-shadow:0 16px 45px rgba(0,0,0,.10)!important;text-align:right!important;
}
.ers-order-result:before{content:"";display:block;height:7px;background:#e8892f}
.ers-order-result .ers-result-check{
  width:72px;height:72px;line-height:72px;border-radius:50%;margin:28px auto 12px;
  background:#e8892f;color:#fff;font-size:38px;font-weight:900;text-align:center;
}
.ers-order-result h2{text-align:center;font-size:25px;line-height:1.9;margin:0 22px 4px;color:#202020}
.ers-order-result .ers-result-sub{text-align:center;color:#777;margin:0 20px 22px}
.ers-result-code{
  margin:0 28px 20px;padding:18px 20px;border-radius:16px;background:#fff7ef;border:1px solid #f4d5b4;text-align:center;
}
.ers-result-code small{display:block;color:#8a6a50;margin-bottom:7px}
.ers-result-code strong{display:block;font-size:27px;letter-spacing:1.5px;color:#e06f12}
.ers-result-meta{
  display:grid;grid-template-columns:repeat(5,1fr);gap:10px;margin:0 28px 25px
}
.ers-result-meta>div{padding:15px 12px;border:1px solid #ededed;border-radius:14px;background:#fafafa;text-align:center;min-width:0}
.ers-result-meta span{display:block;font-size:11px;color:#888;margin-bottom:6px}
.ers-result-meta b{display:block;font-size:13px;word-break:break-word}
.ers-order-result>h3{margin:0 28px 12px;font-size:18px}
.ers-result-items{margin:0 28px;border:1px solid #eee;border-radius:16px;overflow:hidden}
.ers-result-item{background:#fff}
.ers-result-product img{width:58px!important;height:58px!important;border-radius:12px!important}
.ers-result-actions{padding:24px 28px 30px;display:flex;justify-content:center;gap:12px;flex-wrap:wrap}
.ers-result-btn{min-width:160px;text-align:center;background:#e8892f!important;border-radius:12px!important}
.ers-admin-table input{max-width:100%}.ers-inline-form{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.ers-inline-form input{min-height:34px}
@media(max-width:900px){
 .ers-result-meta{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:600px){
 .ers-order-result{margin:18px 8px!important;border-radius:18px!important}
 .ers-result-code,.ers-result-meta,.ers-order-result>h3,.ers-result-items{margin-left:14px;margin-right:14px}
 .ers-result-meta{grid-template-columns:1fr 1fr}
 .ers-order-result h2{font-size:20px}
 .ers-result-code strong{font-size:21px}
 .ers-result-actions{padding:18px 14px 24px}
 .ers-result-btn{width:100%}
}

/* v1.8.1 visual upgrade */
.ers-order-result{position:relative;overflow:hidden;border:1px solid #f0e2d7;background:linear-gradient(180deg,#fff 0%,#fffaf6 100%)}
.ers-order-result:before{content:"";position:absolute;top:0;right:0;left:0;height:6px;background:#e8892f}
.ers-result-code strong{font-family:monospace;background:#fff;padding:7px 12px;border-radius:9px}

/* v1.9.1 - Persian numerals */
.ers-qty-input{direction:ltr;text-align:center}

/* v1.9.2 Persian numeric UI */
.ers-step-checkout,.ers-order-result{font-variant-numeric:normal}

/* v2.0.0 - phone-first checkout */
.ers-user-phone{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:14px 16px;margin:0 0 18px;border:1px solid #e8e8e8;border-radius:14px;background:#fafafa}
.ers-user-phone span{color:#777}.ers-user-phone strong{font-size:18px;direction:ltr}.ers-user-phone small{color:#999}
.ers-login-required{max-width:620px;margin:40px auto;padding:38px 28px;text-align:center;border-radius:22px;background:#fff;box-shadow:0 12px 40px rgba(0,0,0,.08)}
.ers-login-icon{font-size:42px;margin-bottom:10px}
.ers-login-required h2{margin:0 0 10px}.ers-login-required p{color:#777;line-height:2;margin-bottom:22px}

/* v2.1.0 - phone verification order gate */
.ers-digits-gate{max-width:620px;margin:40px auto;padding:38px 28px;text-align:center;border-radius:22px;background:#fff;box-shadow:0 12px 40px rgba(0,0,0,.08)}
.ers-digits-order-login{border:0;cursor:pointer;min-width:240px}
.ers-digits-note{margin-top:14px;color:#999;font-size:13px}
.ers-digits-modal-source{position:absolute;left:-99999px;width:1px;height:1px;overflow:visible}

/* v2.2.0 - verification opens immediately; do not show a separate checkout gate */
.ers-digits-gate{display:none!important}

/* v2.2.5 province/city dropdowns */
.ers-fields select{width:100%;min-height:48px;border:1px solid #e4e7eb;border-radius:12px;padding:0 14px;background:#fff;font-family:inherit;font-size:14px;color:#333;outline:none}.ers-fields select:focus{border-color:#f28c28;box-shadow:0 0 0 3px rgba(242,140,40,.10)}.ers-fields select:disabled{background:#f7f7f7;color:#9a9a9a;cursor:not-allowed;opacity:1}


/* v2.2.9 - personalized customer welcome card */
.ers-checkout-content.ers-welcome-hidden{display:none}
.ers-welcome-card{
  max-width:720px;margin:30px auto 34px;padding:42px 34px;text-align:center;direction:rtl;
  background:linear-gradient(180deg,#fff 0%,#fffaf5 100%);
  border:1px solid #eee3da;border-radius:24px;box-shadow:0 16px 45px rgba(20,30,40,.09);
  position:relative;overflow:hidden;
}
.ers-welcome-card:before{content:"";position:absolute;top:0;right:0;left:0;height:5px;background:#e8892f}
.ers-welcome-icon{width:66px;height:66px;margin:0 auto 18px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#fff1e5;font-size:31px}
.ers-welcome-card h2{margin:0 auto 10px;font-size:23px;line-height:1.9;color:#20242a;font-weight:800}
.ers-welcome-card p{margin:0 auto 25px;color:#777;font-size:14px;line-height:2}
.ers-welcome-btn{border:0;border-radius:12px;background:#e8892f;color:#fff;font:700 14px Vazirmatn,Tahoma;padding:14px 26px;min-width:220px;cursor:pointer;transition:.2s;box-shadow:0 7px 18px rgba(232,137,47,.20)}
.ers-welcome-btn:hover{filter:brightness(.96);transform:translateY(-1px)}
.ers-welcome-btn:disabled{opacity:.7;cursor:wait;transform:none}
.ers-welcome-btn span{display:inline-block;margin-right:7px}
.ers-welcome-existing .ers-welcome-icon{background:#eef7ff}
@media(max-width:600px){
 .ers-welcome-card{margin:18px 8px 24px;padding:34px 18px;border-radius:20px}
 .ers-welcome-card h2{font-size:19px}
 .ers-welcome-card p{font-size:13px}
 .ers-welcome-btn{width:100%;min-width:0}
}

/* v2.2.19 - pickup note + card-to-card */
.ers-pickup-note{margin:-4px 0 6px;padding:12px 14px;border:1px solid #f3d5b6;background:#fff8f1;border-radius:10px;color:#9a5a1b;font-size:12px;line-height:1.9}
.ers-pay-card-to-card{border-color:#e2e5e9}
.ers-pay-card-to-card:has(input:checked){border-color:#e8892f;background:#fff9f3}
.ers-card-to-card-box{margin-top:-2px;padding:18px;border:1px solid #f0d8c0;border-radius:14px;background:linear-gradient(180deg,#fffaf5,#fff);display:grid;gap:10px}
.ers-card-to-card-box[hidden]{display:none!important}
.ers-bank-title{font-weight:800;font-size:16px;margin-bottom:2px}
.ers-bank-card-image{display:block;max-width:260px;max-height:160px;width:auto;height:auto;object-fit:contain;border-radius:12px;border:1px solid #eee;background:#fff}
.ers-card-to-card-box>div:not(.ers-bank-title):not(.ers-card-to-card-guide){display:flex;justify-content:space-between;gap:15px;padding:9px 0;border-bottom:1px dashed #eee;font-size:13px}
.ers-card-to-card-box>div span{color:#777}.ers-card-to-card-box>div b{color:#222}
.ers-card-to-card-guide{padding:12px;border-radius:10px;background:#fff5ea;color:#8a5523;font-size:12px;line-height:1.9}
.ers-receipt-label{margin-top:4px!important}.ers-receipt-label em{color:#d35400;font-style:normal}
.ers-payment-receipt{padding:10px!important;border-style:dashed!important;background:#fffaf6!important}
.ers-upload-help{color:#888;font-size:11px}
@media(max-width:600px){.ers-card-to-card-box{padding:14px}.ers-bank-card-image{max-width:100%}}

/* v2.2.20 - expandable card-to-card details and multiple bank cards */
.ers-card-to-card-box{margin-top:-4px!important;padding:18px!important;border:1px solid #f0d8c0!important;border-radius:14px!important;background:#fffaf5!important;display:grid!important;gap:12px!important}
.ers-card-to-card-box[hidden]{display:none!important}
.ers-card-to-card-title{font-weight:800;font-size:15px;color:#222;padding-bottom:4px}
.ers-bank-card-row{display:flex;align-items:center;gap:16px;padding:14px;background:#fff;border:1px solid #eee;border-radius:12px}
.ers-bank-card-image{width:150px;max-width:35%;max-height:100px;object-fit:contain;border-radius:10px;background:#f7f7f7}
.ers-bank-card-data{flex:1;min-width:0;display:grid;gap:7px}
.ers-bank-card-data div{display:flex;justify-content:space-between;gap:12px;border-bottom:1px dashed #eee;padding-bottom:6px}
.ers-bank-card-data div:last-child{border-bottom:0;padding-bottom:0}
.ers-bank-card-data span{color:#777;font-size:12px}.ers-bank-card-data b{font-size:13px}
.ers-admin .ers-card-admin-row{margin:15px 0;padding:16px;border:1px solid #e5e7eb;border-radius:12px;background:#fafafa}
.ers-admin .ers-card-admin-row h3{margin:0 0 8px}
@media(max-width:600px){.ers-bank-card-row{flex-direction:column;align-items:stretch}.ers-bank-card-image{width:100%;max-width:100%;max-height:170px}.ers-bank-card-data div{flex-direction:column;gap:2px}}

/* v2.2.21 - robust payment option expansion */
.ers-card-to-card-box.is-open{display:grid!important;visibility:visible!important;opacity:1!important;}
.ers-pay-card-to-card{cursor:pointer;}

/* v2.2.23 - dedicated payment choices */
.ers-pay-snappay,.ers-pay-zarinpal{position:relative}
.ers-pay-snappay:before,.ers-pay-zarinpal:before{content:'';width:8px;height:8px;border-radius:50%;background:#e8892f;display:inline-block;margin-left:8px;vertical-align:middle}
.ers-pay-snappay span,.ers-pay-zarinpal span{display:flex;flex-direction:column;gap:4px}
.ers-pay-snappay small,.ers-pay-zarinpal small{color:#777;font-size:12px;line-height:1.8}

/* Stock-aware quantity controls */
.ers-qty-input[data-max]{font-variant-numeric:tabular-nums;}
.ers-product[data-stock-limit] .ers-qty-btn{transition:opacity .2s,transform .2s,background .2s;}
.ers-product[data-stock-limit] .ers-qty-btn:hover{transform:translateY(-1px);}


/* v2.2.31 - refined saved-address selector */
.ers-address-picker{margin:20px 0 8px;padding:0;border:0;background:transparent;direction:rtl}
.ers-address-picker-head{display:flex;align-items:flex-end;justify-content:space-between;margin:0 0 10px;padding:0 2px}
.ers-address-picker-head strong{display:block;font-size:15px;line-height:1.5;color:#1f1f1f;font-weight:800}
.ers-address-picker-head small{display:block;margin-top:3px;color:#909090;font-size:11px;line-height:1.7}
.ers-address-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.ers-address-option{position:relative;width:100%;min-width:0;display:flex;align-items:center;gap:9px;text-align:right;border:1px solid #e9e9e9;background:#fff;border-radius:12px;padding:10px 11px;cursor:pointer;font-family:inherit;transition:border-color .16s ease,background .16s ease,box-shadow .16s ease,transform .16s ease;direction:rtl;box-sizing:border-box;box-shadow:0 1px 2px rgba(0,0,0,.02)}
.ers-address-option:hover{border-color:#d9d9d9;transform:translateY(-1px);box-shadow:0 4px 14px rgba(0,0,0,.05)}
.ers-address-option.selected{border-color:#e8892f;background:#fffaf5;box-shadow:0 0 0 1px rgba(232,137,47,.16)}
.ers-address-option>span:nth-child(2){flex:1;min-width:0}
.ers-address-option b{display:block;color:#242424;font-size:12.5px;line-height:1.6;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ers-address-option small{display:block;color:#8a8a8a;font-size:10.5px;line-height:1.7;margin-top:1px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ers-address-option i{font-style:normal;width:20px;height:20px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#f0f0f0;color:transparent;font-size:10px;font-weight:900;flex:none;transition:.16s}
.ers-address-option.selected i{background:#e8892f;color:#fff}
.ers-address-option-icon{width:30px;height:30px;border-radius:9px;display:flex;align-items:center;justify-content:center;background:#f5f5f5;color:#707070;font-size:15px;flex:none;transition:.16s}
.ers-address-option.selected .ers-address-option-icon{background:#ffeedf;color:#df761b}
.ers-address-new{border-style:dashed;background:#fcfcfc}
.ers-address-new b{color:#d87818}
.ers-new-address-save{margin-top:8px;padding:10px 11px;border:1px solid #eee3d9;border-radius:11px;background:#fffaf6}
.ers-new-address-save[hidden]{display:none!important}
.ers-new-address-save label{display:flex;align-items:center;gap:7px;font-size:11.5px;color:#5f5f5f;cursor:pointer}
.ers-new-address-save input[type=checkbox]{accent-color:#e8892f}
.ers-new-address-save input[type=text]{width:100%;margin-top:8px;min-height:40px;border:1px solid #e3e3e3;border-radius:9px;padding:0 11px;font-family:inherit;box-sizing:border-box}
.ers-new-address-save input[type=text][hidden]{display:none!important}
@media(max-width:700px){
  .ers-address-options{grid-template-columns:1fr}
  .ers-address-picker{margin-top:17px}
  .ers-address-option{padding:9px 10px;border-radius:11px}
  .ers-address-option-icon{width:29px;height:29px}
  .ers-address-option small{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
}


/* v2.2.32 - premium checkout address UI */
.ers-address-picker{margin:24px 0 10px!important;padding:0!important;position:relative}
.ers-address-picker:before{content:"";display:block;height:1px;background:linear-gradient(90deg,transparent,#ededed,transparent);margin:0 0 18px}
.ers-address-picker-head{margin:0 0 13px!important;padding:0 2px!important;align-items:center!important}
.ers-address-picker-head strong{font-size:16px!important;color:#171717!important;letter-spacing:-.15px}
.ers-address-picker-head small{font-size:11.5px!important;color:#8b8b8b!important;margin-top:4px!important}
.ers-address-options{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
.ers-address-option{min-height:68px!important;padding:11px 12px!important;border:1px solid #e8e8e8!important;border-radius:15px!important;background:linear-gradient(180deg,#fff 0%,#fdfdfd 100%)!important;box-shadow:0 3px 12px rgba(0,0,0,.035)!important;transform:none!important;overflow:hidden}
.ers-address-option:after{content:"";position:absolute;inset:0;background:linear-gradient(110deg,rgba(255,255,255,.7),transparent 45%);pointer-events:none;opacity:0;transition:.2s}
.ers-address-option:hover{border-color:#ddd!important;box-shadow:0 7px 20px rgba(0,0,0,.07)!important;transform:translateY(-2px)!important}
.ers-address-option.selected{border-color:#e8892f!important;background:linear-gradient(180deg,#fffdfb 0%,#fff7ef 100%)!important;box-shadow:0 7px 22px rgba(232,137,47,.12),0 0 0 1px rgba(232,137,47,.08)!important}
.ers-address-option.selected:after{opacity:1}
.ers-address-option-icon{width:34px!important;height:34px!important;border-radius:11px!important;background:#f4f4f4!important;color:#626262!important;font-size:16px!important;box-shadow:inset 0 0 0 1px rgba(0,0,0,.025)}
.ers-address-option.selected .ers-address-option-icon{background:#ffe8d4!important;color:#d96e10!important}
.ers-address-option b{font-size:13px!important;line-height:1.55!important}
.ers-address-option small{font-size:10.8px!important;color:#8a8a8a!important;line-height:1.75!important}
.ers-address-option i{width:23px!important;height:23px!important;background:#f1f1f1!important;border:1px solid #e8e8e8!important;font-size:11px!important}
.ers-address-option.selected i{background:#e8892f!important;border-color:#e8892f!important;box-shadow:0 3px 8px rgba(232,137,47,.22)}
.ers-address-new{border:1px dashed #e7c5a8!important;background:linear-gradient(180deg,#fffaf5,#fff7ef)!important}
.ers-address-new .ers-address-option-icon{background:#fff0e3!important;color:#df761b!important}
.ers-address-new b{color:#d66d12!important}
.ers-new-address-save{margin-top:10px!important;padding:12px 13px!important;border:1px solid #eee2d7!important;border-radius:13px!important;background:#fffaf6!important;box-shadow:0 3px 12px rgba(0,0,0,.025)}
.ers-new-address-save label{font-size:12px!important;color:#555!important}
.ers-new-address-save input[type=text]{min-height:42px!important;border-radius:10px!important;background:#fff!important}
@media(max-width:700px){
 .ers-address-picker:before{margin-bottom:15px}
 .ers-address-options{grid-template-columns:1fr!important;gap:8px!important}
 .ers-address-option{min-height:64px!important;padding:10px 11px!important;border-radius:14px!important}
 .ers-address-option:hover{transform:none!important}
 .ers-address-picker-head strong{font-size:15px!important}
}

/* v2.2.33 - unified premium field cards */
.ers-address-options{grid-template-columns:repeat(2,minmax(0,1fr))!important;align-items:stretch!important}
.ers-address-option.ers-address-new{grid-column:1 / -1!important;width:100%!important;min-height:58px!important;justify-content:flex-start!important}
.ers-address-option.ers-address-new .ers-address-option-icon{width:32px!important;height:32px!important}

/* Make every information box on step 1 use the same premium language */
.ers-panel[data-panel="4"] .ers-user-phone,
.ers-panel[data-panel="4"] .ers-fields>div,
.ers-panel[data-panel="4"] .ers-new-address-save{
  border:1px solid #e8e8e8!important;
  border-radius:15px!important;
  background:linear-gradient(180deg,#fff 0%,#fdfdfd 100%)!important;
  box-shadow:0 3px 12px rgba(0,0,0,.035)!important;
  box-sizing:border-box!important;
}
.ers-panel[data-panel="4"] .ers-user-phone{padding:13px 15px!important;margin:0 0 12px!important}
.ers-panel[data-panel="4"] .ers-fields{gap:10px!important}
.ers-panel[data-panel="4"] .ers-fields>div{padding:10px 12px!important;min-width:0}
.ers-panel[data-panel="4"] .ers-fields>div.full{padding:10px 12px!important}
.ers-panel[data-panel="4"] .ers-fields label{display:block!important;margin:0 0 6px!important;color:#777!important;font-size:11px!important;font-weight:600!important}
.ers-panel[data-panel="4"] .ers-fields input,
.ers-panel[data-panel="4"] .ers-fields select,
.ers-panel[data-panel="4"] .ers-fields textarea{
  width:100%!important;border:0!important;outline:0!important;background:transparent!important;box-shadow:none!important;border-radius:8px!important;padding:0!important;font-family:inherit!important;color:#222!important;box-sizing:border-box!important
}
.ers-panel[data-panel="4"] .ers-fields input,
.ers-panel[data-panel="4"] .ers-fields select{min-height:32px!important}
.ers-panel[data-panel="4"] .ers-fields textarea{min-height:62px!important;resize:vertical!important;padding-top:2px!important}
.ers-panel[data-panel="4"] .ers-fields>div:focus-within{border-color:#e6c5a8!important;box-shadow:0 0 0 3px rgba(232,137,47,.07),0 5px 18px rgba(0,0,0,.045)!important}
.ers-panel[data-panel="4"] .ers-new-address-save{margin-top:10px!important;padding:12px 14px!important;background:linear-gradient(180deg,#fffaf5,#fff7ef)!important;border-color:#ead9ca!important}
.ers-panel[data-panel="4"] .ers-new-address-save input[type=text]{border:1px solid #e5e5e5!important;background:#fff!important;padding:0 11px!important}

/* Consistent cards for later checkout panels */
.ers-panel[data-panel="4"] .ers-shipping,
.ers-panel[data-panel="4"] .ers-payment,
.ers-panel[data-panel="4"] .ers-payment{
  gap:10px!important;
}
.ers-panel[data-panel="4"] .ers-shipping>*,
.ers-panel[data-panel="4"] .ers-payment>*,
.ers-panel[data-panel="4"] .ers-payment>*{
  border-radius:15px!important;
  box-shadow:0 3px 12px rgba(0,0,0,.035)!important;
}
@media(max-width:600px){
  .ers-address-options{grid-template-columns:1fr!important}
  .ers-address-option.ers-address-new{grid-column:1!important}
  .ers-panel[data-panel="4"] .ers-fields>div{padding:9px 11px!important}
}

/* v2.2.34 - distinct new-address card */
.ers-address-option.ers-address-new{grid-column:1 / -1;background:linear-gradient(135deg,#f4f8ff,#eef4ff);border:1px dashed #8fb3e8;color:#24558f;justify-content:flex-start;box-shadow:none}
.ers-address-option.ers-address-new b{color:#24558f;font-size:13px}
.ers-address-option.ers-address-new small{color:#6f8fb5}
.ers-address-option.ers-address-new i{background:#dbe9fb;color:#3f6f9f}
.ers-address-option.ers-address-new:hover{background:linear-gradient(135deg,#edf5ff,#e7f0ff);border-color:#6f9fdc;box-shadow:0 5px 16px rgba(61,110,170,.10);transform:translateY(-1px)}

/* v2.2.35 - ONLY: blue new-address card + truly responsive 3-step progress on mobile */
.ers-address-option.ers-address-new{
  background:linear-gradient(135deg,#f4f8ff,#eef4ff)!important;
  border:1px dashed #8fb3e8!important;
  color:#24558f!important;
}
.ers-address-option.ers-address-new b{color:#24558f!important}
.ers-address-option.ers-address-new small{color:#6f8fb5!important}
.ers-address-option.ers-address-new i{background:#dbe9fb!important;color:#3f6f9f!important}
.ers-address-option.ers-address-new .ers-address-option-icon{background:#dbe9fb!important;color:#3f6f9f!important}
.ers-address-option.ers-address-new:hover{background:linear-gradient(135deg,#edf5ff,#e7f0ff)!important;border-color:#6f9fdc!important}

@media(max-width:800px){
  .ers-progress{
    width:100%;
    box-sizing:border-box;
    overflow:visible!important;
    justify-content:space-between!important;
    align-items:flex-start!important;
    gap:4px!important;
    padding:0 2px 8px!important;
    margin-bottom:20px!important;
  }
  .ers-step{
    flex:1 1 0;
    min-width:0;
    flex-direction:column!important;
    justify-content:flex-start!important;
    align-items:center!important;
    gap:5px!important;
    text-align:center!important;
    font-size:10px!important;
    white-space:normal!important;
    line-height:1.4!important;
  }
  .ers-step span{
    width:31px!important;
    height:31px!important;
    min-width:31px!important;
    flex:0 0 31px!important;
    font-size:12px!important;
  }
  .ers-step b{
    display:block!important;
    max-width:100%!important;
    font-size:10px!important;
    font-weight:700!important;
    line-height:1.45!important;
  }
  .ers-line{
    flex:1 1 24px!important;
    width:auto!important;
    min-width:18px!important;
    max-width:70px!important;
    height:2px!important;
    margin-top:15px!important;
  }
}
@media(max-width:380px){
  .ers-progress{gap:2px!important;padding-left:0!important;padding-right:0!important}
  .ers-step span{width:28px!important;height:28px!important;min-width:28px!important;flex-basis:28px!important;font-size:11px!important}
  .ers-step b{font-size:9px!important}
  .ers-line{min-width:12px!important;margin-top:13px!important}
}


/* v2.2.36 — نمایش رنگ و گارانتی انتخاب‌شده در خلاصه سفارش */
.ers-product-options-summary{display:flex;flex-wrap:wrap;gap:6px;margin:7px 0 5px;direction:rtl;min-width:0}
.ers-option-chip{display:inline-flex;align-items:center;gap:4px;padding:4px 8px;border-radius:9px;background:#f7f7f7;border:1px solid #e6e6e6;color:#444;font-size:11px;line-height:1.5;white-space:normal;max-width:100%;box-sizing:border-box}
.ers-option-chip strong{font-weight:700;color:#222}
.ers-color-chip i{width:9px;height:9px;border-radius:50%;display:inline-block;background:#777;border:1px solid rgba(0,0,0,.12)}
.ers-warranty-chip{background:#fff8ef;border-color:#f3d6ad}
.ers-warranty-chip strong{color:#b86a00}

/* v2.2.40 - clean order-summary product cards */
.ers-summary{min-width:0}
.ers-summary .ers-card{box-sizing:border-box}
.ers-products .ers-product-line-total{align-self:center;direction:rtl}
@media(max-width:900px){.ers-grid{grid-template-columns:1fr}.ers-summary{order:-1}}
@media(min-width:901px){.ers-summary{width:100%;max-width:390px}.ers-product-info{min-width:0}.ers-product-info b{display:block;max-width:100%}}
@media(max-width:600px){.ers-product{grid-template-columns:50px minmax(0,1fr);gap:10px}.ers-product-thumb{width:50px;height:50px}.ers-product-line-total{grid-column:2;justify-self:start;margin-top:2px}.ers-qty{margin-top:6px}}


/* v2.2.43 — remove individual cart item */
.ers-product{position:relative}
.ers-remove-product{position:absolute;top:7px;left:7px;width:24px;height:24px;padding:0;border:0;border-radius:50%;background:#f3f3f3;color:#777;font-size:18px;line-height:22px;text-align:center;cursor:pointer;z-index:3;transition:.18s}
.ers-remove-product:hover{background:#f5e7e7;color:#c0392b;transform:scale(1.05)}
@media(max-width:600px){.ers-remove-product{top:6px;left:6px;width:23px;height:23px;font-size:17px;line-height:21px}}
\n/* v2.2.44 — four-step checkout: cart → customer info → shipping → payment */\n.ers-grid.ers-show-cart .ers-main{display:none!important;}\n.ers-grid.ers-show-cart .ers-summary{grid-column:1/-1!important;max-width:none!important;width:100%!important;position:static!important;}\n.ers-grid.ers-show-cart .ers-summary .ers-card{width:100%!important;box-sizing:border-box;}\n.ers-cart-nav{margin-top:18px!important;}\n@media(max-width:900px){\n  .ers-grid.ers-show-cart .ers-main{display:none!important;}\n  .ers-grid.ers-show-cart .ers-summary{grid-column:auto!important;max-width:none!important;width:100%!important;}\n}\n\n/* v2.2.44 — restore the original recipient/shipping styling on their new step numbers */\n.ers-info-panel .ers-user-phone,\n.ers-info-panel .ers-fields>div,\n.ers-info-panel .ers-new-address-save{\n  border:1px solid #e8e8e8!important;\n  border-radius:15px!important;\n  background:linear-gradient(180deg,#fff 0%,#fdfdfd 100%)!important;\n  box-shadow:0 3px 12px rgba(0,0,0,.035)!important;\n  box-sizing:border-box!important;\n}\n.ers-info-panel .ers-user-phone{padding:13px 15px!important;margin:0 0 12px!important}\n.ers-info-panel .ers-fields{gap:10px!important}\n.ers-info-panel .ers-fields>div{padding:10px 12px!important;min-width:0}\n.ers-info-panel .ers-fields>div.full{padding:10px 12px!important}\n.ers-info-panel .ers-fields label{display:block!important;margin:0 0 6px!important;color:#777!important;font-size:11px!important;font-weight:600!important}\n.ers-info-panel .ers-fields input,.ers-info-panel .ers-fields select,.ers-info-panel .ers-fields textarea{width:100%!important;border:0!important;outline:0!important;background:transparent!important;box-shadow:none!important;border-radius:8px!important;padding:0!important;font-family:inherit!important;color:#222!important;box-sizing:border-box!important}\n.ers-info-panel .ers-fields input,.ers-info-panel .ers-fields select{min-height:32px!important}\n.ers-info-panel .ers-fields textarea{min-height:62px!important;resize:vertical!important;padding-top:2px!important}\n.ers-info-panel .ers-fields>div:focus-within{border-color:#e6c5a8!important;box-shadow:0 0 0 3px rgba(232,137,47,.07),0 5px 18px rgba(0,0,0,.045)!important}\n.ers-info-panel .ers-new-address-save{margin-top:10px!important;padding:12px 14px!important;background:linear-gradient(180deg,#fffaf5,#fff7ef)!important;border-color:#ead9ca!important}\n.ers-info-panel .ers-new-address-save input[type=text]{border:1px solid #e5e5e5!important;background:#fff!important;padding:0 11px!important}\n.ers-panel[data-panel="3"] .ers-shipping{gap:10px!important}\n.ers-panel[data-panel="3"] .ers-shipping>*{border-radius:15px!important;box-shadow:0 3px 12px rgba(0,0,0,.035)!important}\n@media(max-width:600px){.ers-info-panel .ers-fields>div{padding:9px 11px!important}}\n
/* v2.2.45 — keep desktop checkout in the original 3-stage layout; mobile remains 4-stage */
@media(min-width:801px){
  .ers-desktop-three{}
  .ers-grid.ers-show-cart .ers-main{display:block!important;}
  .ers-grid.ers-show-cart .ers-summary{grid-column:auto!important;max-width:390px!important;width:100%!important;position:sticky!important;top:20px!important;}
  .ers-panel[data-panel="2"].active{display:block!important;}
  .ers-panel[data-panel="1"].active{display:block!important;}
  .ers-cart-nav{display:none!important;}
  .ers-progress .ers-line:nth-of-type(6),
  .ers-progress .ers-step:nth-of-type(7){display:none!important;}
}
@media(max-width:800px){
  .ers-grid.ers-show-cart .ers-main{display:none!important;}
  .ers-grid.ers-show-cart .ers-summary{grid-column:auto!important;max-width:none!important;width:100%!important;position:static!important;}
}


/* v2.2.46 — cart product card: image right, remove button top-left */
.ers-product{
  position:relative!important;
  display:block!important;
  min-height:84px!important;
  box-sizing:border-box!important;
  padding:12px 78px 12px 42px!important;
}
.ers-product-thumb{
  position:absolute!important;
  right:12px!important;
  top:50%!important;
  transform:translateY(-50%)!important;
  width:58px!important;
  height:58px!important;
  margin:0!important;
}
.ers-product-info{min-width:0!important;width:100%!important}
.ers-product-line-total{display:block!important;margin-top:6px!important}
.ers-remove-product{
  position:absolute!important;
  top:8px!important;
  left:8px!important;
  right:auto!important;
  z-index:10!important;
}
@media(max-width:600px){
  .ers-product{min-height:76px!important;padding:10px 64px 10px 36px!important}
  .ers-product-thumb{right:9px!important;width:50px!important;height:50px!important}
  .ers-remove-product{top:6px!important;left:6px!important}
}


/* v2.2.49 — minimal cart controls, matching reference */
.ers-product{
  position:relative!important;
  display:flex!important;
  align-items:center!important;
  min-height:88px!important;
  padding:12px 76px 12px 44px!important;
  box-sizing:border-box!important;
}
.ers-product-thumb{
  order:3!important;
  flex:0 0 58px!important;
  width:58px!important;
  height:58px!important;
  margin:0 0 0 auto!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
}
.ers-product-thumb img{
  width:58px!important;
  height:58px!important;
  object-fit:contain!important;
}
.ers-product-info{
  order:2!important;
  flex:1 1 auto!important;
  min-width:0!important;
  text-align:right!important;
}
.ers-remove-product{
  position:absolute!important;
  top:9px!important;
  left:9px!important;
  right:auto!important;
  width:28px!important;
  height:28px!important;
  min-width:28px!important;
  padding:0!important;
  margin:0!important;
  border:0!important;
  border-radius:50%!important;
  background:#f3f4f6!important;
  color:#6b7280!important;
  font:500 15px/28px Arial,sans-serif!important;
  text-align:center!important;
  box-shadow:none!important;
  cursor:pointer!important;
  z-index:20!important;
}
.ers-remove-product:hover{
  background:#fee2e2!important;
  color:#dc2626!important;
}
.ers-qty{
  display:flex!important;
  align-items:center!important;
  gap:4px!important;
  margin-top:7px!important;
  width:max-content!important;
}
.ers-qty .ers-qty-btn{
  width:32px!important;
  height:32px!important;
  min-width:32px!important;
  padding:0!important;
  border-radius:8px!important;
  font:700 18px/32px Arial,sans-serif!important;
  text-align:center!important;
  box-shadow:none!important;
}
.ers-qty .ers-qty-plus{
  background:#16a34a!important;
  color:#fff!important;
  border:1px solid #16a34a!important;
}
.ers-qty .ers-qty-minus{
  background:#fee2e2!important;
  color:#dc2626!important;
  border:1px solid #fecaca!important;
}
.ers-qty .ers-qty-input{
  width:34px!important;
  height:32px!important;
  min-width:34px!important;
  padding:0!important;
  border:1px solid #e5e7eb!important;
  border-radius:8px!important;
  text-align:center!important;
  font-size:13px!important;
  box-shadow:none!important;
}
.ers-product-line-total{
  order:1!important;
  flex:0 0 auto!important;
  margin:0 10px 0 0!important;
  font-size:12px!important;
  white-space:nowrap!important;
}
@media(max-width:600px){
  .ers-product{
    min-height:82px!important;
    padding:10px 66px 10px 38px!important;
  }
  .ers-product-thumb,
  .ers-product-thumb img{
    width:52px!important;
    height:52px!important;
  }
  .ers-remove-product{
    top:7px!important;
    left:7px!important;
    width:26px!important;
    height:26px!important;
    min-width:26px!important;
    font-size:14px!important;
    line-height:26px!important;
  }
  .ers-qty .ers-qty-btn{
    width:30px!important;
    height:30px!important;
    min-width:30px!important;
    line-height:30px!important;
  }
  .ers-qty .ers-qty-input{
    width:32px!important;
    height:30px!important;
    min-width:32px!important;
  }
}


/* v2.2.50 — only shrink + / − buttons */
.ers-qty .ers-qty-btn{
  width:28px!important;
  height:28px!important;
  min-width:28px!important;
  padding:0!important;
  border-radius:7px!important;
  font-size:16px!important;
  line-height:28px!important;
}
.ers-qty .ers-qty-input{
  width:30px!important;
  height:28px!important;
  min-width:30px!important;
  padding:0!important;
  border-radius:7px!important;
  font-size:12px!important;
}
@media(max-width:600px){
  .ers-qty .ers-qty-btn{
    width:28px!important;
    height:28px!important;
    min-width:28px!important;
    line-height:28px!important;
    font-size:16px!important;
  }
  .ers-qty .ers-qty-input{
    width:30px!important;
    height:28px!important;
    min-width:30px!important;
  }
}


/* v2.2.52 — final product-card layout based on user's reference */
.ers-products .ers-product{
  position:relative!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 54px!important;
  grid-template-rows:auto auto!important;
  grid-template-areas:
    "info thumb"
    "total thumb"!important;
  column-gap:9px!important;
  row-gap:3px!important;
  align-items:center!important;
  min-height:82px!important;
  padding:9px 10px 9px 36px!important;
  direction:rtl!important;
}
.ers-products .ers-product-thumb{
  grid-area:thumb!important;
  order:initial!important;
  width:50px!important;
  height:50px!important;
  margin:0!important;
  justify-self:end!important;
  align-self:center!important;
  border-radius:10px!important;
  overflow:hidden!important;
}
.ers-products .ers-product-thumb img{
  width:50px!important;
  height:50px!important;
  object-fit:contain!important;
}
.ers-products .ers-product-info{
  grid-area:info!important;
  order:initial!important;
  width:auto!important;
  min-width:0!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  gap:2px!important;
  text-align:center!important;
}
.ers-products .ers-product-info b{
  width:100%!important;
  font-size:13px!important;
  line-height:1.45!important;
  text-align:center!important;
}
.ers-products .ers-product-info small{
  font-size:10px!important;
  line-height:1.3!important;
}
.ers-products .ers-product-options-summary{
  justify-content:center!important;
  margin:2px 0!important;
  gap:4px!important;
}
.ers-products .ers-product-line-total{
  grid-area:total!important;
  order:initial!important;
  align-self:start!important;
  justify-self:center!important;
  margin:0!important;
  font-size:12px!important;
  white-space:nowrap!important;
}
.ers-products .ers-qty{
  margin:3px auto 0!important;
  gap:3px!important;
  justify-content:center!important;
}
.ers-products .ers-qty .ers-qty-btn{
  width:27px!important;
  height:27px!important;
  min-width:27px!important;
  padding:0!important;
  border-radius:7px!important;
  font-size:15px!important;
  line-height:27px!important;
}
.ers-products .ers-qty .ers-qty-input{
  width:30px!important;
  height:27px!important;
  min-width:30px!important;
  padding:0!important;
  border-radius:7px!important;
  font-size:12px!important;
}
.ers-products .ers-remove-product{
  position:absolute!important;
  top:8px!important;
  left:8px!important;
  right:auto!important;
  width:24px!important;
  height:24px!important;
  min-width:24px!important;
  padding:0!important;
  border:0!important;
  border-radius:50%!important;
  background:#f3f4f6!important;
  color:#6b7280!important;
  font:400 13px/24px Arial,sans-serif!important;
  text-align:center!important;
  z-index:10!important;
}
.ers-products .ers-remove-product:hover{
  background:#fee2e2!important;
  color:#dc2626!important;
}
@media(max-width:600px){
  .ers-products .ers-product{
    grid-template-columns:minmax(0,1fr) 50px!important;
    min-height:78px!important;
    padding:8px 8px 8px 34px!important;
    column-gap:8px!important;
  }
  .ers-products .ers-product-thumb,
  .ers-products .ers-product-thumb img{
    width:46px!important;
    height:46px!important;
  }
  .ers-products .ers-product-info b{font-size:12.5px!important}
  .ers-products .ers-product-info small{font-size:9.5px!important}
  .ers-products .ers-qty .ers-qty-btn{
    width:26px!important;height:26px!important;min-width:26px!important;line-height:26px!important;
  }
  .ers-products .ers-qty .ers-qty-input{
    width:29px!important;height:26px!important;min-width:29px!important;
  }
  .ers-products .ers-remove-product{
    top:7px!important;left:7px!important;width:23px!important;height:23px!important;
    min-width:23px!important;line-height:23px!important;font-size:12px!important;
  }
}


/* v2.2.55 — exact reference layout: image right, x top-left, compact qty */
.ers-products .ers-product{
  position:relative!important;
  display:block!important;
  min-height:82px!important;
  height:82px!important;
  padding:8px 66px 8px 36px!important;
  box-sizing:border-box!important;
}
.ers-products .ers-product-thumb{
  position:absolute!important;
  right:9px!important;
  left:auto!important;
  top:50%!important;
  transform:translateY(-50%)!important;
  width:48px!important;
  height:48px!important;
  margin:0!important;
  z-index:2!important;
}
.ers-products .ers-product-thumb img{
  width:48px!important;
  height:48px!important;
  object-fit:contain!important;
}
.ers-products .ers-product-info{
  position:relative!important;
  display:flex!important;
  width:100%!important;
  height:auto!important;
  min-width:0!important;
  margin:0!important;
  padding:0!important;
  align-items:center!important;
  text-align:center!important;
  flex-direction:column!important;
  gap:1px!important;
}
.ers-products .ers-product-info b{
  display:block!important;
  width:100%!important;
  margin:0!important;
  font-size:12.5px!important;
  line-height:1.35!important;
  text-align:center!important;
}
.ers-products .ers-product-info small{
  font-size:9px!important;
  line-height:1.2!important;
  margin:0!important;
}
.ers-products .ers-product-options-summary{
  margin:1px auto 0!important;
  gap:3px!important;
  justify-content:center!important;
}
.ers-products .ers-product-line-total{
  position:absolute!important;
  right:66px!important;
  left:auto!important;
  bottom:7px!important;
  margin:0!important;
  font-size:11px!important;
  line-height:1.2!important;
  white-space:nowrap!important;
}
.ers-products .ers-qty{
  position:absolute!important;
  right:50%!important;
  transform:translateX(50%)!important;
  bottom:6px!important;
  margin:0!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:3px!important;
  z-index:3!important;
}
.ers-products .ers-qty .ers-qty-btn{
  width:27px!important;
  height:27px!important;
  min-width:27px!important;
  max-width:27px!important;
  padding:0!important;
  border-radius:7px!important;
  font-size:15px!important;
  line-height:27px!important;
}
.ers-products .ers-qty .ers-qty-input{
  width:30px!important;
  height:27px!important;
  min-width:30px!important;
  max-width:30px!important;
  padding:0!important;
  margin:0!important;
  border-radius:7px!important;
  font-size:12px!important;
  text-align:center!important;
}
.ers-products .ers-remove-product{
  position:absolute!important;
  top:8px!important;
  left:8px!important;
  right:auto!important;
  width:24px!important;
  height:24px!important;
  min-width:24px!important;
  max-width:24px!important;
  padding:0!important;
  margin:0!important;
  border:0!important;
  border-radius:6px!important;
  background:#f3f4f6!important;
  color:#6b7280!important;
  font:400 12px/24px Arial,sans-serif!important;
  text-align:center!important;
  box-shadow:none!important;
  z-index:10!important;
}
.ers-products .ers-remove-product:hover{
  background:#fee2e2!important;
  color:#dc2626!important;
}
@media(max-width:600px){
  .ers-products .ers-product{
    min-height:78px!important;
    height:78px!important;
    padding:7px 60px 7px 34px!important;
  }
  .ers-products .ers-product-thumb{
    right:8px!important;
    width:45px!important;
    height:45px!important;
  }
  .ers-products .ers-product-thumb img{
    width:45px!important;
    height:45px!important;
  }
  .ers-products .ers-product-info b{font-size:12px!important}
  .ers-products .ers-product-info small{font-size:8.5px!important}
  .ers-products .ers-product-line-total{
    right:60px!important;
    bottom:6px!important;
    font-size:10.5px!important;
  }
  .ers-products .ers-qty{
    bottom:5px!important;
  }
  .ers-products .ers-qty .ers-qty-btn{
    width:26px!important;height:26px!important;min-width:26px!important;max-width:26px!important;
    line-height:26px!important;font-size:14px!important;
  }
  .ers-products .ers-qty .ers-qty-input{
    width:29px!important;height:26px!important;min-width:29px!important;max-width:29px!important;
  }
  .ers-products .ers-remove-product{
    top:7px!important;left:7px!important;
    width:23px!important;height:23px!important;min-width:23px!important;max-width:23px!important;
    line-height:23px!important;font-size:11px!important;
  }
}


/* v2.2.56 — fix quantity position: keep buttons below product info */
.ers-products .ers-product-info{
  position:static!important;
}
.ers-products .ers-qty{
  position:absolute!important;
  right:auto!important;
  left:50%!important;
  transform:translateX(-50%)!important;
  bottom:7px!important;
  margin:0!important;
  z-index:4!important;
}
@media(max-width:600px){
  .ers-products .ers-qty{
    left:50%!important;
    right:auto!important;
    bottom:5px!important;
    transform:translateX(-50%)!important;
  }
}


/* v2.2.57 — product card rebuilt to match the supplied reference image.
   Keep image on the right, remove at top-left, quantity below unit price,
   and line total below the quantity. No absolute positioning for qty. */
.ers-products .ers-product{
  position:relative!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 92px!important;
  grid-template-rows:auto auto!important;
  grid-template-areas:"info thumb" "total thumb"!important;
  column-gap:14px!important;
  row-gap:8px!important;
  align-items:center!important;
  min-height:245px!important;
  height:auto!important;
  padding:22px 18px 18px 52px!important;
  box-sizing:border-box!important;
  direction:rtl!important;
  overflow:hidden!important;
}
.ers-products .ers-product-thumb{
  grid-area:thumb!important;
  position:static!important;
  transform:none!important;
  width:86px!important;
  height:86px!important;
  margin:0 auto!important;
  justify-self:center!important;
  align-self:center!important;
  border-radius:12px!important;
  overflow:hidden!important;
  background:#fafafa!important;
}
.ers-products .ers-product-thumb img{
  width:86px!important;
  height:86px!important;
  object-fit:contain!important;
}
.ers-products .ers-product-info{
  grid-area:info!important;
  position:static!important;
  width:100%!important;
  min-width:0!important;
  height:auto!important;
  margin:0!important;
  padding:0!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:7px!important;
  text-align:center!important;
}
.ers-products .ers-product-info b{
  display:block!important;
  width:100%!important;
  margin:0!important;
  font-size:16px!important;
  line-height:1.65!important;
  font-weight:800!important;
  text-align:center!important;
  overflow-wrap:anywhere!important;
}
.ers-products .ers-product-info small{
  display:block!important;
  margin:0!important;
  font-size:12px!important;
  line-height:1.5!important;
  color:#777!important;
}
.ers-products .ers-product-options-summary{
  width:100%!important;
  justify-content:center!important;
  margin:0!important;
  gap:5px!important;
}
.ers-products .ers-option-chip{
  font-size:10px!important;
  padding:3px 7px!important;
}
.ers-products .ers-stock-info{font-size:10px!important}
.ers-products .ers-qty{
  position:static!important;
  left:auto!important;
  right:auto!important;
  bottom:auto!important;
  transform:none!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:7px!important;
  margin:5px auto 0!important;
  z-index:auto!important;
}
.ers-products .ers-qty .ers-qty-btn{
  width:28px!important;
  height:28px!important;
  min-width:28px!important;
  max-width:28px!important;
  padding:0!important;
  border-radius:8px!important;
  font-size:16px!important;
  line-height:28px!important;
}
.ers-products .ers-qty .ers-qty-input{
  width:34px!important;
  height:28px!important;
  min-width:34px!important;
  max-width:34px!important;
  margin:0!important;
  padding:0!important;
  border-radius:8px!important;
  font-size:14px!important;
  text-align:center!important;
}
.ers-products .ers-product-line-total{
  grid-area:total!important;
  position:static!important;
  align-self:start!important;
  justify-self:center!important;
  margin:0!important;
  font-size:16px!important;
  line-height:1.5!important;
  white-space:nowrap!important;
  direction:rtl!important;
}
.ers-products .ers-remove-product{
  position:absolute!important;
  top:20px!important;
  left:18px!important;
  right:auto!important;
  width:28px!important;
  height:28px!important;
  min-width:28px!important;
  max-width:28px!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:10px!important;
  background:#f1f3f5!important;
  color:#344054!important;
  font:400 15px/28px Arial,sans-serif!important;
  text-align:center!important;
  z-index:10!important;
}
.ers-products .ers-remove-product:hover{background:#fee2e2!important;color:#dc2626!important}

@media(max-width:600px){
  .ers-products .ers-product{
    grid-template-columns:minmax(0,1fr) 72px!important;
    min-height:220px!important;
    padding:18px 12px 16px 42px!important;
    column-gap:8px!important;
    row-gap:6px!important;
  }
  .ers-products .ers-product-thumb,
  .ers-products .ers-product-thumb img{
    width:66px!important;
    height:66px!important;
  }
  .ers-products .ers-product-info{gap:5px!important}
  .ers-products .ers-product-info b{font-size:13px!important;line-height:1.55!important}
  .ers-products .ers-product-info small{font-size:10px!important}
  .ers-products .ers-qty{gap:5px!important;margin-top:4px!important}
  .ers-products .ers-qty .ers-qty-btn{
    width:29px!important;height:29px!important;min-width:29px!important;max-width:29px!important;
    line-height:26px!important;font-size:14px!important;
  }
  .ers-products .ers-qty .ers-qty-input{
    width:30px!important;height:26px!important;min-width:30px!important;max-width:30px!important;font-size:11px!important;
  }
  .ers-products .ers-product-line-total{font-size:13px!important}
  .ers-products .ers-remove-product{
    top:12px!important;left:12px!important;width:24px!important;height:24px!important;min-width:24px!important;max-width:24px!important;
    line-height:24px!important;font-size:13px!important;border-radius:8px!important;
  }
}

/* v2.2.59 — force product image to the RIGHT edge of the card */
.ers-products .ers-product{direction:ltr!important;}
.ers-products .ers-product-thumb{
  position:absolute!important;
  right:8px!important;
  left:auto!important;
  inset-inline-start:auto!important;
  inset-inline-end:8px!important;
  top:50%!important;
  transform:translateY(-50%)!important;
  margin:0!important;
  float:none!important;
  z-index:5!important;
}
.ers-products .ers-product-info{
  direction:rtl!important;
  text-align:center!important;
}
.ers-products .ers-remove-product{
  left:7px!important;
  right:auto!important;
  inset-inline-start:7px!important;
  inset-inline-end:auto!important;
}
.ers-products .ers-qty{
  direction:ltr!important;
}
@media(max-width:600px){
  .ers-products .ers-product-thumb{
    right:7px!important;
    left:auto!important;
    inset-inline-end:7px!important;
    inset-inline-start:auto!important;
  }
}

/* v2.2.60 — desktop only: hide the two cart/info navigation buttons.
   Mobile keeps both buttons unchanged. */
@media (min-width:801px){
  #ers-to-info,
  #ers-back-cart{
    display:none!important;
  }
}

/* v2.2.61 — desktop only: move the "مرحله بعدی" button to the LEFT side of its navigation row. */
@media (min-width:801px){
  .ers-nav #ers-to-shipping{
    margin-right:auto!important;
    margin-left:0!important;
  }
}

/* v2.2.62 — restore step-2 address fields: prevent theme/grid stretch from creating a huge blank area. */
.ers-info-panel{
  height:auto!important;
  min-height:0!important;
  align-self:start!important;
}
.ers-info-panel .ers-address-fields{
  height:auto!important;
  min-height:0!important;
  align-content:start!important;
  grid-auto-rows:max-content!important;
  align-items:start!important;
}
.ers-info-panel .ers-address-fields>div{
  height:auto!important;
  min-height:0!important;
  align-self:start!important;
}
.ers-info-panel .ers-address-fields>div.full{
  height:auto!important;
  min-height:0!important;
}
.ers-info-panel .ers-address-fields textarea{
  height:auto!important;
  min-height:62px!important;
}

/* v2.2.63 — compact step-2 address block: remove the invisible textarea height that creates a large blank gap. */
.ers-info-panel .ers-address-fields{
  row-gap:10px!important;
}
.ers-info-panel .ers-address-fields>div.full{
  padding:8px 12px!important;
}
.ers-info-panel .ers-address-fields textarea{
  height:42px!important;
  min-height:42px!important;
  max-height:42px!important;
  resize:none!important;
  overflow:hidden!important;
  line-height:1.6!important;
}
@media(max-width:600px){
  .ers-info-panel .ers-address-fields>div.full{padding:8px 11px!important}
  .ers-info-panel .ers-address-fields textarea{height:44px!important;min-height:44px!important;max-height:44px!important}
}

/* v2.2.66 — ROOT FIX: compact step-2 address fields.
   The address textarea must behave like a single compact text line, not a tall form box. */
.ers-info-panel .ers-address-fields{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
  grid-template-rows:auto auto auto!important;
  row-gap:10px!important;
  align-items:start!important;
  align-content:start!important;
  height:auto!important;
  min-height:0!important;
}
.ers-info-panel .ers-address-fields > div{
  align-self:start!important;
  height:auto!important;
  min-height:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
.ers-info-panel .ers-address-fields > div.full{
  grid-column:1 / -1!important;
  padding:0!important;
}
.ers-info-panel .ers-address-fields > div.full label{
  margin:0 0 3px!important;
  line-height:1.4!important;
}
.ers-info-panel .ers-address-fields select{
  min-height:34px!important;
  height:34px!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
.ers-info-panel .ers-address-fields textarea#ers-address{
  display:block!important;
  width:100%!important;
  height:28px!important;
  min-height:28px!important;
  max-height:28px!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  resize:none!important;
  overflow:hidden!important;
  line-height:1.7!important;
}
.ers-info-panel .ers-address-fields > div:focus-within{
  border:0!important;
  box-shadow:none!important;
}
.ers-info-panel .ers-address-fields > div:last-child input#ers-postcode{
  height:42px!important;
  min-height:42px!important;
  padding:0 12px!important;
  border:1px solid #dfe3e8!important;
  border-radius:10px!important;
  background:#fff!important;
  box-shadow:none!important;
}
@media(max-width:800px){
  .ers-info-panel .ers-address-fields{
    grid-template-columns:1fr!important;
    grid-template-rows:auto!important;
  }
  .ers-info-panel .ers-address-fields > div.full{grid-column:auto!important}
}


/* v2.2.66 — structural fix: address is a single-line input, never a textarea/grid row. */
.ers-info-panel .ers-address-fields{display:grid!important;grid-template-columns:1fr 1fr!important;gap:10px!important;align-items:start!important;align-content:start!important;height:auto!important;min-height:0!important;}
.ers-info-panel .ers-address-fields .full{grid-column:1 / -1!important;height:auto!important;min-height:0!important;margin:0!important;padding:0!important;}
.ers-info-panel .ers-address-fields #ers-address{display:block!important;width:100%!important;height:42px!important;min-height:42px!important;max-height:42px!important;box-sizing:border-box!important;padding:0 12px!important;border:1px solid #dfe3e8!important;border-radius:10px!important;background:#fff!important;line-height:42px!important;}
.ers-info-panel .ers-address-fields #ers-postcode{height:42px!important;min-height:42px!important;box-sizing:border-box!important;}
@media(max-width:800px){.ers-info-panel .ers-address-fields{grid-template-columns:1fr!important}.ers-info-panel .ers-address-fields .full{grid-column:auto!important}}


/* v2.2.66 — address form final layout: only address fields are changed; recipient name fields remain untouched. */
.ers-info-panel .ers-address-fields{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
  gap:14px 12px!important;
  align-items:start!important;
  align-content:start!important;
  height:auto!important;
  min-height:0!important;
  margin-top:14px!important;
}
.ers-info-panel .ers-address-fields > div{
  display:flex!important;
  flex-direction:column!important;
  gap:6px!important;
  width:100%!important;
  height:auto!important;
  min-height:0!important;
  padding:0!important;
  margin:0!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
.ers-info-panel .ers-address-fields > div.full{
  grid-column:1 / -1!important;
}
.ers-info-panel .ers-address-fields label{
  display:block!important;
  font-weight:700!important;
  font-size:14px!important;
  line-height:1.5!important;
  margin:0!important;
  padding:0!important;
}
.ers-info-panel .ers-address-fields select,
.ers-info-panel .ers-address-fields input#ers-postcode,
.ers-info-panel .ers-address-fields textarea#ers-address{
  width:100%!important;
  box-sizing:border-box!important;
  border:1px solid #dfe3e8!important;
  border-radius:10px!important;
  background:#fff!important;
  box-shadow:none!important;
  color:#1f2937!important;
  font:inherit!important;
  outline:none!important;
}
.ers-info-panel .ers-address-fields select{
  height:48px!important;
  min-height:48px!important;
  padding:0 12px!important;
  appearance:auto!important;
  background-color:#fff!important;
}
.ers-info-panel .ers-address-fields textarea#ers-address{
  height:104px!important;
  min-height:104px!important;
  max-height:160px!important;
  padding:12px!important;
  resize:vertical!important;
  line-height:1.8!important;
  overflow:auto!important;
}
.ers-info-panel .ers-address-fields input#ers-postcode{
  height:48px!important;
  min-height:48px!important;
  padding:0 12px!important;
}
.ers-info-panel .ers-address-fields select:focus,
.ers-info-panel .ers-address-fields input#ers-postcode:focus,
.ers-info-panel .ers-address-fields textarea#ers-address:focus{
  border-color:#cbd5e1!important;
  box-shadow:0 0 0 2px rgba(37,99,235,.06)!important;
}
@media(max-width:800px){
  .ers-info-panel .ers-address-fields{
    grid-template-columns:1fr!important;
    gap:12px!important;
  }
  .ers-info-panel .ers-address-fields > div.full{grid-column:auto!important}
  .ers-info-panel .ers-address-fields textarea#ers-address{height:96px!important;min-height:96px!important}
}

/* v2.2.67 — location map under address fields */
.ers-location-picker{margin-top:14px;padding-top:14px;border-top:1px solid #eceef1;direction:rtl}
.ers-location-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:9px}
.ers-location-head strong{display:block;font-size:13px;font-weight:800;color:#20242a}
.ers-location-head small{display:block;margin-top:3px;color:#8a9098;font-size:10.5px;line-height:1.7}
.ers-location-btn{border:1px solid #e8892f;background:#fff8f1;color:#d87518;border-radius:9px;padding:7px 11px;font:700 11px Vazirmatn,Tahoma;cursor:pointer;white-space:nowrap;transition:.2s}
.ers-location-btn:hover{background:#fff0df}
.ers-map{width:100%;height:245px;border:1px solid #e2e5e9;border-radius:13px;overflow:hidden;background:#eef2f5;box-shadow:0 3px 14px rgba(20,30,40,.05)}
.ers-location-status{margin-top:7px;padding:7px 10px;border-radius:8px;background:#f7f8fa;color:#777f88;font-size:10.5px;line-height:1.7;text-align:right}
.ers-location-picker .leaflet-control-attribution{font-size:8px}
@media(max-width:800px){.ers-map{height:210px}.ers-location-head{align-items:flex-start}.ers-location-head small{max-width:75%}}


/* v2.2.68 — reference-preserving desktop layout: cart summary stays on the LEFT on every checkout step.
 * Only the cart position/visibility is changed; all original step content and behavior remain intact.
 */
@media (min-width:801px){
  .ers-grid{
    grid-template-columns:390px minmax(0,1fr)!important;
    direction:ltr!important;
    align-items:start!important;
  }
  .ers-grid > .ers-summary{
    grid-column:1!important;
    grid-row:1!important;
    display:block!important;
    width:100%!important;
    max-width:390px!important;
    position:sticky!important;
    top:20px!important;
    align-self:start!important;
    direction:rtl!important;
  }
  .ers-grid > .ers-main{
    grid-column:2!important;
    grid-row:1!important;
    min-width:0!important;
    direction:rtl!important;
  }
  /* The summary is no longer a step panel on desktop, so it remains visible
     while panel 2/3/4 changes on the right. */
  .ers-grid > .ers-summary.ers-panel{display:block!important;}
}
@media (max-width:800px){
  /* Keep the reference/mobile behavior exactly as it was. */
  .ers-grid{direction:rtl!important;}
  .ers-grid > .ers-main,.ers-grid > .ers-summary{grid-column:auto!important;grid-row:auto!important;direction:rtl!important;}
}

/* پیام اختصاصی انتخاب روش پرداخت */
.ers-payment-msg{margin:12px 0 2px;padding:11px 14px;border:1px solid #f2b8b5;border-radius:10px;background:#fff4f3;color:#c0392b;font-size:13px;font-weight:700;line-height:1.8;text-align:right}
.ers-payment-msg[hidden]{display:none!important}
