/*
 * בלוק המארז — עיצוב הרשימה והתג בלבד.
 * המחיר, הכמות וכפתור ההוספה מעוצבים ע"י התבנית (הטופס במבנה simple.php);
 * עיצוב פולבק לכפתור/טופס נטען מ-bundle-fallback.css רק בתבניות אחרות.
 * טוקנים מהאתר: ירוק #285C46, כתום #FF6C3E, טקסט #2B2B2B, רקע רך #FFF8F6, רדיוס 15px.
 */

.elisos-bundle {
	--eb-green: #285C46;
	--eb-orange: #FF6C3E;
	--eb-ink: #2B2B2B;
	--eb-soft: #FFF8F6;
	--eb-line: #e5e0dc;
	direction: rtl;
	margin: 18px 0;
}

.elisos-bundle__title {
	font-size: 22px;
	font-weight: 800;
	color: var(--eb-ink);
	margin-bottom: 2px;
}

.elisos-bundle__subtitle {
	font-size: 14px;
	color: #767676;
	margin-bottom: 12px;
}

.elisos-bundle__items {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 14px 0;
}

.elisos-bundle__item {
	display: flex;
	align-items: center;
	gap: 12px;
	background: var(--eb-soft);
	border: 1px solid var(--eb-line);
	border-radius: 15px;
	padding: 10px 14px;
	transition: opacity .15s ease, border-color .15s ease;
}

/* --- הסרת פריט ע"י הלקוח --- */

.elisos-bundle__keep {
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	/* יעד מגע גדול למובייל, בלי לנפח את הריבוע עצמו */
	width: 34px;
	height: 44px;
	margin: -10px -6px -10px 0;
	cursor: pointer;
}

.elisos-bundle__keep-input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.elisos-bundle__keep-box {
	width: 22px;
	height: 22px;
	border-radius: 7px;
	border: 2px solid #c9c2bc;
	background: #fff;
	position: relative;
	transition: background .15s ease, border-color .15s ease;
}

.elisos-bundle__keep-input:checked + .elisos-bundle__keep-box {
	background: var(--eb-green);
	border-color: var(--eb-green);
}

.elisos-bundle__keep-input:checked + .elisos-bundle__keep-box::after {
	content: "";
	position: absolute;
	top: 3px;
	inset-inline-start: 6px;
	width: 5px;
	height: 10px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.elisos-bundle__keep-input:focus-visible + .elisos-bundle__keep-box {
	box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--eb-green);
}

/* פריט נעול: וי מלא בהיר, לא לחיץ. */
.elisos-bundle__keep--locked {
	cursor: default;
}

.elisos-bundle__keep--locked .elisos-bundle__keep-box {
	background: #a9bfb1;
	border-color: #a9bfb1;
}

.elisos-bundle__keep--locked .elisos-bundle__keep-box::after {
	content: "";
	position: absolute;
	top: 3px;
	inset-inline-start: 6px;
	width: 5px;
	height: 10px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.elisos-bundle__item.is-excluded {
	opacity: .45;
	border-style: dashed;
}

.elisos-bundle__item.is-excluded .elisos-bundle__name {
	text-decoration: line-through;
}

.elisos-bundle__item.is-excluded .elisos-bundle__item-price,
.elisos-bundle__item.is-excluded .elisos-bundle__flavor {
	visibility: hidden;
}

/* אלמנטים של סגנון "✕ + החזרה" — כבויים בסגנון הצ'קבוקסים */

.elisos-bundle__dismiss,
.elisos-bundle__restore {
	display: none;
}

/* --- סגנון "✕ + החזרה" --- */

.elisos-bundle--style-dismiss .elisos-bundle__keep {
	display: none;
}

.elisos-bundle--style-dismiss .elisos-bundle__item {
	position: relative;
}

.elisos-bundle--style-dismiss .elisos-bundle__dismiss {
	display: flex;
	align-items: center;
	justify-content: center;
	position: absolute;
	top: 6px;
	inset-inline-end: 6px;
	width: 26px;
	height: 26px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #b5aca4;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	transition: color .15s ease, background .15s ease;
}

.elisos-bundle--style-dismiss .elisos-bundle__dismiss:hover,
.elisos-bundle--style-dismiss .elisos-bundle__dismiss:focus-visible {
	color: #d63638;
	background: rgba(214, 54, 56, .08);
}

/* פינוי מקום ל-✕ כדי שלא ידרוך על המחיר */
.elisos-bundle--style-dismiss .elisos-bundle__item:not(.is-excluded) {
	padding-inline-end: 38px;
}

/* פריט שהוסר: קורס לשורת "הוסר — החזרה" */
.elisos-bundle--style-dismiss .elisos-bundle__item.is-excluded {
	opacity: 1;
	border-style: dashed;
	background: transparent;
	padding: 8px 14px;
}

.elisos-bundle--style-dismiss .elisos-bundle__item.is-excluded .elisos-bundle__thumb,
.elisos-bundle--style-dismiss .elisos-bundle__item.is-excluded .elisos-bundle__info,
.elisos-bundle--style-dismiss .elisos-bundle__item.is-excluded .elisos-bundle__item-price,
.elisos-bundle--style-dismiss .elisos-bundle__item.is-excluded .elisos-bundle__dismiss {
	display: none;
}

.elisos-bundle--style-dismiss .elisos-bundle__item.is-excluded .elisos-bundle__restore {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	width: 100%;
	min-height: 28px;
}

.elisos-bundle__restore-text {
	font-size: 13px;
	color: #8a8580;
}

.elisos-bundle__restore-btn {
	flex: none;
	border: 1px solid var(--eb-green);
	background: transparent;
	color: var(--eb-green);
	border-radius: 999px;
	font-size: 12.5px;
	font-weight: 700;
	padding: 4px 14px;
	cursor: pointer;
	transition: background .15s ease, color .15s ease;
}

.elisos-bundle__restore-btn:hover,
.elisos-bundle__restore-btn:focus-visible {
	background: var(--eb-green);
	color: #fff;
}

.elisos-bundle__thumb {
	flex: none;
	width: 52px;
	height: 52px;
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
}

.elisos-bundle__thumb img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

.elisos-bundle__info {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.elisos-bundle__name {
	font-size: 15px;
	font-weight: 700;
	color: var(--eb-ink);
	text-decoration: none;
	line-height: 1.3;
}

.elisos-bundle__name:hover {
	color: var(--eb-green);
}

.elisos-bundle__qty {
	font-weight: 400;
	color: #767676;
	font-size: 13px;
}

.elisos-bundle__flavor {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	color: #555;
}

.elisos-bundle__flavor-select {
	font-size: 13px;
	border: 1px solid var(--eb-line);
	border-radius: 8px;
	padding: 3px 8px;
	background: #fff;
	max-width: 190px;
}

.elisos-bundle__item-price {
	flex: none;
	display: flex;
	align-items: baseline;
	gap: 8px;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

.elisos-bundle__item-price-regular {
	color: #d63638;
	text-decoration: line-through;
	font-size: 13px;
	font-weight: 400;
}

.elisos-bundle__item-price-bundle {
	color: var(--eb-ink);
	font-size: 15px;
	font-weight: 700;
}

.elisos-bundle__savings {
	margin: 4px 0 14px;
}

.elisos-bundle__badge {
	display: inline-block;
	background: var(--eb-orange);
	color: #fff;
	font-size: 13px;
	font-weight: 800;
	padding: 5px 14px;
	border-radius: 12px;
	white-space: nowrap;
}

.elisos-bundle__oos {
	color: #b3261e;
	font-weight: 700;
}

/* --- הטופס ---
 * התבנית נותנת ל-form.cart פריסת שורה (flex row nowrap) שמתאימה לכמות+כפתור
 * בלבד; אצלנו הטופס מכיל גם את רשימת הפריטים, לכן כופים עמודה — סקופ צר,
 * רק בתוך הבלוק שלנו.
 */

.elisos-bundle form.cart {
	display: flex !important;
	flex-direction: column !important;
	flex-wrap: nowrap !important;
	align-items: stretch !important;
	gap: 0 !important;
}

.elisos-bundle__actions {
	display: flex;
	align-items: center;
	gap: 12px;
}

.elisos-bundle__actions .quantity {
	flex: none;
}

.elisos-bundle__actions .quantity select.qty,
.elisos-bundle__actions .quantity input.qty {
	min-width: 70px;
}

.elisos-bundle__actions .single_add_to_cart_button {
	flex: 1;
	min-width: 0;
	padding: 0 26px;
	white-space: nowrap;
}

/* --- ילדים בסל / מיני-קארט --- */

.elisos-bundle-child-name {
	display: inline-block;
	padding-inline-start: 14px;
	font-size: .92em;
	color: #666;
}

.elisos-bundle-child-included {
	font-size: .85em;
	color: #959595;
}

/* --- בר דביק במובייל --- */

.elisos-bundle-sticky {
	position: fixed;
	bottom: 0;
	right: 0;
	left: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	direction: rtl;
	background: #fff;
	border-top: 1px solid #e5e0dc;
	box-shadow: 0 -4px 16px rgba(0, 0, 0, .08);
	padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
}

.elisos-bundle-sticky__price {
	font-size: 20px;
	font-weight: 800;
	color: #2B2B2B;
	white-space: nowrap;
}

.elisos-bundle-sticky__cta {
	background: #285C46;
	color: #fff;
	border: 0;
	border-radius: 300px;
	font-size: 15px;
	font-weight: 700;
	padding: 12px 26px;
	cursor: pointer;
}
