/* Le-Biko — Product pieces shared by the quick view and the product page: price, sale, package picker, buy form. */

/* ==========================================================================
   Product: shared pieces (quick view + full page)
   ========================================================================== */
.lb-name-en { margin: 2px 0 12px; font-size: 15px; font-weight: 300; letter-spacing: .02em; color: var(--lb-muted); text-align: right; }
.lb-facts { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13.5px; font-weight: 300; color: var(--lb-ink-soft); }
.lb-facts span { font-weight: 500; color: var(--lb-ink); margin-inline-end: 4px; }

.lb-chips { border: 0; margin: 0 0 16px; padding: 0; min-width: 0; }
.lb-chips__label { padding: 0; margin-bottom: 8px; font-size: 14px; font-weight: 500; }
.lb-chips__list { display: flex; flex-wrap: wrap; gap: 8px; }
.lb-chip { position: relative; cursor: pointer; }
.lb-chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.lb-chip span {
	display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px;
	border: 1px solid var(--lb-line); border-radius: var(--lb-radius);
	font-size: 14px; font-weight: 400; background: #fff;
	transition: border-color .15s, background-color .15s, color .15s;
}
.lb-chip:hover span { border-color: var(--lb-ink); }
.lb-chip input:checked + span { background: var(--lb-ink); border-color: var(--lb-ink); color: #fff; }
.lb-chip input:focus-visible + span { outline: 2px solid var(--lb-ink); outline-offset: 2px; }

.lb-buy__row { display: flex; gap: 10px; align-items: stretch; }
.lb-buy__submit { flex: 1; margin-top: 0; min-height: 46px; }
.lb-buy__submit:disabled { background: var(--lb-tile); border-color: var(--lb-line); color: var(--lb-muted) !important; cursor: not-allowed; }
.lb-buy__error { margin: 10px 0 0; color: var(--lb-danger); font-size: 13.5px; }
.lb-buy__note { margin: 0 0 16px; font-size: 14px; color: var(--lb-ink-soft); }
.lb-qty { display: flex; align-items: stretch; border: 1px solid var(--lb-line); border-radius: var(--lb-radius); }
.lb-qty__btn { width: 38px; border: 0; background: none; font-size: 18px; cursor: pointer; color: var(--lb-ink); }
.lb-qty__btn:hover { background: var(--lb-tile); }
.lb-qty__input { width: 44px; border: 0; text-align: center; font: inherit; font-size: 15px; -moz-appearance: textfield; }
.lb-qty__input::-webkit-outer-spin-button, .lb-qty__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Sale: badge on the image + old price struck through */
.lb-product__media, .lb-qv__media, .lb-single__gallery { position: relative; }
.lb-sale-badge {
	position: absolute; top: 10px; inset-inline-end: 10px; z-index: 2;
	padding: 3px 9px; border-radius: var(--lb-radius);
	background: var(--lb-danger); color: #fff;
	font-size: 12.5px; font-weight: 500; line-height: 1.5; letter-spacing: .01em;
	pointer-events: none;
}
.lb-price__was { display: block; color: var(--lb-muted); font-size: 13px; font-weight: 400; text-decoration-thickness: 1px; }
.lb-price--sale .lb-price__incl > .woocommerce-Price-amount { color: var(--lb-danger); }
.lb-chip__sale { margin-inline-start: 4px; color: var(--lb-danger); font-size: 11.5px; font-weight: 500; }
.lb-chip input:checked + span .lb-chip__sale { color: #fff; }

/* Buy form: quantity total */
.lb-buy__total { margin: 0 0 10px; font-size: 14.5px; color: var(--lb-ink-soft); font-variant-numeric: tabular-nums; }
.lb-buy__total strong { font-weight: 600; color: var(--lb-ink); }
.lb-buy__total small { font-size: 12px; color: var(--lb-muted); }

/* Price per kg + savings on bigger packages */
.lb-price__unit { font-size: 12.5px; color: var(--lb-muted); }
.lb-chip span { flex-direction: column; justify-content: center; padding-block: 4px; line-height: 1.25; }
.lb-chip__save { display: block; margin-top: 1px; font-size: 11px; font-weight: 500; color: var(--lb-success); line-height: 1.2; }
.lb-chip input:checked + span .lb-chip__save { color: #cfe8d3; }

.lb-buy a.added_to_cart { display: none !important; } /* WooCommerce adds its own "view cart" link; ours is in the confirmation line */
