/* Furniture calculator styling — DISPLAY ONLY. Scoped to .furniture-calculator so
   panels / non-furniture pages are never affected. No pricing logic here.
   Stage 9A: mirror the panel (ekspopanel) calculator's visual language. */

/* ─── Option group heading (e.g. "Размер изделия *") — like .ep-label ─── */
.furniture-calculator .us-product-option .form-group > .control-label {
	font-size: 14px;
	font-weight: 600;
	color: #222;
	margin-bottom: 7px;
}
.furniture-calculator .us-product-option .form-group > .control-label .required {
	color: #c00;
	margin-right: 3px;
}

/* ─── Value container: horizontal chips with a small gap ─── */
.furniture-calculator .options-box {
	gap: 6px;
}
.furniture-calculator .options-box .radio {
	margin: 0;
	padding: 0;
}

/* ─── Text chip buttons (size, color) — mirror .ep-btn ─── */
.furniture-calculator .options-box .radio label.optid:not(.radio-img) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 8px 14px;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.3;
	border: 1px solid #ddd;
	background: #fff;
	color: #222;
	border-radius: 4px;
	cursor: pointer;
	white-space: nowrap;
	text-align: center;
	transition: border-color .12s, background .12s, color .12s;
}
.furniture-calculator .options-box .radio label.optid.not-selected:not(.radio-img):hover {
	border-color: #999;
	background: #fafafa;
}
.furniture-calculator .options-box .radio label.optid.selected:not(.radio-img) {
	background: #222 !important;
	border-color: #222 !important;
	color: #fff !important;
	font-weight: 600;
}

/* ─── Image swatches (step, insert) — mirror .ep-ins-swatch ─── */
.furniture-calculator .options-box .radio label.optid.radio-img {
	display: block;
	flex: 0 0 auto;
	width: 110px;
	padding: 8px;
	margin: 0;
	border: 1px solid #ddd;
	background: #fff;
	color: #222;
	border-radius: 4px;
	cursor: pointer;
	text-align: center;
	transition: border-color .12s, background .12s;
}
.furniture-calculator .options-box .radio label.optid.radio-img img {
	width: 100%;
	height: auto;
	max-width: none;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: 4px;
}
.furniture-calculator .options-box .radio label.optid.radio-img.not-selected:hover {
	border-color: #999;
	background: #fafafa;
}
.furniture-calculator .options-box .radio label.optid.radio-img.selected {
	background: #fafafa !important;
	border-color: #222 !important;
	color: #222 !important;
	box-shadow: 0 0 0 1px #222;
}

/* ─── Step as text chips (9C.1) — override the swatch look for step only.
   Widget adds .fp-step-text + a .fp-step-mm span; the shared step image is hidden
   here (NOT cleared in the DB, since option 45 is used by non-furniture products). ─── */
.furniture-calculator .options-box .radio label.optid.radio-img.fp-step-text {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: auto;
	padding: 8px 14px;
}
.furniture-calculator .options-box .radio label.optid.fp-step-text img {
	display: none;
}
.furniture-calculator .options-box .radio label.optid.fp-step-text .fp-step-mm {
	font-size: 14px;
	line-height: 1.3;
	white-space: nowrap;
	color: inherit;
}
.furniture-calculator .options-box .radio label.optid.radio-img.fp-step-text.selected {
	background: #222 !important;
	border-color: #222 !important;
	color: #fff !important;
	box-shadow: none;
}

/* ─── Inline total in the buy row (9C.2) — like the panel's "Итого: {N} грн" ─── */
.furniture-calculator .fp-total-inline {
	display: inline-flex;
	align-items: baseline;
	gap: 6px;
	margin: 0 6px;
	white-space: nowrap;
}
.furniture-calculator .fp-total-inline .fp-total-label {
	font-size: 15px;
	color: #222;
}
.furniture-calculator .fp-total-inline .fp-total {
	font-size: 20px;
	font-weight: 700;
	color: #0b8700;
}
