/* Side cart + mobile "נוסף לסל" sheet: like the live site (Elementor Menu Cart + snippets 29, 52, 57). Prefix bmsc- */

.bmsc-ov {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, .25);
	z-index: 100000;
	opacity: 0;
	visibility: hidden;
	transition: opacity .3s, visibility .3s;
}
.bmsc-ov.active { opacity: 1; visibility: visible; }

.bmsc {
	position: fixed;
	top: 0;
	bottom: 0;
	left: 0;
	width: 350px;
	max-width: 100vw;
	background: #fff;
	color: #1f1530;
	z-index: 100001;
	padding: 20px 30px 0;
	box-sizing: border-box;
	box-shadow: 0 0 10px rgba(0, 0, 0, .5);
	transform: translateX(-110%);
	visibility: hidden;
	transition: transform .3s ease, visibility .3s;
	overflow-y: auto;
	overscroll-behavior: contain;
	direction: rtl;
	display: flex;
	flex-direction: column;
}
.bmsc.active { transform: none; visibility: visible; }

.bmsc-hd { display: flex; align-items: center; justify-content: space-between; margin: 0 0 14px; }
.bmsc-hd h3 { font-size: 18px; font-weight: 800; color: #1f1530; margin: 0; line-height: 1.2; }
.bmsc .bmsc-x {
	background: none;
	border: 0;
	padding: 0;
	width: 32px;
	height: 32px;
	min-height: 0;
	font-size: 26px;
	line-height: 1;
	color: #333;
	cursor: pointer;
	border-radius: 50%;
	box-shadow: none;
}
.bmsc .bmsc-x:hover, .bmsc .bmsc-x:focus-visible { background: #f3f0f7; color: #333; }

.bmsc-added {
	background: #ecfdf3;
	color: #15803d;
	border: 1px solid #bbf7d0;
	border-radius: 10px;
	padding: 9px 12px;
	font-size: 14px;
	font-weight: 700;
	margin: 0 0 12px;
}
.bmsc-added[hidden] { display: none; }

.bmsc .widget_shopping_cart_content { flex: 1 0 auto; display: flex; flex-direction: column; }

/* items */
.bmsc-list { list-style: none; margin: 0; padding: 0; }
.bmsc-item {
	position: relative;
	display: flex;
	gap: 14px;
	align-items: flex-start;
	padding: 20px 0 20px 30px;
	border-bottom: 1px solid #d5d8dc;
	margin: 0;
}
.bmsc-item:first-child { padding-top: 0; }
.bmsc-img { flex: 0 0 73px; }
.bmsc-img img { width: 73px; height: 91px; object-fit: cover; display: block; border-radius: 4px; }
.bmsc-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.bmsc-name { font-size: 16px; line-height: 1.3; color: #1f1530; text-decoration: none; }
a.bmsc-name:hover { color: #6b21a8; }
.bmsc-info dl.variation { margin: 0; font-size: 13px; color: #555; display: flex; flex-wrap: wrap; gap: 0 6px; }
.bmsc-info dl.variation dt, .bmsc-info dl.variation dd, .bmsc-info dl.variation p { margin: 0; display: inline; }
.bmsc-qty { font-size: 16px; color: #1f1530; }
.bmsc .bmsc-rm {
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 22px;
	height: 22px;
	border: 1px solid #000;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
	line-height: 1;
	color: #000;
	text-decoration: none;
	background: #fff;
}
.bmsc-item:first-child .bmsc-rm { top: calc(50% - 10px); }
.bmsc .bmsc-rm:hover { background: #111; color: #fff; }

/* sticky footer: complete the look, fees, subtotal, buttons */
.bmsc-foot {
	position: sticky;
	bottom: 0;
	background: #fff;
	margin-top: auto;
	padding: 10px 0 16px;
}
.bmsc-up { margin: 0 0 12px; padding: 10px 0 4px; border-bottom: 1px solid #eee; }
.bmsc-up h4 { font-size: 15px; font-weight: 800; color: #1f1530; margin: 0 0 8px; text-align: center; }
.bmsc-up-row { display: flex; justify-content: space-between; gap: 6px; }
.bmsc-up-row a {
	flex: 1 1 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	font-size: 12.5px;
	font-weight: 700;
	line-height: 1.25;
	color: #1f1530;
	text-decoration: none;
	text-align: center;
}
.bmsc-up-row img { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; border: 2px solid #f3e8ff; display: block; }
.bmsc-up-row a:hover img { border-color: #6b21a8; }

.bmsc-fee {
	display: flex;
	justify-content: space-between;
	gap: 8px;
	background: #fdf2f8;
	color: #be185d;
	border-radius: 8px;
	padding: 6px 10px;
	font-size: 14px;
	font-weight: 700;
	margin: 0 0 6px;
}
.bmsc-sub {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	padding: 10px 2px 4px;
	font-size: 16px;
	font-weight: 800;
	color: #1f1530;
	margin: 0;
	border: 0;
}
.bmsc-sub strong { font-weight: 900; }

.bmsc-btns { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.bmsc .bmsc-btns .bmsc-go,
.bmsc .bmsc-btns .bmsc-view {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 12px 15px;
	border-radius: 12px;
	font-size: 16px;
	font-weight: 800;
	text-decoration: none;
	text-align: center;
	box-sizing: border-box;
	width: 100%;
	margin: 0;
	line-height: 1.2;
	box-shadow: none;
}
.bmsc .bmsc-btns .bmsc-go { background: #111; color: #fff; border: 0; }
.bmsc .bmsc-btns .bmsc-go:hover, .bmsc .bmsc-btns .bmsc-go:focus-visible { background: #333; color: #fff; }
.bmsc .bmsc-btns .bmsc-view { background: #fff; color: #6b21a8; border: 2px solid #6b21a8; font-size: 15px; }
.bmsc .bmsc-btns .bmsc-view:hover, .bmsc .bmsc-btns .bmsc-view:focus-visible { background: #6b21a8; color: #fff; }
.bmsc .bmsc-cont {
	background: none;
	border: 0;
	padding: 4px;
	min-height: 0;
	font-size: 14px;
	font-weight: 700;
	color: #6b21a8;
	text-decoration: underline;
	cursor: pointer;
	box-shadow: none;
	align-self: center;
}
.bmsc .bmsc-cont:hover { background: none; color: #1f1530; }

.bmsc-empty { text-align: center; padding: 40px 0; font-size: 16px; color: #1f1530; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.bmsc-empty p { margin: 0; }

/* while the cart or the sheet is open: hide WhatsApp, up arrow and the bottom bar (live: snippet 29) */
body.bm-sc-open .bmf-wa,
body.bm-sc-open .bmf-up,
body.bm-sc-open .bmf-bn,
body.bm-sc-open .wp-bottom-menu { display: none !important; }

/* mobile sheet (live: snippet 57) */
.bmsc-sheet-ov {
	position: fixed;
	inset: 0;
	background: rgba(17, 17, 17, .45);
	z-index: 100002;
	display: flex;
	align-items: flex-end;
	justify-content: center;
}
.bmsc-sheet {
	position: relative;
	width: 100%;
	max-width: 520px;
	background: #fff;
	border-radius: 18px 18px 0 0;
	padding: 18px 16px calc(22px + env(safe-area-inset-bottom));
	direction: rtl;
	box-shadow: 0 -8px 30px rgba(0, 0, 0, .18);
	animation: bmscUp .25s ease-out;
	box-sizing: border-box;
}
@keyframes bmscUp { from { transform: translateY(100%); } to { transform: none; } }
.bmsc-sheet-h { font-size: 18px; font-weight: 800; color: #15803d; margin: 0 0 6px; }
.bmsc-sheet-n { font-size: 14.5px; color: #3d3450; margin: 0 0 14px; padding-left: 40px; }
.bmsc-sheet-b { display: flex; gap: 8px; margin-top: 8px; }
.bmsc-sheet .bmsc-sheet-b a,
.bmsc-sheet .bmsc-sheet-b button {
	flex: 1 1 0;
	min-height: 52px;
	border-radius: 12px;
	font-size: 16px;
	font-weight: 800;
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	cursor: pointer;
	padding: 0 10px;
	box-shadow: none;
	line-height: 1.2;
}
.bmsc-sheet .bmsc-sheet-go { background: #111; color: #fff; border: 0; }
.bmsc-sheet .bmsc-sheet-cont { background: #fff; color: #6b21a8; border: 2px solid #6b21a8; }
.bmsc-sheet .bmsc-sheet-x {
	position: absolute;
	left: 12px;
	top: 10px;
	width: 36px;
	height: 36px;
	min-height: 0;
	padding: 0;
	background: #f3f0f7;
	border: 0;
	border-radius: 50%;
	font-size: 22px;
	line-height: 1;
	color: #333;
	cursor: pointer;
	box-shadow: none;
}

@media (max-width: 767px) {
	.bmsc { width: 100vw; padding: 16px 16px 0; }
}
@media (prefers-reduced-motion: reduce) {
	.bmsc, .bmsc-ov { transition: none; }
	.bmsc-sheet { animation: none; }
}
