/* MyMuse Woo Suite – פופ-אפ סל קניות. הצבעים מגיעים ממשתני --mws-* שמוזרקים מההגדרות. */

html.amph-mini-lock, html.amph-mini-lock body { overflow: hidden; }

.amph-mini__backdrop {
	position: fixed;
	inset: 0;
	z-index: 99990;
	background: rgba(0, 0, 0, .45);
	opacity: 0;
	transition: opacity .3s ease;
}
.amph-mini__backdrop.is-open { opacity: 1; }

.amph-mini {
	position: fixed;
	top: 0;
	bottom: 0;
	left: 0; /* נפתח מצד שמאל */
	z-index: 99991;
	width: min(430px, 100vw);
	display: flex;
	flex-direction: column;
	direction: rtl;
	background: var(--mws-bg, #F8F6F1);
	box-shadow: 12px 0 40px rgba(0, 0, 0, .25);
	font-family: var(--mws-font, 'Assistant', sans-serif);
	color: var(--mws-text, #000);
	transform: translateX(-100%);
	transition: transform .3s cubic-bezier(.2, .8, .2, 1);
}
.amph-mini.is-open { transform: translateX(0); }
.amph-mini.is-busy { pointer-events: none; opacity: .7; }

@media (prefers-reduced-motion: reduce) {
	.amph-mini, .amph-mini__backdrop { transition: none; }
}

/* ---- ראש ---- */
.amph-mini__head {
	position: relative;
	padding: 18px 20px 14px;
	border-bottom: 1px solid rgba(0, 0, 0, .35);
	flex: 0 0 auto;
}
.amph-mini h2.amph-mini__title {
	margin: 0;
	text-align: center;
	font-size: 22px;
	font-weight: 600;
	color: var(--mws-text, #000);
}
/* !important — כפתורי אלמנטור הגלובליים */
.amph-mini button.amph-mini__close {
	position: absolute;
	inset-inline-end: auto;
	inset-inline-start: 14px;
	top: 12px;
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	padding: 4px 10px !important;
	font-size: 30px !important;
	line-height: 1 !important;
	color: var(--mws-text, #000) !important;
	cursor: pointer;
	font-family: inherit;
}
.amph-mini button.amph-mini__close:hover { color: var(--mws-action, #566B30) !important; }

/* ---- גוף נגלל ---- */
.amph-mini__body {
	flex: 1 1 auto;
	overflow-y: auto;
	padding: 6px 20px 16px;
	scrollbar-width: thin;
	scrollbar-color: var(--mws-primary, #CAAF6E) #D5D5D5;
}
.amph-mini__body::-webkit-scrollbar { width: 6px; }
.amph-mini__body::-webkit-scrollbar-track { background: rgba(0, 0, 0, .08); }
.amph-mini__body::-webkit-scrollbar-thumb { background: var(--mws-primary, #CAAF6E); border-radius: 50px; }

/* ---- שורת מוצר ---- */
.amph-mini__item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px 0;
	position: relative;
}
.amph-mini__item + .amph-mini__item { border-top: 1px solid rgba(0, 0, 0, .15); }

.amph-mini__item-img {
	flex: 0 0 96px;
	width: 96px !important;
	height: 96px !important;
	object-fit: contain !important;
	mix-blend-mode: multiply;
	order: -1; /* התמונה בצד ימין (תחילת השורה ב-RTL) */
}

.amph-mini__item-info { flex: 1 1 auto; min-width: 0; }
.amph-mini__item-name {
	margin: 0 0 8px;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
}

.amph-mini__qty {
	display: inline-flex;
	align-items: center;
	border: 1px solid rgba(0, 0, 0, .55);
	background: #F9F9F9;
	height: 26px;
}
.amph-mini button.amph-mini__qty-btn {
	width: 26px;
	height: 100%;
	background: #E8E8E8 !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	padding: 0 !important;
	font-size: 15px !important;
	font-weight: 300 !important;
	line-height: 1 !important;
	color: #000 !important;
	cursor: pointer;
	font-family: inherit;
}
.amph-mini button.amph-mini__qty-btn:hover { background: #dcdcdc !important; }
.amph-mini__qty-num {
	min-width: 32px;
	text-align: center;
	font-size: 13px;
	font-weight: 300;
}

.amph-mini__item-price { margin: 8px 0 0; font-size: 15px; }
.amph-mini__item-price strong { font-weight: 700; }
.amph-mini__item-price del { color: rgba(0, 0, 0, .5); margin-inline-start: 6px; }

.amph-mini button.amph-mini__remove {
	position: absolute;
	inset-inline-end: auto;
	inset-inline-start: 0;
	top: 20px;
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	padding: 4px !important;
	cursor: pointer;
	opacity: .75;
}
.amph-mini button.amph-mini__remove:hover { opacity: 1; }
.amph-mini__remove img { display: block; }

/* ---- מוצרים מומלצים ---- */
.amph-mini__upsells {
	border-top: 1px solid rgba(0, 0, 0, .35);
	margin-top: 8px;
	padding-top: 16px;
}
.amph-mini h3.amph-mini__upsells-title {
	margin: 0 0 14px;
	text-align: center;
	font-size: 16px;
	font-weight: 700;
	color: var(--mws-text, #000);
}
.amph-mini__upsells-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
}
.amph-mini__upsell {
	min-width: 0;
	display: flex;
	flex-direction: column;
}
.amph-mini__upsell-img { display: block; aspect-ratio: 1 / 1; }
.amph-mini__upsell-img img {
	width: 100% !important;
	height: 100% !important;
	object-fit: contain !important;
	mix-blend-mode: multiply;
	display: block;
}
.amph-mini__upsell-name {
	margin: 6px 0 0;
	text-align: center;
	font-size: 12px;
	line-height: 1.3;
	flex: 1 1 auto; /* מיישר את הכפתורים לקו אחד */
}
.amph-mini__upsell-name strong { display: block; font-weight: 700; }
.amph-mini__upsell-name span { display: block; font-weight: 300; font-size: .85em; }
.amph-mini__upsell-price {
	margin: 6px 0 0;
	text-align: center;
	font-size: 13px;
	font-weight: 600;
}
.amph-mini__upsell-price del { opacity: .55; margin-inline-end: 4px; }
.amph-mini__upsell-price ins { text-decoration: none; }
.amph-mini button.amph-mini__upsell-btn {
	display: block;
	width: 100%;
	margin-top: 8px;
	background: transparent !important;
	border: 1px solid var(--mws-text, #000) !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	padding: 5px 2px !important;
	color: var(--mws-text, #000) !important;
	font-size: 12px !important;
	font-weight: 300 !important;
	font-family: inherit;
	cursor: pointer;
	transition: background .2s ease, color .2s ease;
}
.amph-mini button.amph-mini__upsell-btn:hover,
.amph-mini button.amph-mini__upsell-btn:focus {
	background: var(--mws-text, #000) !important;
	color: var(--mws-bg, #fff) !important;
}

/* ---- פס משלוח חינם ---- */
.amph-mini__shipping {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 18px 0 0;
	font-size: 14px;
}
.amph-mini__shipping img { mix-blend-mode: multiply; flex: 0 0 auto; }
.amph-mini__shipping .is-strong { font-weight: 600; }

/* ---- סל ריק ---- */
.amph-mini__empty { text-align: center; padding: 40px 10px 24px; }
.amph-mini__empty p { font-size: 15px; margin: 0 0 18px; }

/* ---- תחתית קבועה ---- */
.amph-mini__foot {
	flex: 0 0 auto;
	border-top: 1px solid rgba(0, 0, 0, .35);
	padding: 14px 20px calc(16px + env(safe-area-inset-bottom, 0px));
	background: var(--mws-bg, #F8F6F1);
}
.amph-mini__subtotal {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	margin-bottom: 12px;
}
.amph-mini__subtotal span { font-size: 15px; }
.amph-mini__subtotal strong { font-size: 22px; font-weight: 700; }

.amph-mini a.amph-mini__btn {
	display: block;
	text-align: center;
	height: 48px;
	line-height: 46px;
	font-size: 15px;
	text-decoration: none !important;
	transition: background .2s ease, color .2s ease;
}
.amph-mini a.amph-mini__btn + a.amph-mini__btn { margin-top: 8px; }
.amph-mini a.amph-mini__btn--outline {
	border: 1px solid var(--mws-text, #000);
	color: var(--mws-text, #000) !important;
	background: transparent;
}
.amph-mini a.amph-mini__btn--outline:hover { background: var(--mws-text, #000); color: var(--mws-bg, #fff) !important; }
.amph-mini a.amph-mini__btn--green {
	background: var(--mws-action, #566B30);
	color: var(--mws-on-action, #fff) !important;
	border: 1px solid var(--mws-action, #566B30);
	line-height: 48px;
}
.amph-mini a.amph-mini__btn--green:hover { background: var(--mws-action-hover, #465926); border-color: var(--mws-action-hover, #465926); }

@media (max-width: 480px) {
	.amph-mini { width: 100vw; }
}
