/**
 * Silver Home cart page — two-column RTL, product cards + invoice.
 * Brand: #301B56 + #F5B800. Layout inspired by a clean invoice sidebar.
 */

.sh-bnpl-cart {
	font-family: Vazirmatn, IRANSans, Dana, Peyda, Tahoma, sans-serif;
	color: #1a1528;
	width: min(100%, 1440px);
	max-width: none;
	width: min(1440px, calc(100vw - 24px));
	margin: 0 auto 40px;
	padding: 16px clamp(12px, 2.4vw, 32px) 40px;
}

body.woocommerce-cart .site-content,body.woocommerce-cart .content-area,body.woocommerce-cart main .container,body.woocommerce-cart .site-content>.container,body.woocommerce-cart .elementor-widget-shortcode .elementor-widget-container{width:100%!important;max-width:100%!important}body.woocommerce-cart .page-title,body.woocommerce-cart .wd-page-title,body.woocommerce-cart .page-title-default,body.woocommerce-cart .wd-checkout-steps,body.woocommerce-cart .checkout-steps{display:none!important}

.sh-bnpl-cart *,
.sh-bnpl-cart *::before,
.sh-bnpl-cart *::after {
	box-sizing: border-box;
}

.sh-bnpl-cart__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	margin-bottom: 20px;
}

.sh-bnpl-cart__title-wrap {
	display: flex;
	align-items: baseline;
	gap: 10px;
	flex-wrap: wrap;
}

.sh-bnpl-cart__title {
	margin: 0;
	font-size: clamp(1.15rem, 2vw, 1.45rem);
	font-weight: 800;
	color: #1a1528;
}

.sh-bnpl-cart__count {
	color: #6b6578;
	font-size: 0.92rem;
}

.sh-bnpl-cart__clear {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #c2410c;
	text-decoration: none;
	font-size: 0.88rem;
	min-height: 44px;
}

.sh-bnpl-cart__clear:hover {
	color: #9a3412;
}

.sh-bnpl-cart-grid {
	display: grid;
	gap: 24px;
}

.sh-bnpl-item {
	background: #fff;
	border: 1px solid #eceaf1;
	border-radius: 16px;
	box-shadow: 0 10px 30px rgba(48, 27, 86, 0.05);
	padding: 18px 18px 14px;
	margin-bottom: 16px;
}

.sh-bnpl-item__top {
	display: grid;
	grid-template-columns: 112px minmax(0, 1fr);
	gap: 16px;
	align-items: start;
}

.sh-bnpl-item__media img {
	width: 112px;
	height: 112px;
	object-fit: contain;
	border-radius: 12px;
	background: #f7f6fa;
}

.sh-bnpl-item__name {
	margin: 0 0 10px;
	font-size: 1.02rem;
	font-weight: 700;
	line-height: 1.7;
}

.sh-bnpl-item__name a {
	color: inherit;
	text-decoration: none;
}

.sh-bnpl-item__meta {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 6px;
}

.sh-bnpl-item__meta li {
	display: flex;
	align-items: center;
	gap: 8px;
	color: #5c5668;
	font-size: 0.86rem;
}

.sh-bnpl-item__meta .sh-bnpl-ico {
	color: #301b56;
	flex: 0 0 auto;
}

.sh-bnpl-item__vars {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 10px;
}

.sh-bnpl-pill {
	display: inline-flex;
	align-items: center;
	border: 1px solid #e5e2ee;
	border-radius: 999px;
	padding: 4px 10px;
	font-size: 0.78rem;
	background: #faf9fc;
}

.sh-bnpl-xsell {
	margin: 14px 0 4px;
	padding: 12px 14px;
	border-radius: 12px;
	background: #f4f8ff;
	border: 1px solid #dbe7fb;
	display: grid;
	gap: 10px;
}

.sh-bnpl-xsell.is-off {
	background: #faf9fc;
	border-color: #eceaf1;
}

.sh-bnpl-xsell__status {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0 0 4px;
	color: #15803d;
	font-weight: 700;
	font-size: 0.9rem;
}

.sh-bnpl-xsell__status.is-muted {
	color: #301b56;
}

.sh-bnpl-xsell__desc {
	margin: 0;
	color: #5c5668;
	font-size: 0.84rem;
	line-height: 1.8;
}

.sh-bnpl-xsell__price {
	display: block;
	margin-top: 6px;
	color: #1a1528;
}

.sh-bnpl-xsell__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}

.sh-bnpl-xsell__remove,
.sh-bnpl-xsell__add {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 40px;
	padding: 6px 12px;
	border-radius: 10px;
	font-family: inherit;
	cursor: pointer;
	background: #fff;
}

.sh-bnpl-xsell__remove {
	border: 1px solid #f43f5e;
	color: #e11d48;
}

.sh-bnpl-xsell__add {
	border: 1px solid #301b56;
	color: #301b56;
}

.sh-bnpl-xsell__details {
	margin-right: auto;
	display: inline-flex;
	align-items: center;
	gap: 2px;
	font-size: 0.82rem;
	color: #2563eb;
	text-decoration: none;
}

.sh-bnpl-cart-methods {
	margin: 14px 0 8px;
}
.sh-bnpl-cart-selected-method{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:14px 0 8px;padding:11px 13px;border-radius:12px;background:#f6f3fa;border:1px solid #e7e0ef}.sh-bnpl-cart-selected-method span{font-size:.78rem;color:#756d80}.sh-bnpl-cart-selected-method strong{font-size:.86rem;color:#301b56}

.sh-bnpl-cart-methods__label {
	display: block;
	font-size: 0.8rem;
	color: #6b6578;
	margin-bottom: 8px;
}

.sh-bnpl-cart-methods__list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.sh-bnpl-cart-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	border: 1px solid #e5e2ee;
	background: #fff;
	border-radius: 12px;
	padding: 8px 12px 8px 10px;
	cursor: pointer;
	font-family: inherit;
	font-size: 0.82rem;
	color: #1a1528;
	min-height: 44px;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.sh-bnpl-cart-chip img {
	width: 22px;
	height: 22px;
	object-fit: contain;
}

.sh-bnpl-cart-chip.is-selected {
	border-color: #f5b800;
	box-shadow: 0 0 0 2px rgba(245, 184, 0, 0.35);
	background: #fffdf5;
	font-weight: 700;
}

.sh-bnpl-cart-methods.is-loading,
.sh-bnpl-xsell.is-loading {
	opacity: 0.6;
	pointer-events: none;
}

.sh-bnpl-item__plan {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
	margin: 12px 0;
	padding: 10px 12px;
	border-radius: 12px;
	background: #faf9fc;
	font-size: 0.82rem;
}

.sh-bnpl-item__plan span {
	display: block;
	color: #6b6578;
	margin-bottom: 2px;
}

.sh-bnpl-item__plan strong {
	color: #1a1528;
}

.sh-bnpl-item__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	padding-top: 12px;
	border-top: 1px solid #f1eef6;
	margin-top: 8px;
}

.sh-bnpl-item__price {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
}

.sh-bnpl-item__price strong {
	font-size: 1.05rem;
}

.sh-bnpl-off {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	padding: 2px 6px;
	border-radius: 6px;
	background: #e11d48;
	color: #fff;
	font-size: 0.75rem;
	font-weight: 700;
}

.sh-bnpl-item__price del,
.sh-bnpl-offer__was del,
.sh-bnpl-added__prices del {
	color: #9ca3af;
	font-size: 0.85rem;
}

.sh-bnpl-item__qtybox {
	display: flex;
	align-items: center;
	gap: 8px;
}

.sh-bnpl-item__qtybox .quantity {
	display: inline-flex;
	align-items: center;
	border: 1px solid #e5e2ee;
	border-radius: 12px;
	background: #fff;
	overflow: hidden;
}

.sh-bnpl-item__qtybox .qty {
	width: 48px;
	min-height: 44px;
	border: 0;
	text-align: center;
	font-family: inherit;
	background: transparent;
}

.sh-bnpl-item__remove {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	border: 1px solid #eceaf1;
	color: #6b6578;
	text-decoration: none;
}

.sh-bnpl-item__remove:hover {
	color: #e11d48;
	border-color: #fecdd3;
}

.sh-bnpl-cart__toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 8px;
}

.sh-bnpl-cart__toolbar .coupon {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.sh-bnpl-cart__toolbar .coupon .input-text {
	min-height: 44px;
	border: 1px solid #e5e2ee;
	border-radius: 12px;
	padding: 0 12px;
	font-family: inherit;
}

.sh-bnpl-invoice__card {
	background: #fff;
	border: 1px solid #eceaf1;
	border-radius: 16px;
	box-shadow: 0 10px 30px rgba(48, 27, 86, 0.05);
	padding: 20px 18px;
	position: sticky;
	top: 16px;
}

.sh-bnpl-invoice__card h2 {
	margin: 0 0 14px;
	font-size: 1.1rem;
}

.sh-bnpl-invoice__card ul {
	list-style: none;
	margin: 0 0 16px;
	padding: 0;
}

.sh-bnpl-invoice__card li {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 0;
	border-bottom: 1px solid #f3f0f8;
	font-size: 0.9rem;
}

.sh-bnpl-invoice__card li.is-discount strong {
	color: #e11d48;
}

.sh-bnpl-invoice__card li.is-total {
	border-bottom: 0;
	font-size: 1.05rem;
	font-weight: 800;
	padding-top: 14px;
}

.sh-bnpl-invoice__note {
	font-size: 0.8rem;
	color: #6b6578;
	line-height: 1.8;
	margin: 0 0 14px;
}

.sh-bnpl-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 48px;
	padding: 10px 18px;
	border-radius: 12px;
	font-family: inherit;
	font-weight: 700;
	font-size: 0.95rem;
	text-decoration: none;
	cursor: pointer;
	border: 0;
	transition: filter 0.15s ease, background 0.15s ease;
}

.sh-bnpl-btn--primary {
	background:linear-gradient(135deg,#301b56,#4b287d)!important;
	color:#fff!important;
	border:0!important;
	border-radius:14px!important;
}

.sh-bnpl-btn--primary:hover,
.sh-bnpl-btn--primary:focus {
	filter: brightness(1.08);
	color: #fff;
}

.sh-bnpl-btn--outline {
	background:#fff!important;
	color:#301b56!important;
	border:1px solid #d9d0e7!important;
	border-radius:14px!important;
}

.sh-bnpl-btn--ghost {
	background:#f6f3fa!important;
	color:#301b56!important;
	border:1px solid #e5e2ee!important;
	border-radius:14px!important;
}

.sh-bnpl-btn--block {
	width: 100%;
}

.sh-bnpl-cart-empty {
	text-align: center;
	padding: 64px 20px;
	background: #fff;
	border-radius: 16px;
	border: 1px solid #eceaf1;
}

.sh-bnpl-cart-empty .sh-bnpl-ico {
	color: #301b56;
	margin-bottom: 12px;
}

.sh-bnpl-cart-empty .sh-bnpl-ico svg {
	width: 40px;
	height: 40px;
}

.sh-bnpl-ico svg {
	display: block;
}

.sh-bnpl-ico.is-lg svg {
	width: 36px;
	height: 36px;
}

@media (min-width: 960px) {
	.sh-bnpl-cart-grid {
		grid-template-columns: minmax(0, 1fr) minmax(320px, 370px);
		align-items: start;
	}
}

@media (max-width: 720px) {
	.sh-bnpl-cart{width:100%;max-width:100%;padding:10px 10px 104px}.sh-bnpl-cart__head{align-items:flex-start}.sh-bnpl-cart__clear{font-size:.78rem}.sh-bnpl-item{padding:13px 11px;border-radius:14px;margin-bottom:10px}.sh-bnpl-cart-grid{gap:12px}
	.sh-bnpl-item__top {
		grid-template-columns: 80px minmax(0, 1fr);
	}

	.sh-bnpl-item__media img {
		width: 80px;
		height: 80px;
	}

	.sh-bnpl-item__plan {
		grid-template-columns: 1fr;
	}

	.sh-bnpl-invoice__card {
		position: static;
	}
	.sh-bnpl-invoice__card .checkout-button{position:fixed;z-index:9998;right:10px;left:10px;bottom:max(10px,env(safe-area-inset-bottom));width:auto;box-shadow:0 12px 34px rgba(48,27,86,.32);min-height:56px}.sh-bnpl-cart__toolbar,.sh-bnpl-cart__toolbar .coupon{align-items:stretch}.sh-bnpl-cart__toolbar .coupon{display:grid;grid-template-columns:1fr auto;width:100%}.sh-bnpl-cart__toolbar .coupon label{grid-column:1/-1}.sh-bnpl-cart__toolbar .coupon .input-text{width:100%;min-width:0}.sh-bnpl-cart__toolbar>[name="update_cart"]{width:100%}.sh-bnpl-cart-methods__list{display:grid;grid-template-columns:1fr 1fr}.sh-bnpl-cart-chip{justify-content:center;padding:8px}
}

@media(min-width:721px) and (max-width:959px){.sh-bnpl-cart-grid{grid-template-columns:minmax(0,1.4fr) minmax(280px,.7fr);gap:16px}.sh-bnpl-item__top{grid-template-columns:90px minmax(0,1fr)}.sh-bnpl-item__media img{width:90px;height:90px}.sh-bnpl-item__plan{grid-template-columns:1fr}.sh-bnpl-invoice__card{top:12px}}

@media (prefers-reduced-motion: reduce) {
	.sh-bnpl-cart * {
		transition: none !important;
	}
}
