/**
 * Product-added modal (RTL).
 */

.sh-bnpl-added[hidden] {
	display: none !important;
}

.sh-bnpl-added {
	position: fixed;
	inset: 0;
	z-index: 100010;
	font-family: Vazirmatn, IRANSans, Dana, Peyda, Tahoma, sans-serif;
}

.sh-bnpl-added__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(20, 16, 32, 0.45);
	backdrop-filter: blur(2px);
}

.sh-bnpl-added__dialog {
	position: relative;
	z-index: 1;
	width: calc(100% - 28px);
	max-width: 480px;
	margin: 10vh auto;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 24px 60px rgba(48, 27, 86, 0.22);
	padding: 18px 18px 20px;
	max-height: 84vh;
	overflow: auto;
}

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

.sh-bnpl-added__ok {
	display: flex;
	align-items: center;
	gap: 8px;
	color: #15803d;
}

.sh-bnpl-added__ok h2 {
	margin: 0;
	font-size: 1rem;
	color: #1a1528;
	font-weight: 800;
}

.sh-bnpl-added__ok .sh-bnpl-ico {
	color: #16a34a;
}

.sh-bnpl-added__close {
	width: 40px;
	height: 40px;
	min-width:40px!important;
	min-height:40px!important;
	padding:0!important;
	border: 0;
	border-radius: 50%;
	background:#f4f1f8!important;
	color:#301b56!important;
	border:1px solid #e6dfef!important;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.sh-bnpl-added__close:hover,.sh-bnpl-added__close:focus{background:#ece5f4!important;color:#301b56!important;outline:2px solid rgba(48,27,86,.18)!important}.sh-bnpl-added button,.sh-bnpl-added a{border-radius:14px!important}.sh-bnpl-added__actions .sh-bnpl-btn--outline{background:#fff!important;color:#301b56!important;border:1px solid #d9d0e7!important}.sh-bnpl-added__actions .sh-bnpl-btn--primary{background:linear-gradient(135deg,#301b56,#4b287d)!important;color:#fff!important;border:0!important}

.sh-bnpl-added__product {
	display: grid;
	grid-template-columns: 72px minmax(0, 1fr);
	gap: 12px;
	align-items: start;
	margin-bottom: 14px;
}

.sh-bnpl-added__thumb img {
	width: 72px;
	height: 72px;
	object-fit: contain;
	border-radius: 10px;
	background: #f7f6fa;
}

.sh-bnpl-added__name {
	margin: 0 0 8px;
	font-size: 0.92rem;
	font-weight: 700;
	line-height: 1.7;
	color: #1a1528;
}

.sh-bnpl-added__method{margin:8px 0 0;font-size:.8rem;color:#716a7d}.sh-bnpl-added__method strong{color:#301b56}.sh-bnpl-added__actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.sh-bnpl-added__actions .sh-bnpl-btn{width:100%}

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

.sh-bnpl-added__xsell {
	margin: 0 0 16px;
	padding: 12px 14px;
	border-radius: 12px;
	background: #f6f8fb;
	border: 1px solid #e5e9f0;
}

.sh-bnpl-added__xsell-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	flex-wrap: wrap;
}

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

.sh-bnpl-added .sh-bnpl-xsell__remove {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 40px;
	padding: 6px 10px;
	border-radius: 10px;
	border: 1px solid #f43f5e;
	color: #e11d48;
	background: #fff;
	font-family: inherit;
	cursor: pointer;
}

.sh-bnpl-added__xsell-desc {
	margin: 8px 0 0;
	color: #5c5668;
	font-size: 0.82rem;
	line-height: 1.8;
}

.sh-bnpl-added .sh-bnpl-btn--primary {
	background: #301b56;
	color: #fff;
	min-height: 48px;
	border-radius: 12px;
	font-weight: 700;
}

body.sh-bnpl-added-open {
	overflow: hidden;
}

@media (max-width: 480px) {
	.sh-bnpl-added__dialog {
		margin: 8vh 10px 16px;
		width: auto;
	}
	.sh-bnpl-added__actions{grid-template-columns:1fr}.sh-bnpl-added__product{grid-template-columns:64px minmax(0,1fr)}.sh-bnpl-added__thumb img{width:64px;height:64px}
}

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