/* H!Tech Opțiuni Produs — se adaptează la tema deschisă sau închisă (folosește currentColor). */
.hpo-options {
	--hpo-accent: #e10a17;
	--hpo-line: color-mix(in srgb, currentColor 22%, transparent);
	--hpo-soft: color-mix(in srgb, currentColor 6%, transparent);
	width: 100%;
	margin: 0 0 18px;
	display: grid;
	gap: 16px;
	clear: both;
}
.hpo-group-label { font-weight: 600; font-size: 14px; margin-bottom: 8px; }
.hpo-group-label abbr.required { color: var(--hpo-accent); text-decoration: none; border: 0; }
.hpo-optional { font-weight: 400; opacity: .6; font-size: 12px; }
.hpo-chosen { font-weight: 400; opacity: .8; }

.hpo-select {
	width: 100%;
	max-width: 360px;
	padding: 10px 12px;
	border: 1px solid var(--hpo-line);
	border-radius: 10px;
	background-color: transparent;
	color: inherit;
	font: inherit;
}
.hpo-select option { color: #111; }

.hpo-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.hpo-choices input[type=radio] { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }

.hpo-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 9px 14px;
	border: 1px solid var(--hpo-line);
	border-radius: 10px;
	background: var(--hpo-soft);
	cursor: pointer;
	font-size: 14px;
	line-height: 1.2;
	transition: border-color .15s, box-shadow .15s;
	user-select: none;
}
.hpo-btn small { opacity: .65; font-size: 12px; }
.hpo-btn:hover { border-color: color-mix(in srgb, currentColor 45%, transparent); }

.hpo-swatch {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--hpo-c);
	border: 2px solid var(--hpo-line);
	cursor: pointer;
	box-shadow: inset 0 0 0 2px rgba(255,255,255,.08);
	transition: transform .12s, box-shadow .15s;
}
.hpo-swatch:hover { transform: scale(1.06); }

.hpo-choices input:checked + .hpo-btn,
.hpo-choices input:checked + .hpo-swatch {
	border-color: var(--hpo-accent);
	box-shadow: 0 0 0 1px var(--hpo-accent);
}
.hpo-choices input:focus-visible + label { outline: 2px solid var(--hpo-accent); outline-offset: 2px; }

.hpo-invalid .hpo-btn, .hpo-invalid .hpo-swatch, .hpo-invalid .hpo-select { border-color: var(--hpo-accent); }
.hpo-error { color: var(--hpo-accent); font-size: 13px; margin-top: 6px; }
.hpo-error:empty { display: none; }

.hpo-total { font-size: 14px; padding-top: 4px; }
.hpo-total strong { font-weight: 700; }
.hpo-total .hpo-sum { color: var(--hpo-accent); }
