/* Project E bundle builder: a compact card on the product page, one popup per
   group. Theme button rules (Hello, Elementor kits) paint every <button>, so
   paint properties carry !important and selectors repeat a class to outrank
   `body.x button`. */
.pe-bnd.pe-bnd, .pe-bnd-m.pe-bnd-m {
	--pe-bnd-ink: #1f2328;
	--pe-bnd-muted: #6b7280;
	--pe-bnd-line: #ebe4e4;
	--pe-bnd-soft: color-mix(in srgb, var(--pe-bnd-accent, #111827) 10%, #fff);
	--pe-bnd-r: 14px;
	color: var(--pe-bnd-ink);
	font: inherit;
	text-align: start;
}
.pe-bnd :where(*), .pe-bnd-m :where(*) { box-sizing: border-box; }
.pe-bnd :where(h3, p), .pe-bnd-m :where(h3, p) { margin: 0; }
.pe-bnd :where(img), .pe-bnd-m :where(img) { display: block; max-width: 100%; margin: 0; border: 0; }

/* ---- Card ---- */
/* Builders lay form.cart out as a flex row (JetWooBuilder's add-to-cart widget
   does); the card is always a block. */
.pe-bnd.pe-bnd.pe-bnd { display: block !important; flex: none !important; width: 100% !important; max-width: 100%; margin: 14px 0 0; }
.pe-bnd.pe-bnd > .pe-bnd__intro, .pe-bnd.pe-bnd > .pe-bnd__rows, .pe-bnd.pe-bnd > .pe-bnd__bar { width: 100%; max-width: 100%; }
.pe-bnd__intro { margin: 0 0 12px; color: var(--pe-bnd-muted); font-size: .95em; line-height: 1.55; }
.pe-bnd__rows { display: flex; flex-direction: column; border: 1px solid var(--pe-bnd-line); border-radius: var(--pe-bnd-r); background: #fff; overflow: hidden; }
.pe-bnd.pe-bnd .pe-bnd__row {
	display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; margin: 0; padding: 12px 14px;
	border: 0 !important; border-bottom: 1px solid var(--pe-bnd-line) !important; border-radius: 0 !important;
	background: #fff !important; color: var(--pe-bnd-ink) !important;
	font: inherit; text-align: start; text-transform: none; letter-spacing: 0; line-height: 1.3; box-shadow: none; cursor: pointer;
	transition: background .15s;
}
.pe-bnd.pe-bnd .pe-bnd__row:last-child { border-bottom: 0 !important; }
.pe-bnd.pe-bnd button.pe-bnd__row:hover { background: #fcfafa !important; }
.pe-bnd.pe-bnd .pe-bnd__row.is-fixed { cursor: default; }
.pe-bnd.pe-bnd .pe-bnd__row:focus-visible { outline: 2px solid var(--pe-bnd-accent); outline-offset: -2px; }
.pe-bnd__mark {
	display: grid; place-items: center; flex: 0 0 30px; width: 30px; height: 30px; border-radius: 50%;
	background: var(--pe-bnd-soft); color: var(--pe-bnd-accent); font-size: .85rem; font-weight: 700;
	transition: background .2s, color .2s;
}
.pe-bnd__row.is-done .pe-bnd__mark { background: var(--pe-bnd-accent); color: #fff; font-size: 0; }
.pe-bnd__row.is-done .pe-bnd__mark::before { content: "\2713"; font-size: .9rem; }
.pe-bnd__rtext { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; min-width: 0; }
.pe-bnd__rtext b { font-weight: 700; font-size: .98rem; }
.pe-bnd__rtext small { color: var(--pe-bnd-muted); font-size: .82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pe-bnd__row.is-done:not(.is-fixed) .pe-bnd__rcount { color: var(--pe-bnd-accent); font-weight: 600; }
.pe-bnd__rthumbs { display: flex; flex: 0 0 auto; align-items: center; }
.pe-bnd__rthumbs img, .pe-bnd__more {
	width: 30px; height: 30px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; background: #f5f0f0;
	margin-inline-start: -9px; box-shadow: 0 1px 3px rgba(0, 0, 0, .12);
}
.pe-bnd__rthumbs img:first-child { margin-inline-start: 0; }
.pe-bnd__more { display: grid; place-items: center; font-size: .7rem; font-weight: 700; color: var(--pe-bnd-muted); }
.pe-bnd__rgo {
	flex: 0 0 auto; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--pe-bnd-accent);
	color: var(--pe-bnd-accent); font-size: .82rem; font-weight: 600; white-space: nowrap;
}
.pe-bnd__row:not(.is-done) .pe-bnd__rgo { background: var(--pe-bnd-accent); color: #fff; }
@media (max-width: 420px) {
	.pe-bnd__rthumbs { display: none; }
	.pe-bnd__row.is-done .pe-bnd__rthumbs { display: flex; }
	.pe-bnd__row.is-done .pe-bnd__rgo { display: none; }
}

.pe-bnd__bar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 12px; margin-top: 14px; }
.pe-bnd__sum { display: flex; flex-direction: column; line-height: 1.15; margin-inline-end: auto; min-width: 0; }
.pe-bnd__value { color: var(--pe-bnd-muted); font-size: .85rem; }
.pe-bnd__value[hidden] { display: none; }
.pe-bnd__total { font-size: 1.3rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.pe-bnd.pe-bnd .pe-bnd__qty { display: inline-flex; align-items: center; margin: 0; height: 46px; border: 1px solid var(--pe-bnd-line); border-radius: 999px; overflow: hidden; background: #fff; }
.pe-bnd.pe-bnd .pe-bnd__q {
	width: 38px; height: 46px; margin: 0; padding: 0; min-height: 0;
	border: 0 !important; border-radius: 0 !important; background: transparent !important; color: var(--pe-bnd-ink) !important;
	font-size: 18px; line-height: 1; cursor: pointer; box-shadow: none;
}
.pe-bnd.pe-bnd .pe-bnd__qty input {
	width: 34px; height: 46px; margin: 0; padding: 0; border: 0 !important; background: transparent !important;
	text-align: center; font: inherit; font-weight: 600; -moz-appearance: textfield; box-shadow: none;
}
.pe-bnd__qty input::-webkit-outer-spin-button, .pe-bnd__qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pe-bnd.pe-bnd .pe-bnd__cta {
	flex: 1 1 100%; height: 52px; margin: 0; padding: 0 18px; min-height: 0;
	border: 0 !important; border-radius: 999px !important; background: var(--pe-bnd-accent) !important; color: #fff !important;
	font: inherit; font-size: 1.02rem; font-weight: 700; text-transform: none; letter-spacing: 0; cursor: pointer;
	box-shadow: 0 8px 20px color-mix(in srgb, var(--pe-bnd-accent) 28%, transparent); transition: transform .1s, opacity .2s;
}
.pe-bnd.pe-bnd .pe-bnd__cta.is-incomplete { background: #fff !important; color: var(--pe-bnd-accent) !important; border: 1.5px solid var(--pe-bnd-accent) !important; box-shadow: none; }
.pe-bnd.pe-bnd .pe-bnd__cta:active { transform: scale(.985); }
.pe-bnd.pe-bnd .pe-bnd__cta.loading { opacity: .7; }

/* Compact: price + button only (fixed mobile bars, narrow columns). */
.pe-bnd.pe-bnd.is-compact { margin: 0; }
.pe-bnd.is-compact > .pe-bnd__intro, .pe-bnd.is-compact > .pe-bnd__rows, .pe-bnd.is-compact .pe-bnd__qty, .pe-bnd.is-compact .pe-bnd__value { display: none !important; }
.pe-bnd.is-compact > .pe-bnd__bar { margin: 0; flex-wrap: nowrap; gap: 8px; }
.pe-bnd.is-compact .pe-bnd__sum { margin-inline-end: 0; }
.pe-bnd.is-compact .pe-bnd__total { font-size: 1.05rem; }
.pe-bnd.pe-bnd.is-compact .pe-bnd__cta { flex: 1 1 auto; height: 46px; font-size: .95rem; padding: 0 12px; }
.pe-bnd.pe-bnd .pe-bnd__edit {
	flex: 0 0 auto; height: 46px; margin: 0; padding: 0 14px; min-height: 0;
	border: 1px solid var(--pe-bnd-line) !important; border-radius: 999px !important; background: #fff !important; color: var(--pe-bnd-ink) !important;
	font: inherit; font-size: .88rem; font-weight: 600; text-transform: none; cursor: pointer; box-shadow: none;
}
.pe-bnd.pe-bnd .pe-bnd__edit[hidden], .pe-bnd:not(.is-compact) .pe-bnd__edit { display: none !important; }

/* ---- Popup ---- */
html.pe-bnd-lock { overflow: hidden; scrollbar-gutter: stable; }
.pe-bnd-m.pe-bnd-m { position: fixed; inset: 0; z-index: 999990; display: flex; align-items: center; justify-content: center; padding: 24px; }
.pe-bnd-m[hidden] { display: none !important; }
.pe-bnd-m__backdrop { position: absolute; inset: 0; background: rgba(28, 18, 20, .5); opacity: 0; transition: opacity .2s; }
.pe-bnd-m.is-open .pe-bnd-m__backdrop { opacity: 1; }
.pe-bnd-m__panel {
	position: relative; display: flex; flex-direction: column; width: min(860px, 100%); max-height: min(88vh, 900px);
	border-radius: 20px; background: #fff; box-shadow: 0 30px 80px rgba(0, 0, 0, .25); overflow: hidden;
	transform: translateY(14px) scale(.98); opacity: 0; transition: transform .22s ease, opacity .22s ease;
}
.pe-bnd-m.is-open .pe-bnd-m__panel { transform: none; opacity: 1; }
.pe-bnd-m__head { display: flex; align-items: center; gap: 12px; padding: 18px 20px 12px; }
.pe-bnd-m__htext { display: flex; flex-direction: column; gap: 3px; flex: 1 1 auto; min-width: 0; }
.pe-bnd-m.pe-bnd-m .pe-bnd-m__title { font-size: 1.2rem; font-weight: 800; line-height: 1.25; color: var(--pe-bnd-ink); }
.pe-bnd-m__count { color: var(--pe-bnd-muted); font-size: .88rem; }
.pe-bnd-m.is-full .pe-bnd-m__count { color: var(--pe-bnd-accent); font-weight: 700; }
.pe-bnd-m.pe-bnd-m .pe-bnd-m__x {
	flex: 0 0 40px; width: 40px; height: 40px; margin: 0; padding: 0; min-height: 0;
	border: 0 !important; border-radius: 50% !important; background: #f4f1f1 !important; color: var(--pe-bnd-ink) !important;
	font-size: 24px; line-height: 40px; text-align: center; cursor: pointer; box-shadow: none;
}
.pe-bnd-m__tools { display: flex; flex-direction: column; gap: 10px; padding: 0 20px 12px; border-bottom: 1px solid var(--pe-bnd-line); }
.pe-bnd-m.pe-bnd-m .pe-bnd-m__search {
	width: 100%; max-width: 100%; height: 44px; margin: 0; padding: 0 16px;
	border: 1px solid var(--pe-bnd-line) !important; border-radius: 999px !important; background: #faf8f8 !important;
	font: inherit; font-size: 16px; color: inherit; box-shadow: none;
}
.pe-bnd-m__search:focus { outline: 2px solid var(--pe-bnd-accent); outline-offset: 1px; background: #fff; }
.pe-bnd-m__chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -20px; padding: 0 20px; }
.pe-bnd-m__chips::-webkit-scrollbar { display: none; }
.pe-bnd-m.pe-bnd-m .pe-bnd-m__chip {
	flex: 0 0 auto; margin: 0; padding: 7px 15px; min-height: 0; line-height: 1.3;
	border: 1px solid var(--pe-bnd-line) !important; border-radius: 999px !important; background: #fff !important; color: var(--pe-bnd-ink) !important;
	font: inherit; font-size: .85rem; text-transform: none; letter-spacing: 0; cursor: pointer; box-shadow: none; white-space: nowrap;
}
.pe-bnd-m.pe-bnd-m .pe-bnd-m__chip.is-on { background: var(--pe-bnd-accent) !important; border-color: var(--pe-bnd-accent) !important; color: #fff !important; }
.pe-bnd-m__body { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; padding: 16px 20px; -webkit-overflow-scrolling: touch; }
.pe-bnd-m__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 12px; }
.pe-bnd-m__empty { padding: 40px 0; text-align: center; color: var(--pe-bnd-muted); }
.pe-bnd-m__empty[hidden] { display: none; }
.pe-bnd-m__opt { position: relative; min-width: 0; }
.pe-bnd-m__opt[hidden] { display: none; }
.pe-bnd-m.pe-bnd-m .pe-bnd-m__pick {
	display: flex; flex-direction: column; align-items: stretch; gap: 7px; width: 100%; height: 100%; margin: 0; padding: 6px 6px 10px; min-height: 0;
	border: 1.5px solid var(--pe-bnd-line) !important; border-radius: var(--pe-bnd-r) !important; background: #fff !important; color: var(--pe-bnd-ink) !important;
	font: inherit; text-align: center; text-transform: none; letter-spacing: 0; line-height: 1.25; cursor: pointer; box-shadow: none;
	transition: border-color .15s, box-shadow .15s;
}
.pe-bnd-m.pe-bnd-m .pe-bnd-m__pick:hover { border-color: color-mix(in srgb, var(--pe-bnd-accent) 45%, var(--pe-bnd-line)) !important; }
.pe-bnd-m.pe-bnd-m .pe-bnd-m__pick:focus-visible { outline: 2px solid var(--pe-bnd-accent); outline-offset: 2px; }
.pe-bnd-m.pe-bnd-m .pe-bnd-m__opt.is-on .pe-bnd-m__pick { border-color: var(--pe-bnd-accent) !important; background: var(--pe-bnd-soft) !important; box-shadow: 0 0 0 1px var(--pe-bnd-accent); }
.pe-bnd-m__img { display: block; aspect-ratio: 1; overflow: hidden; border-radius: calc(var(--pe-bnd-r) - 5px); background: #faf7f7; }
.pe-bnd-m__img img { width: 100%; height: 100%; object-fit: cover; }
.pe-bnd-m__name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .82rem; min-height: 2.5em; }
.pe-bnd-m__price { font-size: .8rem; color: var(--pe-bnd-muted); }
.pe-bnd-m__oos { font-size: .75rem; color: #b42318; }
.pe-bnd-m__badge {
	position: absolute; top: 11px; inset-inline-end: 11px; display: none; min-width: 26px; height: 26px; padding: 0 6px;
	border-radius: 999px; background: var(--pe-bnd-accent); color: #fff; font-size: .8rem; font-weight: 700; line-height: 26px; text-align: center;
	box-shadow: 0 2px 6px rgba(0, 0, 0, .18);
}
.pe-bnd-m__opt.is-on .pe-bnd-m__badge { display: block; }
.pe-bnd-m.pe-bnd-m .pe-bnd-m__minus {
	position: absolute; top: 11px; inset-inline-start: 11px; display: none; width: 28px; height: 28px; margin: 0; padding: 0; min-height: 0;
	border: 0 !important; border-radius: 50% !important; background: rgba(255, 255, 255, .96) !important; color: var(--pe-bnd-ink) !important;
	font-size: 18px; line-height: 28px; text-align: center; cursor: pointer; box-shadow: 0 1px 5px rgba(0, 0, 0, .2);
}
.pe-bnd-m__opt.is-on .pe-bnd-m__minus { display: block; }
.pe-bnd-m.is-full .pe-bnd-m__opt:not(.is-on) .pe-bnd-m__pick { opacity: .45; }
.pe-bnd-m__opt.is-oos .pe-bnd-m__pick { opacity: .4; cursor: not-allowed; }
.pe-bnd-m__opt.is-shake { animation: pe-bnd-shake .35s; }
@keyframes pe-bnd-shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

.pe-bnd-m__foot {
	display: flex; align-items: center; gap: 12px; padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
	border-top: 1px solid var(--pe-bnd-line); background: #fff;
}
.pe-bnd-m__picked { display: flex; gap: 6px; flex: 1 1 auto; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.pe-bnd-m__picked::-webkit-scrollbar { display: none; }
.pe-bnd-m.pe-bnd-m .pe-bnd-m__thumb {
	position: relative; flex: 0 0 42px; width: 42px; height: 42px; margin: 0; padding: 0; min-height: 0;
	border: 1px solid var(--pe-bnd-line) !important; border-radius: 10px !important; background: #fff !important; overflow: hidden; cursor: pointer; box-shadow: none;
}
.pe-bnd-m__thumb img { width: 100%; height: 100%; object-fit: cover; }
.pe-bnd-m__thumb span { position: absolute; top: 1px; inset-inline-end: 1px; width: 16px; height: 16px; border-radius: 50%; background: rgba(0, 0, 0, .6); color: #fff; font-size: 11px; line-height: 16px; text-align: center; }
.pe-bnd-m.pe-bnd-m .pe-bnd-m__done {
	flex: 0 0 auto; min-width: 140px; height: 48px; margin: 0; padding: 0 22px; min-height: 0;
	border: 1.5px solid var(--pe-bnd-accent) !important; border-radius: 999px !important; background: #fff !important; color: var(--pe-bnd-accent) !important;
	font: inherit; font-size: 1rem; font-weight: 700; text-transform: none; letter-spacing: 0; cursor: pointer; box-shadow: none;
}
.pe-bnd-m.pe-bnd-m .pe-bnd-m__done.is-ready { background: var(--pe-bnd-accent) !important; color: #fff !important; }

@media (max-width: 640px) {
	/* Full-screen sheet on phones. */
	.pe-bnd-m.pe-bnd-m { padding: 0; align-items: stretch; }
	.pe-bnd-m__panel { width: 100%; max-height: none; height: 100%; height: 100dvh; border-radius: 0; transform: translateY(24px); }
	.pe-bnd-m__head { padding: 14px 16px 10px; }
	.pe-bnd-m__tools { padding: 0 16px 10px; }
	.pe-bnd-m__chips { margin: 0 -16px; padding: 0 16px; }
	.pe-bnd-m__body { padding: 12px 16px; }
	.pe-bnd-m__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
	.pe-bnd-m__foot { padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); }
	.pe-bnd-m.pe-bnd-m .pe-bnd-m__done { min-width: 120px; }
}

.pe-bnd__toast {
	position: fixed; inset-inline: 16px; bottom: 96px; z-index: 999999; max-width: 420px; margin: 0 auto; padding: 10px 16px;
	border-radius: 12px; background: #1f2328; color: #fff; font-size: .9rem; text-align: center;
	opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity .2s, transform .2s;
}
.pe-bnd__toast.is-on { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	.pe-bnd *, .pe-bnd-m *, .pe-bnd__toast { transition: none !important; animation: none !important; }
}

/* Cart surfaces: components sit under their bundle. */
.pe-bnd-child { padding-inline-start: 22px; }
.pe-bnd-child .pe-bnd-incl, .pe-bnd-incl { color: #6b7280; font-size: .85em; }
.pe-bnd-note { padding: 10px 14px; border: 1px dashed #d0c5c5; border-radius: 10px; color: #6b7280; }

@media (prefers-reduced-motion: reduce) {
	.pe-bnd *, .pe-bnd__toast { transition: none !important; animation: none !important; }
}

/* Block cart / checkout. */
.wc-block-cart .wc-block-cart-items__row.pe-bnd-child .wc-block-cart-item__remove-link { display: none !important; }
.wc-block-cart-items__row.pe-bnd-child .wc-block-cart-item__image { padding-inline-start: 18px; }
.wc-block-cart-items__row.pe-bnd-child .wc-block-components-quantity-selector { border: 0; }
.wc-block-cart-items__row.pe-bnd-child .wc-block-components-quantity-selector__input { pointer-events: none; }

/* Bundles: the contents strip inside a bundle line ("7 פריטים במארז ▾"). */
.pe-bnd-kids { margin: 6px 0 2px; font-size: 12.5px; line-height: 1.3; color: #4b5563; }
.pe-bnd-kids > summary {
	display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 4px 12px 4px 6px;
	list-style: none; cursor: pointer; border-radius: 999px; background: #f5f1f1; user-select: none;
}
.pe-bnd-kids > summary::-webkit-details-marker { display: none; }
.pe-bnd-kids__thumbs { display: inline-flex; flex: none; }
.pe-bnd-kids .pe-bnd-kids__thumbs img {
	width: 22px !important; height: 22px !important; max-width: none; margin: 0 0 0 0; margin-inline-start: -7px;
	border: 1.5px solid #fff; border-radius: 50%; object-fit: cover; background: #eee;
}
.pe-bnd-kids .pe-bnd-kids__thumbs img:first-child { margin-inline-start: 0; }
.pe-bnd-kids__label { font-weight: 600; white-space: nowrap; }
.pe-bnd-kids__chev {
	flex: none; width: 6px; height: 6px; margin-top: -3px; border-bottom: 1.5px solid currentColor; border-inline-end: 1.5px solid currentColor;
	transform: rotate(45deg); transition: transform .15s;
}
.pe-bnd-kids[open] .pe-bnd-kids__chev { transform: rotate(-135deg); margin-top: 3px; }
.pe-bnd-kids > ul { display: flex; flex-direction: column; gap: 5px; margin: 7px 0 0; padding: 0 4px; list-style: none; }
.pe-bnd-kids li { display: flex; align-items: center; gap: 8px; margin: 0; padding: 0; }
.pe-bnd-kids li img { flex: none; width: 26px !important; height: 26px !important; max-width: none; margin: 0; border-radius: 6px; object-fit: cover; }
.pe-bnd-kids li span { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pe-bnd-kids li b { flex: none; font-weight: 600; color: #6b7280; }
