/* Woo Bundle Builder: offer box. Inherits the theme font; colors come from settings via --wbb-accent / --wbb-save. */

.wbb-box {
	--wbb-accent: #e38bae;
	--wbb-save: #5f7a5f;
	--wbb-text: #1f1f1f;
	--wbb-muted: #8a8a8a;
	--wbb-line: #e6e6e6;
	--wbb-tint: color-mix(in srgb, var(--wbb-accent) 8%, #fff);
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin: 22px 0 8px;
	clear: both;
}
.wbb-box[hidden] { display: none !important; }
.wbb-box.is-revealed { animation: wbb-in .35s ease-out; }
@keyframes wbb-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .wbb-box.is-revealed { animation: none; } }

.wbb-box p { margin: 0; }

.wbb-admin-note {
	font-size: 13px;
	line-height: 1.4;
	color: #7a4b00;
	background: #fff4dc;
	border: 1px dashed #e0b45c;
	border-radius: 8px;
	padding: 8px 12px;
}

.wbb-added {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	color: var(--wbb-save);
	background: color-mix(in srgb, var(--wbb-save) 8%, #fff);
	border-radius: 10px;
	padding: 10px 14px;
}
.wbb-added[hidden] { display: none; }
.wbb-check {
	display: grid;
	place-items: center;
	flex: none;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--wbb-save);
	color: #fff;
	font-size: 13px;
}

.wbb-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.wbb-title {
	margin: 0;
	font-size: 15px;
	line-height: 1.3;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--wbb-save);
}
.wbb-badge,
.wbb-save {
	display: inline-block;
	background: var(--wbb-save);
	color: #fff;
	font-weight: 600;
	border-radius: 999px;
	white-space: nowrap;
}
.wbb-badge { font-size: 14px; padding: 4px 14px; }
.wbb-sub { font-size: 14px; color: var(--wbb-muted); }

.wbb-tiers { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.wbb-tiers li {
	font-size: 13px;
	color: var(--wbb-muted);
	border: 2px solid var(--wbb-line);
	border-radius: 999px;
	padding: 3px 12px;
	margin: 0;
}
.wbb-tiers li.is-reached { border-color: var(--wbb-save); color: var(--wbb-save); font-weight: 600; }

.wbb-rows { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.wbb-row {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0;
	padding: 12px;
	border: 2px solid var(--wbb-line);
	border-radius: 12px;
	background: #fff;
	transition: border-color .2s, background-color .2s;
}
.wbb-row.is-added { border-color: var(--wbb-accent); background: var(--wbb-tint); }

.wbb-thumb { flex: none; width: 64px; height: 64px; border-radius: 8px; overflow: hidden; display: block; }
.wbb-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; margin: 0; }

.wbb-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.wbb-name { color: var(--wbb-text); font-size: 15px; line-height: 1.35; text-decoration: none; }
.wbb-name:hover { color: var(--wbb-accent); }
.wbb-prices { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-variant-numeric: tabular-nums; }
.wbb-prices del { color: var(--wbb-muted); font-size: 14px; }
.wbb-prices strong { color: var(--wbb-text); font-size: 17px; font-weight: 700; }
.wbb-save { font-size: 12px; padding: 2px 10px; }
.wbb-save .woocommerce-Price-amount { color: inherit; }

.wbb-btn {
	flex: none;
	appearance: none;
	border: 0;
	border-radius: 8px;
	background: var(--wbb-accent);
	color: #fff;
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	padding: 12px 16px;
	cursor: pointer;
	white-space: nowrap;
	transition: filter .15s;
}
.wbb-btn:hover { filter: brightness(.95); }
.wbb-btn:focus-visible { outline: 2px solid var(--wbb-text); outline-offset: 2px; }
.wbb-btn[disabled] { opacity: .6; cursor: wait; }
.wbb-btn.is-added { background: transparent; color: var(--wbb-accent); cursor: default; padding-inline: 4px; }

.wbb-error { font-size: 14px; color: #b42318; }
.wbb-error[hidden] { display: none; }

@media (max-width: 480px) {
	.wbb-row { flex-wrap: wrap; gap: 10px 12px; }
	.wbb-thumb { width: 56px; height: 56px; }
	.wbb-row .wbb-btn { width: 100%; padding: 12px; }
	.wbb-row .wbb-btn.is-added { text-align: center; }
}

/* ===== Layout B: set cards with photos, under the add-to-cart button ===== */

/* Betheme lays form.cart out as one non-wrapping flex row; let the cards take their own line. */
.woocommerce form.cart:has(.wbb-tiers-box),
.mfn-add-to-cart-buttons-wrapper:has(.wbb-tiers-box) { flex-wrap: wrap; }

.wbb-tiers-box {
	--wbb-accent: #e38bae;
	--wbb-save: #5f7a5f;
	--wbb-text: #1f1f1f;
	--wbb-muted: #8a8a8a;
	--wbb-line: #e6e6e6;
	--wbb-save-tint: color-mix(in srgb, var(--wbb-save) 6%, #fff);
	flex: 0 0 100%;
	order: 50;
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 18px 0 4px;
}
.wbb-tiers-box p { margin: 0; }

.wbb-set-head { display: flex; flex-direction: column; gap: 2px; }
.wbb-set-title { font-size: 16px; font-weight: 700; line-height: 1.3; color: var(--wbb-text); }
.wbb-set-sub { font-size: 13px; line-height: 1.4; color: var(--wbb-muted); }

.wbb-sets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }

.wbb-set {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 5px;
	min-width: 0;
	margin: 0;
	padding: 10px 6px 9px;
	text-align: center;
	background: #fff;
	border: 1.5px solid var(--wbb-line);
	border-radius: 10px;
	cursor: pointer;
	transition: border-color .2s, background-color .2s;
}
.wbb-set-input { position: absolute; opacity: 0; pointer-events: none; }
.wbb-set:has(.wbb-set-input:checked) {
	border-color: var(--wbb-save);
	box-shadow: inset 0 0 0 1px var(--wbb-save);
	background: var(--wbb-save-tint);
}
.wbb-set:has(.wbb-set-input:focus-visible) { outline: 2px solid var(--wbb-text); outline-offset: 2px; }

.wbb-set-tick {
	position: absolute;
	top: 6px;
	right: 6px;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	border: 1.5px solid #cfcfcf;
	background: #fff;
}
.wbb-set:has(.wbb-set-input:checked) .wbb-set-tick {
	border-color: var(--wbb-save);
	background: var(--wbb-save) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='white' stroke-width='2'/%3E%3C/svg%3E") center / 100% no-repeat;
}

.wbb-set-pics { --pic: clamp(22px, 7vw, 30px); display: flex; align-items: center; justify-content: center; gap: 3px; height: 34px; max-width: 100%; }
.wbb-set-stack { display: flex; }
.wbb-set-stack .wbb-set-pic + .wbb-set-pic { margin-left: calc(var(--pic) * -.4); }
.wbb-set-pic {
	flex: none;
	width: var(--pic);
	height: var(--pic);
	border: 2px solid #fff;
	border-radius: 50%;
	overflow: hidden;
	background: #f4f4f4;
	box-shadow: 0 0 0 1px var(--wbb-line);
}
.wbb-set-pic img { width: 100%; height: 100%; object-fit: cover; display: block; margin: 0; }
.wbb-set-plus { flex: none; font-size: 12px; font-weight: 700; color: var(--wbb-muted); }
.wbb-set-more { display: grid; place-items: center; font-size: 10.5px; font-weight: 700; color: var(--wbb-text); background: #eee; }

.wbb-set-label { font-size: 12.5px; font-weight: 600; line-height: 1.25; color: var(--wbb-text); }
.wbb-set-price { font-size: 15px; font-weight: 800; line-height: 1.2; color: var(--wbb-text); font-variant-numeric: tabular-nums; }
.wbb-set-save { font-size: 11.5px; font-weight: 700; color: var(--wbb-save); }
.wbb-set-regular { font-size: 11.5px; color: var(--wbb-muted); }
.wbb-set-price .woocommerce-Price-amount,
.wbb-set-save .woocommerce-Price-amount { color: inherit; }

.wbb-set-summary {
	font-size: 13px;
	line-height: 1.45;
	color: var(--wbb-text);
	background: var(--wbb-save-tint);
	border-radius: 8px;
	padding: 9px 12px;
}
.wbb-set-summary b { color: var(--wbb-save); }

.wbb-set-summary-line { display: block; }

/* Add-to-cart button with a set chosen: two compact lines in one wrapper, button size unchanged. */
/* Same height as before (set inline from the measured height); no vertical padding, lines centered. */
.single_add_to_cart_button.wbb-set-chosen {
	padding-top: 0 !important;
	padding-bottom: 0 !important;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	line-height: 1.1 !important;
}
.single_add_to_cart_button .wbb-btn-label {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 1px;
	line-height: 1.15;
	min-width: 0;
}
.single_add_to_cart_button .wbb-btn-main { line-height: 1.1; white-space: nowrap; }
.single_add_to_cart_button .wbb-btn-sub {
	font-size: 12px;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: 0;
	text-transform: none;
	white-space: nowrap;
	opacity: .95;
}


/* ===== Quantity offer cards (merged from Star Beauty Quantity Pricing, same look) ===== */

.wbb-qty { --wbb-accent: #e38bae; --wbb-save: #5f7a5f; margin: 0 0 22px; display: flex; flex-direction: column; }
.wbb-qty p { margin: 0 0 10px; }
.wbb-qty-title { font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--wbb-save); margin: 0 0 14px; }
.wbb-qty-grid { display: grid; gap: 10px; padding-top: 10px; overflow: visible; }
.wbb-qty-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wbb-qty-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wbb-qty-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.wbb-qty-cols-auto { grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); }
/* !important beats Betheme's global button styles. */
.wbb-qty button.wbb-qty-card {
	position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px;
	width: 100%; height: auto; margin: 0; padding: 18px 6px 12px;
	border: 1.5px solid #e6e6e6; border-radius: 10px; background: #fff !important; color: #333 !important;
	font: inherit; text-transform: none; letter-spacing: normal; line-height: 1.3;
	cursor: pointer; box-shadow: none; overflow: visible !important; transition: border-color .15s, background-color .15s;
}
.wbb-qty button.wbb-qty-card:hover { border-color: var(--wbb-accent); }
.wbb-qty button.wbb-qty-card.is-active {
	border-color: var(--wbb-accent);
	background: color-mix(in srgb, var(--wbb-accent) 8%, #fff) !important;
	box-shadow: 0 0 0 1px var(--wbb-accent);
}
.wbb-qty button.wbb-qty-card:focus-visible { outline: 2px solid #1f1f1f; outline-offset: 2px; }
.wbb-qty-label { font-size: 13px; color: #777; }
.wbb-qty-price { font-size: 19px; font-weight: 700; color: #222; }
.wbb-qty-unit { font-size: 12px; color: #999; }
.wbb-qty-badge {
	position: absolute; z-index: 2; top: -10px; left: 50%; transform: translateX(-50%);
	white-space: nowrap; line-height: 1.5; background: var(--wbb-save); color: #fff;
	font-size: 11px; font-weight: 600; padding: 2px 9px; border-radius: 20px;
}
.wbb-qty .woocommerce-Price-amount { color: inherit; font-weight: inherit; }
@media (max-width: 480px) {
	.wbb-qty-grid { gap: 6px; }
	.wbb-qty button.wbb-qty-card { padding: 16px 3px 10px; gap: 2px; }
	.wbb-qty-label { font-size: 12px; }
	.wbb-qty-price { font-size: 16px; }
	.wbb-qty-unit { font-size: 10.5px; }
	.wbb-qty-bl { display: none; }
	.wbb-qty-badge { font-size: 10px; padding: 1px 7px; top: -9px; }
	.wbb-qty-badge::before { content: "-"; }
}

/* ===== Layout C: build your own set, under the add-to-cart button ===== */

.woocommerce form.cart:has(.wbb-builder-box),
.mfn-add-to-cart-buttons-wrapper:has(.wbb-builder-box) { flex-wrap: wrap; }

.wbb-builder-box {
	--wbb-accent: #e38bae;
	--wbb-save: #5f7a5f;
	--wbb-text: #1f1f1f;
	--wbb-muted: #8a8a8a;
	--wbb-line: #e6e6e6;
	--wbb-save-tint: color-mix(in srgb, var(--wbb-save) 6%, #fff);
	flex: 0 0 100%;
	order: 50;
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 18px 0 4px;
}
.wbb-builder-box p { margin: 0; }

.wbb-builder-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.wbb-builder-title { font-size: 16px; font-weight: 700; line-height: 1.3; color: var(--wbb-text); }
.wbb-builder-badge { background: var(--wbb-save); color: #fff; font-size: 13px; font-weight: 600; border-radius: 999px; padding: 3px 12px; white-space: nowrap; }

.wbb-progress { display: flex; flex-direction: column; gap: 6px; }
.wbb-progress-msg { font-size: 13.5px; color: var(--wbb-text); }
.wbb-progress-msg b { color: var(--wbb-save); }
.wbb-progress-track { position: relative; height: 8px; border-radius: 99px; background: #eee; overflow: hidden; }
.wbb-progress-fill { position: absolute; inset: 0 auto 0 0; border-radius: 99px; background: var(--wbb-save); transition: width .3s; }
.wbb-progress-steps { display: flex; justify-content: space-between; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: 11.5px; color: var(--wbb-muted); }
.wbb-progress-steps li { margin: 0; }
.wbb-progress-steps li.is-reached { color: var(--wbb-save); font-weight: 700; }

.wbb-picks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.wbb-pick {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
	min-width: 0;
	margin: 0;
	padding: 10px;
	background: #fff;
	border: 1.5px solid var(--wbb-line);
	border-radius: 10px;
	cursor: pointer;
	transition: border-color .2s, background-color .2s;
}
.wbb-pick-input { position: absolute; opacity: 0; pointer-events: none; }
.wbb-pick:has(.wbb-pick-input:checked) { border-color: var(--wbb-save); box-shadow: inset 0 0 0 1px var(--wbb-save); background: var(--wbb-save-tint); }
.wbb-pick:has(.wbb-pick-input:focus-visible) { outline: 2px solid var(--wbb-text); outline-offset: 2px; }

.wbb-pick-img { display: block; width: 100%; aspect-ratio: 4 / 3; max-width: 100%; border-radius: 8px; overflow: hidden; background: #f4f4f4; }
.wbb-pick-img img { width: 100%; height: 100%; object-fit: cover; display: block; margin: 0; }
.wbb-pick-name { font-size: 13px; line-height: 1.3; color: var(--wbb-text); }
.wbb-pick-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; font-size: 13px; font-variant-numeric: tabular-nums; }
.wbb-pick-price strong { font-size: 14px; font-weight: 700; color: var(--wbb-text); }
.wbb-pick-price del { color: var(--wbb-muted); font-size: 12px; }
.wbb-pick-price .woocommerce-Price-amount { color: inherit; }

.wbb-pick-btn {
	margin-top: auto;
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
	border-radius: 6px;
	padding: 8px 10px;
	background: var(--wbb-accent);
	color: #fff;
}
.wbb-pick-added { display: none; }
.wbb-pick:has(.wbb-pick-input:checked) .wbb-pick-btn { background: transparent; color: var(--wbb-save); box-shadow: inset 0 0 0 1.5px var(--wbb-save); }
.wbb-pick:has(.wbb-pick-input:checked) .wbb-pick-add { display: none; }
.wbb-pick:has(.wbb-pick-input:checked) .wbb-pick-added { display: inline; }

.wbb-builder-total {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 10px;
	padding: 10px 12px;
	border-radius: 8px;
	background: var(--wbb-save-tint);
	font-size: 13px;
	color: var(--wbb-text);
	font-variant-numeric: tabular-nums;
}
.wbb-builder-amounts { display: inline-flex; align-items: baseline; gap: 6px; margin-left: auto; }
.wbb-builder-regular { color: var(--wbb-muted); }
.wbb-builder-sum { font-size: 17px; font-weight: 700; }
.wbb-builder-save { flex-basis: 100%; text-align: right; color: var(--wbb-save); font-weight: 700; }
.wbb-builder-regular[hidden], .wbb-builder-save[hidden] { display: none; }
.wbb-builder-box .woocommerce-Price-amount { color: inherit; }

/* ===== Many extras: "Δες άλλα", hints, 2-line names, short step labels ===== */

.wbb-pick[hidden], .wbb-row[hidden] { display: none !important; }

/* Text-style button; !important beats Betheme's global button styles. */
.wbb-builder-box button.wbb-more,
.wbb-box button.wbb-more {
	align-self: center;
	width: auto;
	height: auto;
	margin: 0;
	padding: 8px 14px !important;
	background: transparent !important;
	color: var(--wbb-save) !important;
	border: 1.5px dashed color-mix(in srgb, var(--wbb-save) 45%, #fff) !important;
	border-radius: 999px;
	box-shadow: none !important;
	font: inherit;
	font-size: 13.5px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: normal;
	text-transform: none;
	cursor: pointer;
}
.wbb-builder-box button.wbb-more:hover,
.wbb-box button.wbb-more:hover { border-style: solid !important; }
.wbb-builder-box button.wbb-more:focus-visible,
.wbb-box button.wbb-more:focus-visible { outline: 2px solid var(--wbb-text); outline-offset: 2px; }

.wbb-pick-hint { font-size: 11.5px; font-weight: 600; color: var(--wbb-save); min-height: 1em; }
.wbb-pick-hint:empty { display: none; }

.wbb-pick-name,
.wbb-box .wbb-name {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.wbb-pick-name { min-height: 2.6em; } /* Two lines, so cards in a row line up. */

.wbb-step-short { display: none; }
@media (max-width: 400px) {
	.wbb-step-full { display: none; }
	.wbb-step-short { display: inline; }
}
