/* Sava — «added to cart» popup redesign.
   The popup (#bebanCartPopup) is printed by the site's existing beban snippet
   (inline style + jQuery). We restyle it to the reference design from our own
   plugin: every rule is anchored on the id so it outranks the snippet's
   class-only rules regardless of print order, and carries where the
   snippet uses it — plus one family rule to own the font end-to-end. */

/* — base layout: the plugin now prints the markup itself, so these rules
   (previously provided only by the theme snippet's inline <style>) live here.
   Anchored on #id.class — the root is ONE element carrying both, so a
   descendant form (#id .class) would never match. Sub-cards keep the space. — */
#bebanCartPopup.beban-cart-popup{position:fixed;top:0;right:0;bottom:0;left:0;width:100vw;height:100vh;z-index:2147483647;display:none;align-items:center;justify-content:center;padding:20px;box-sizing:border-box;background:rgba(0,0,0,.45);backdrop-filter:blur(2px);-webkit-backdrop-filter:blur(2px)}
#bebanCartPopup,#bebanCartPopup *{box-sizing:border-box}
#bebanCartPopup .beban-cart-popup-content{position:relative;width:100%;max-width:400px;padding:22px;background:#fff;border-radius:20px;box-shadow:0 20px 60px rgba(0,0,0,.15);animation:bebanPopupShow .25s ease}
@keyframes bebanPopupShow{from{opacity:0;transform:translateY(12px) scale(.97)}to{opacity:1;transform:translateY(0) scale(1)}}
#bebanCartPopup .beban-cart-popup-close{position:absolute;top:14px;left:14px;width:32px;height:32px;padding:5px;display:flex;align-items:center;justify-content:center;border:none;outline:none;background:transparent;box-shadow:none;cursor:pointer}
#bebanCartPopup .beban-cart-popup-close svg{display:block}
#bebanCartPopup .beban-cart-popup-title{margin:0 0 15px;padding:0;color:#202226;font-size:16px;font-weight:600;line-height:1.8;text-align:right}
#bebanCartPopup .beban-cart-popup-divider{height:1px;margin:15px 0;padding:0;border:0;background:rgba(32,34,38,.08)}
#bebanCartPopup .beban-cart-popup-product{display:flex;align-items:center;gap:14px}
#bebanCartPopup .beban-cart-popup-image{width:80px;height:80px;flex-shrink:0;object-fit:cover;border-radius:10px}
#bebanCartPopup .beban-cart-popup-details{flex:1;min-width:0}
#bebanCartPopup .beban-cart-popup-product-title{margin:0 0 8px;padding:0;color:#666;font-size:14px;font-weight:400;line-height:1.8}
#bebanCartPopup .beban-cart-popup-product-price{margin:0;padding:0;color:#333;font-size:14px;line-height:1.7}
#bebanCartPopup .beban-cart-popup-product-price del{color:#888;font-size:13px}
#bebanCartPopup .beban-cart-popup-product-price ins{text-decoration:none}
#bebanCartPopup .beban-cart-popup-button{display:block;width:100%;margin-top:18px;padding:11px 24px;border:none;border-radius:9px;background:#E775AE;color:#fff;font-size:14px;font-weight:500;line-height:1.6;text-align:center;text-decoration:none;transition:background .2s ease,transform .2s ease}
#bebanCartPopup .beban-cart-popup-button:hover{background:#DC659F;color:#fff;transform:translateY(-1px)}
@media(max-width:480px){#bebanCartPopup.beban-cart-popup{padding:15px}#bebanCartPopup .beban-cart-popup-content{max-width:340px;padding:18px;border-radius:18px}#bebanCartPopup .beban-cart-popup-image{width:64px;height:64px}#bebanCartPopup .beban-cart-popup-title{font-size:15px}}

#bebanCartPopup,
#bebanCartPopup * {
	font-family: var(--sava-font, "Kalameh", "IRANSansX", Tahoma, sans-serif);
}

/* — scrim: darker + more blur like the reference — */
#bebanCartPopup {
	background: rgba(16, 15, 22, 0.55);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
}

/* — card — */
#bebanCartPopup .beban-cart-popup-content {
	max-width: 416px;
	padding: 26px 22px 22px;
	border-radius: 24px;
	box-shadow: 0 26px 70px rgba(10, 8, 20, 0.35);
}

/* — close X: top-left circle — */
#bebanCartPopup .beban-cart-popup-close {
	top: 16px;
	left: 16px;
	width: 34px;
	height: 34px;
	padding: 0;
	border-radius: 50%;
	transition: background 0.18s ease;
}
#bebanCartPopup .beban-cart-popup-close path {
	stroke: #8b8f98;
	transition: stroke 0.18s ease;
}
#bebanCartPopup .beban-cart-popup-close:hover,
#bebanCartPopup .beban-cart-popup-close:focus {
	background: #f2f3f6;
}
#bebanCartPopup .beban-cart-popup-close:hover path {
	stroke: #1f2430;
}

/* — success check (injected by cart-popup.js) — */
#bebanCartPopup .sava-cartpop-check {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	margin: 2px auto 14px;
	border-radius: 50%;
	background: linear-gradient(135deg, #2ec46b, #1fae5a);
	box-shadow: 0 12px 26px -10px rgba(34, 197, 94, 0.55);
	animation: savaCartpopPop 0.32s cubic-bezier(0.175, 0.885, 0.32, 1.35);
}
#bebanCartPopup .sava-cartpop-check svg {
	width: 30px;
	height: 30px;
	display: block;
}
@keyframes savaCartpopPop {
	from { transform: scale(0.4); opacity: 0; }
	to   { transform: scale(1);   opacity: 1; }
}

/* — title: centered, bold — */
#bebanCartPopup .beban-cart-popup-title {
	text-align: center;
	font-size: 16.5px;
	font-weight: 800;
	color: #1f2430;
	margin: 0 0 16px;
}

/* — divider: reference has none — */
#bebanCartPopup .beban-cart-popup-divider {
	display: none;
}

/* — product: bordered box like the reference — */
#bebanCartPopup .beban-cart-popup-product {
	border: 1px solid #ececf1;
	border-radius: 14px;
	padding: 12px;
	gap: 12px;
	background: #fff;
}
#bebanCartPopup .beban-cart-popup-image {
	width: 72px;
	height: 72px;
	border-radius: 12px;
	border: 1px solid #f0f0f3;
}
#bebanCartPopup .beban-cart-popup-product-title {
	color: #23262e;
	font-size: 14px;
	font-weight: 700;
	margin: 0 0 6px;
}
#bebanCartPopup .beban-cart-popup-product-price {
	color: var(--sava-pop-price, #e775ae);
	font-size: 14px;
	font-weight: 800;
}
#bebanCartPopup .beban-cart-popup-product-price del {
	color: #a5aab3;
	font-weight: 500;
}
#bebanCartPopup .beban-cart-popup-product-price ins {
	color: var(--sava-pop-price, #e775ae);
	text-decoration: none;
}

/* — actions row: crimson primary «برو به سبد خرید» + outline «ادامه خرید» — */
#bebanCartPopup .sava-cartpop-actions {
	display: flex;
	gap: 10px;
	margin-top: 16px;
}
#bebanCartPopup .beban-cart-popup-button {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 1.7 1 0;
	width: auto;
	margin-top: 0;
	height: 48px;
	padding: 0 14px;
	border-radius: 12px;
	background: var(--sava-pop-btn, #e775ae);
	color: #fff;
	font-size: 14.5px;
	font-weight: 700;
	white-space: nowrap;
	box-shadow: 0 12px 24px -12px var(--sava-pop-btn-sh, rgba(231, 117, 174, 0.7));
	transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
#bebanCartPopup .beban-cart-popup-button:hover {
	background: var(--sava-pop-btn-h, #d05a97);
	color: #fff;
	transform: translateY(-1px);
	box-shadow: 0 16px 30px -12px var(--sava-pop-btn-sh-h, rgba(208, 90, 151, 0.7));
}
#bebanCartPopup .sava-cartpop-btn2 {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 1 1 0;
	height: 48px;
	padding: 0 14px;
	border-radius: 12px;
	background: #fff;
	border: 1.5px solid #e4e6eb;
	color: #4b5563;
	font-size: 14.5px;
	font-weight: 700;
	white-space: nowrap;
	cursor: pointer;
	transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
#bebanCartPopup .sava-cartpop-btn2:hover {
	background: #f8f9fb;
	border-color: #cfd3db;
	color: #111827;
}

/* — mobile: stack, primary anchored at the bottom (thumb zone) — */
@media (max-width: 480px) {
	#bebanCartPopup .beban-cart-popup-content {
		padding: 22px 16px 16px;
	}
	#bebanCartPopup .sava-cartpop-actions {
		flex-direction: column-reverse;
		gap: 8px;
	}
	#bebanCartPopup .sava-cartpop-actions > * {
		flex: none;
		width: 100%;
	}
	#bebanCartPopup .beban-cart-popup-button {
		width: 100%;
	}
}
