/* فروش اقساطی — فروشندهٔ جدا (pishro-credit-sale) */
:root { --pcs-blue: #1159FC; --pcs-blue-d: #0b46cc; --pcs-blue-bg: #eef3ff; --pcs-blue-line: #cddafe; --pcs-ink: #1a202c; --pcs-muted: #6b7280; --pcs-line: #e8ecf0; }
.pcs-sline, .pcs-alt, .pcs-sellers, .pcs-cbadge, .pcs-cprice, .pcs-dseller, .pcs-seller-card, .pcs-pnote, .pcs-modal, .pcs-sticky-alt, .pcs-upsell, .pcs-paybox { font-family: inherit; direction: rtl; box-sizing: border-box; }
.pcs-ico { width: 14px; height: 14px; flex: 0 0 14px; vertical-align: middle; }
.pcs-chip { display: inline-flex; align-items: center; font-size: 11.5px; font-weight: 800; border-radius: 6px; padding: 0 7px; line-height: 21px; background: var(--pcs-blue-bg); color: var(--pcs-blue); white-space: nowrap; }
.pcs-chip--cash { background: #fff4e0; color: #8a5a06; }

/* نشان فروشنده */
.pcs-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--pcs-mc, #1159FC); color: #fff; display: inline-grid; place-items: center; flex: 0 0 34px; font-size: 17px; font-weight: 900; line-height: 1; box-shadow: 0 2px 6px rgba(0, 0, 0, .14); }
/* شکل جدای هر فروشنده */
.pcs-mark--s0 { border-radius: 10px; }
.pcs-mark--s1 { border-radius: 50%; }
.pcs-mark--s2 { border-radius: 4px 14px 4px 14px; }
.pcs-mark--s3 { border-radius: 14px 14px 14px 3px; }
.pcs-mark--s4 { border-radius: 0; clip-path: polygon(25% 3%, 75% 3%, 100% 50%, 75% 97%, 25% 97%, 0 50%); box-shadow: none; }
.pcs-mark--s5 { border-radius: 10px; box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .45), 0 2px 6px rgba(0, 0, 0, .14); }
.pcs-mark svg { width: 20px; height: 20px; }
.pcs-mark--img, .pcs-mark--cash { background: #fff; border: 1px solid var(--pcs-line); box-shadow: none; padding: 3px; overflow: hidden; }
.pcs-mark--img img { width: 100%; height: 100%; object-fit: contain; border-radius: 7px; }
.pcs-mark--cash { padding: 4px; }
.pcs-mark--cash img { width: 100%; height: 100%; object-fit: contain; object-position: center; }

/* PDP: خط فروشنده بالای قیمت */
.pcs-sline { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12.5px; color: var(--pcs-muted); margin: 0 0 10px; }
.pcs-sline__l { display: flex; align-items: center; gap: 6px; }
.pcs-sline b { color: var(--pcs-ink); font-weight: 800; }
.pcs-sline a { color: var(--pcs-blue); font-weight: 800; text-decoration: none; font-size: 12px; }

/* PDP: کادر فروشندهٔ اقساطی */
.pcs-alt { margin-top: 14px; border: 1px solid var(--pcs-blue-line); border-radius: 14px; background: linear-gradient(180deg, #f5f8ff, #fff 70%); padding: 12px; width: 100%; }
.pcs-alt[hidden] { display: none !important; }
.pcs-alt__t { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--pcs-muted); font-weight: 700; margin-bottom: 10px; }
.pcs-alt__t a { color: var(--pcs-blue); text-decoration: none; font-weight: 800; }
.pcs-alt__row { display: flex; align-items: center; gap: 10px; }
.pcs-alt__who { flex: 1; min-width: 0; }
.pcs-alt__name { display: flex; align-items: center; gap: 6px; font-weight: 900; color: var(--pcs-ink); font-size: 14.5px; }
.pcs-alt__sub { font-size: 11.5px; color: var(--pcs-muted); margin-top: 1px; }
.pcs-alt__price { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; margin: 12px 0 10px; padding-top: 10px; border-top: 1px dashed var(--pcs-blue-line); }
.pcs-alt__price .k { font-size: 12px; color: var(--pcs-muted); white-space: nowrap; }
.pcs-alt__price .v { font-size: 17px; font-weight: 900; color: var(--pcs-ink); font-variant-numeric: tabular-nums; }
.pcs-alt__price .v small { font-size: 12px; font-weight: 600; color: var(--pcs-muted); margin-inline-start: 3px; }
.pcs-btn { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; border: 1.5px solid var(--pcs-blue); background: #fff; color: var(--pcs-blue); border-radius: 10px; font: inherit; font-weight: 800; font-size: 14px; padding: 10px 12px; cursor: pointer; }
.pcs-btn:hover { background: var(--pcs-blue-bg); }
.pcs-btn:focus-visible, .pcs-srow__add:focus-visible, .pcs-modal button:focus-visible, .pcs-sticky-alt:focus-visible { outline: 3px solid rgba(17, 89, 252, .35); outline-offset: 2px; }
.pcs-alt__foot { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 9px; font-size: 11.5px; color: var(--pcs-muted); }
.pcs-alt__foot span { display: inline-flex; align-items: center; gap: 3px; }
.pcs-alt__foot .pcs-ico { width: 12px; height: 12px; flex-basis: 12px; color: #1D9E75; }
.pcs-alt__note { margin: 8px 0 0; font-size: 12px; color: var(--pcs-muted); }
.pcs-alt__link { display: inline-block; margin-top: 6px; color: var(--pcs-blue); font-size: 12.5px; font-weight: 700; text-decoration: none; }

/* PDP: فروشندگان این کالا */
.pcs-sellers { background: #fff; border: 1px solid var(--pcs-line); border-radius: 16px; padding: 18px 20px; margin: 0 0 20px; container-type: inline-size; container-name: pcs-sellers; }
.pcs-sellers h3 { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 900; margin: 0 0 6px; color: var(--pcs-ink); }
.pcs-sellers h3 .pcs-ico { width: 18px; height: 18px; flex-basis: 18px; }
.pcs-sellers h3 small { font-size: 12px; color: var(--pcs-muted); font-weight: 600; }
.pcs-grp { background: #f7f8fa; border-radius: 14px; padding: 10px; margin-top: 10px; }
.pcs-grp__t { font-size: 12.5px; font-weight: 800; color: var(--pcs-muted); margin: 2px 6px 8px; display: flex; align-items: center; gap: 6px; }
.pcs-srow { background: #fff; border: 1px solid var(--pcs-line); border-radius: 12px; padding: 12px 16px; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) auto auto; gap: 16px; align-items: center; }
.pcs-srow__who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pcs-srow__who b { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--pcs-ink); flex-wrap: wrap; }
.pcs-srow small { display: block; font-size: 11.5px; color: var(--pcs-muted); font-weight: 400; }
.pcs-srow__c { font-size: 13px; color: var(--pcs-ink); display: flex; align-items: center; gap: 6px; min-width: 0; }
.pcs-srow__c .pcs-ico { width: 18px; height: 18px; flex-basis: 18px; color: var(--pcs-muted); }
.pcs-srow__pr { font-weight: 900; font-size: 17px; white-space: nowrap; color: var(--pcs-ink); font-variant-numeric: tabular-nums; }
.pcs-srow__pr small { display: inline; font-size: 12px; font-weight: 600; }
.pcs-srow__add { border: 0; border-radius: 10px; padding: 10px 18px; font: inherit; font-weight: 800; font-size: 13.5px; color: #fff; background: #e53e3e; white-space: nowrap; cursor: pointer; }
.pcs-srow__add.is-credit { background: var(--pcs-blue); }
.pcs-sellers.is-empty .pcs-srow__pr { visibility: hidden; }
/* چیدمان فشرده بر اساس عرض خود بخش (تبلت، ستون باریک)، نه فقط عرض صفحه */
@container pcs-sellers (max-width: 760px) {
	.pcs-srow { grid-template-columns: minmax(0, 1fr) auto; gap: 10px 12px; padding: 12px 14px; }
	.pcs-srow__who { grid-column: 1 / -1; }
	.pcs-srow__c { font-size: 12.5px; }
	.pcs-srow__c small { display: none; }
	.pcs-srow__pr { font-size: 16px; }
}
@container pcs-sellers (max-width: 480px) {
	.pcs-srow__pr { grid-column: 1 / -1; }
	.pcs-srow__add { grid-column: 1 / -1; width: 100%; padding: 11px; }
}
@media (max-width: 760px) {
	.pcs-sellers { padding: 14px 12px; }
	.pcs-srow { grid-template-columns: 1fr auto; gap: 10px 8px; padding: 12px; }
	.pcs-srow__who { grid-column: 1 / -1; }
	.pcs-srow__c { font-size: 12px; }
	.pcs-srow__c small { display: none; }
	.pcs-srow__pr { grid-column: 1 / -1; font-size: 16px; }
	.pcs-srow__add { grid-column: 1 / -1; width: 100%; padding: 11px; }
}

/* PDP: نوار چسبان موبایل */
.pcs-sticky-alt { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: var(--pcs-blue-bg); color: var(--pcs-blue); font: inherit; font-size: 12px; font-weight: 800; padding: 7px 12px; border-radius: 10px; margin: 0 0 8px; width: 100%; border: 0; cursor: pointer; order: -1; flex: 0 0 100%; }
.pcs-sticky-alt[hidden] { display: none !important; }
.pcs-sticky-alt span { display: inline-flex; align-items: center; gap: 5px; }
.pishro-pdp-sticky.pcs-has-alt { flex-wrap: wrap; }

/* پنجرهٔ سبد مختلط */
.pcs-overlay { position: fixed; inset: 0; background: rgba(17, 24, 39, .45); z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.pcs-modal { background: #fff; border-radius: 20px; width: min(440px, 100%); padding: 22px 22px 18px; box-shadow: 0 20px 50px rgba(0, 0, 0, .25); color: var(--pcs-ink); max-height: 90vh; overflow: auto; }
.pcs-modal h4 { margin: 0 0 6px; font-size: 16.5px; font-weight: 900; }
.pcs-modal p { margin: 0 0 14px; font-size: 13.5px; color: #4a5568; line-height: 1.9; }
.pcs-opt { display: flex; align-items: center; gap: 10px; border: 1.5px solid var(--pcs-line); border-radius: 14px; padding: 11px 12px; margin-bottom: 10px; cursor: pointer; }
.pcs-opt input { position: absolute; opacity: 0; pointer-events: none; }
.pcs-opt:has(input:checked) { border-color: var(--pcs-blue); background: #f5f8ff; }
.pcs-opt:has(input:focus-visible) { outline: 3px solid rgba(17, 89, 252, .35); outline-offset: 2px; }
.pcs-opt__w { flex: 1; min-width: 0; }
.pcs-opt__w b { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.pcs-opt__w small { font-size: 12px; color: var(--pcs-muted); }
.pcs-modal__btns { display: flex; gap: 8px; margin-top: 4px; }
.pcs-modal__btns button { flex: 1; border-radius: 12px; padding: 11px; font: inherit; font-weight: 800; font-size: 14px; border: 1.5px solid var(--pcs-line); background: #fff; color: #4a5568; cursor: pointer; }
.pcs-modal__btns button.is-primary { background: var(--pcs-blue); border-color: var(--pcs-blue); color: #fff; }

/* کارت محصول */
.pcs-cbadge { display: flex; align-items: center; gap: 4px; margin: 6px 0 0; font-size: 11px; font-weight: 800; color: var(--pcs-blue); background: var(--pcs-blue-bg); border-radius: 6px; padding: 2px 7px; width: max-content; max-width: 100%; position: relative; z-index: 1; }
.pcs-cbadge .pcs-ico { width: 13px; height: 13px; flex-basis: 13px; }
.pcs-cprice { margin-top: 7px; border-top: 1px dashed #dfe5ef; padding-top: 6px; font-size: 10.5px; color: var(--pcs-muted); line-height: 1.5; display: flex; justify-content: space-between; align-items: center; gap: 4px; flex-wrap: wrap; position: relative; z-index: 1; }
.pcs-cprice b { color: var(--pcs-blue); font-size: 12px; font-weight: 900; white-space: nowrap; }

/* سبد کوچک */
.pcs-dseller { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; border: 1px solid var(--pcs-blue-line); background: #f5f8ff; border-radius: 12px; padding: 9px 11px; }
.pcs-dseller .pcs-mark { width: 30px; height: 30px; flex-basis: 30px; }
.pcs-dseller__w { flex: 1; min-width: 0; }
.pcs-dseller__w b { display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--pcs-ink); }
.pcs-dseller__w small { display: block; font-size: 11.5px; color: var(--pcs-muted); }
.pcs-dseller button, .pcs-linkbtn { background: none; border: 0; padding: 0; font: inherit; font-size: 12px; font-weight: 800; color: var(--pcs-blue); cursor: pointer; white-space: nowrap; }
#pishroDrawer.pcs-credit .pishro-new-price, #pishroDrawer.pcs-credit .pishro-new-price .amount { color: var(--pcs-blue) !important; }
#pishroDrawer.pcs-credit .pishro-drawer__checkout-btn { background: var(--pcs-blue) !important; background-image: none !important; box-shadow: 0 6px 16px rgba(17, 89, 252, .25) !important; }

/* کارت فروشنده: سبد، تسویه، جزئیات سفارش */
.pcs-seller-card { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--pcs-blue-line); border-radius: 16px; padding: 12px 14px; margin: 0 0 14px; }
.pcs-seller-card.is-cash { border-color: #f3dfb5; }
.pcs-seller-card__w { flex: 1; min-width: 0; }
.pcs-seller-card .n { display: flex; align-items: center; gap: 6px; font-weight: 900; font-size: 14px; color: var(--pcs-ink); flex-wrap: wrap; }
.pcs-seller-card .s { font-size: 12px; color: var(--pcs-muted); margin-top: 2px; }
.pcs-swbtn { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--pcs-line); border-radius: 10px; padding: 7px 12px; font: inherit; font-size: 12.5px; font-weight: 800; color: #4a5568; background: #fff; white-space: nowrap; cursor: pointer; }
.pcs-swbtn:hover { border-color: var(--pcs-blue); color: var(--pcs-blue); }
@media (max-width: 600px) {
	.pcs-seller-card { flex-wrap: wrap; }
	.pcs-seller-card__w { flex: 1 1 calc(100% - 50px); }
	.pcs-swbtn { width: 100%; justify-content: center; }
}
.pcs-iseller { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--pcs-muted); margin: 2px 0; flex-wrap: wrap; }
.pcs-iseller b { color: var(--pcs-ink); white-space: nowrap; }
.pcs-paybox { display: flex; align-items: center; gap: 10px; border: 1px solid var(--pcs-blue-line); background: #f5f8ff; border-radius: 14px; padding: 12px 14px; margin: 0 0 12px; font-size: 12.5px; color: var(--pcs-muted); }
.pcs-paybox b { display: block; font-size: 13.5px; color: var(--pcs-ink); }
.pcs-paybox.is-warn { border-color: #f3c2c2; background: #fff5f5; }
.pcs-upsell { display: flex; align-items: center; gap: 10px; border: 1px dashed var(--pcs-blue-line); background: #fbfcff; border-radius: 14px; padding: 11px 14px; margin: 12px 0 0; color: var(--pcs-ink); font-size: 12.5px; }
.pcs-upsell b { display: block; font-size: 13.5px; }
.pcs-upsell .pcs-linkbtn { margin-inline-start: auto; font-size: 12.5px; }

/* سبد بلوکی و تسویه در حالت اقساطی */
.pcs-credit-cart .wc-block-cart-item__total .wc-block-components-product-price__value,
.pcs-credit-cart .wc-block-cart-item__prices .wc-block-components-product-price__value,
.pcs-credit-cart .wc-block-components-totals-footer-item-tax-value,
.pcs-credit-cart .woocommerce-checkout-review-order-table .order-total .amount { color: var(--pcs-blue) !important; }
body.pcs-credit-cart .wc-block-cart__submit-container .wc-block-components-button.contained,
body.pcs-credit-cart .wc-block-cart__submit-container .wc-block-components-button.contained:hover,
body.pcs-credit-cart .wc-block-cart .wc-block-cart__submit-button,
body.pcs-credit-cart.woocommerce-checkout #place_order,
body.pcs-credit-cart.woocommerce-checkout #place_order:hover { background: var(--pcs-blue) !important; background-image: none !important; border-color: var(--pcs-blue) !important; box-shadow: 0 6px 16px rgba(17, 89, 252, .25) !important; }
.pcs-pnote { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; color: var(--pcs-muted); background: #f7f8fa; border-radius: 10px; padding: 9px 11px; margin: 10px 0 0; line-height: 1.8; }
.pcs-pnote .pcs-ico { margin-top: 4px; }
.pcs-pnote.is-warn { background: #fff5f5; color: #9b2c2c; }
.pcs-legal { font-size: 11.5px; color: var(--pcs-muted); margin: 8px 0 0; }
.pcs-toast { position: fixed; bottom: 90px; left: 50%; transform: translateX(-50%); background: #1a202c; color: #fff; border-radius: 12px; padding: 10px 16px; font-size: 13px; z-index: 100001; max-width: calc(100% - 32px); }
