/* 23h Product Features – product options and quantity rules. */
.h23pf,
.h23pf-qty-wrap {
	--h23pf-accent: #0f766e;
	--h23pf-line: #dcdcde;
	--h23pf-soft: #f6f7f7;
	--h23pf-err: #c0392b;
}

/* ---------- Formular produs ---------- */

.h23pf { margin: 0 0 1.2em; width: 100%; flex-basis: 100%; }
.h23pf-form { display: flex; flex-wrap: wrap; gap: 14px 4%; margin-bottom: 14px; }
.h23pf-field, .h23pf-heading, .h23pf-sep { flex: 0 0 100%; min-width: 0; }
.h23pf-field.h23pf-w-half { flex-basis: 48%; }
@media (max-width: 600px) { .h23pf-field.h23pf-w-half { flex-basis: 100%; } }

.h23pf-heading-title { display: block; font-weight: 700; font-size: 1.05em; }
.h23pf-sep { height: 1px; background: var(--h23pf-line); margin: 4px 0; }
.h23pf-label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; font-weight: 600; margin: 0 0 6px; }
.h23pf-req { color: var(--h23pf-err); }
.h23pf-desc { margin: -2px 0 8px !important; font-size: .9em; opacity: .75; }

.h23pf-field input[type=text],
.h23pf-field input[type=number],
.h23pf-field input[type=date],
.h23pf-field input[type=password],
.h23pf-field textarea,
.h23pf-field select {
	width: 100%;
	box-sizing: border-box;
	border: 1px solid var(--h23pf-line);
	border-radius: 8px;
	padding: 10px 12px;
	background: #fff;
	font: inherit;
	line-height: 1.4;
	transition: border-color .15s, box-shadow .15s;
}
.h23pf-field input:focus,
.h23pf-field textarea:focus,
.h23pf-field select:focus {
	outline: none;
	border-color: var(--h23pf-accent);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--h23pf-accent) 18%, transparent);
}
.h23pf-field input[type=color] { width: 54px; height: 38px; padding: 3px; border: 1px solid var(--h23pf-line); border-radius: 8px; background: #fff; }

/* Opțiuni ca și carduri */
.h23pf-choices { display: flex; flex-direction: column; gap: 8px; }
.h23pf-choice {
	position: relative; display: flex; align-items: center; gap: 12px; margin: 0 !important;
	padding: 11px 14px; border: 1px solid var(--h23pf-line); border-radius: 10px; background: #fff; cursor: pointer;
	transition: border-color .15s, background .15s, box-shadow .15s;
}
.h23pf-choice:hover { border-color: color-mix(in srgb, var(--h23pf-accent) 50%, var(--h23pf-line)); }
.h23pf-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.h23pf-choice-mark {
	flex: none; width: 20px; height: 20px; border: 2px solid #b4b9be; background: #fff; transition: border-color .15s, background .15s, box-shadow .15s;
}
.h23pf-field--radio .h23pf-choice-mark { border-radius: 50%; }
.h23pf-field--checkbox .h23pf-choice-mark { border-radius: 5px; }
.h23pf-choice-text { flex: 1; min-width: 0; }
.h23pf-choice:has(input:checked) {
	border-color: var(--h23pf-accent);
	background: color-mix(in srgb, var(--h23pf-accent) 6%, #fff);
	box-shadow: 0 0 0 1px var(--h23pf-accent);
}
.h23pf-choice input:checked + .h23pf-choice-mark { border-color: var(--h23pf-accent); background: var(--h23pf-accent); box-shadow: inset 0 0 0 3px #fff; }
.h23pf-field--checkbox .h23pf-choice input:checked + .h23pf-choice-mark {
	box-shadow: none;
	background: var(--h23pf-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.4' d='M3.5 8.5l3 3 6-7'/%3E%3C/svg%3E") center/14px no-repeat;
}
.h23pf-choice input:focus-visible + .h23pf-choice-mark { outline: 2px solid var(--h23pf-accent); outline-offset: 2px; }

.h23pf-select { position: relative; }

/* Erori */
.h23pf-error { color: var(--h23pf-err); font-size: .88em; margin-top: 5px; min-height: 0; }
.h23pf-error:empty { display: none; }
.h23pf-field.is-invalid input,
.h23pf-field.is-invalid textarea,
.h23pf-field.is-invalid select,
.h23pf-field.is-invalid .h23pf-choice { border-color: var(--h23pf-err); }
.h23pf-form-error,
.h23pf-qty-error {
	color: var(--h23pf-err); background: color-mix(in srgb, var(--h23pf-err) 8%, #fff); border-radius: 8px;
	padding: 9px 12px; margin: 0 0 12px; font-size: .92em;
}
.h23pf-qty-error { margin: 8px 0; flex-basis: 100%; }

/* ---------- Butoane − / + ---------- */

.quantity.h23pf-qty-wrap { display: inline-flex !important; align-items: stretch; border: 1px solid var(--h23pf-line); border-radius: 8px; overflow: hidden; background: #fff; }
.quantity.h23pf-qty-wrap input.qty {
	border: 0 !important; border-radius: 0 !important; width: 3.6em !important; text-align: center; margin: 0 !important;
	-moz-appearance: textfield; box-shadow: none !important; background: transparent;
}
.quantity.h23pf-qty-wrap input.qty::-webkit-inner-spin-button,
.quantity.h23pf-qty-wrap input.qty::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.h23pf-qty-btn {
	border: 0 !important; background: var(--h23pf-soft) !important; color: inherit !important; width: 2.4em; min-height: 2.6em;
	font-size: 1.1em; line-height: 1; cursor: pointer; padding: 0 !important; margin: 0 !important; border-radius: 0 !important;
}
.h23pf-qty-btn:hover { background: color-mix(in srgb, var(--h23pf-accent) 12%, #fff) !important; color: var(--h23pf-accent) !important; }

/* Message right above the "Add to cart" button. */
.h23pf .h23pf-form-error {
	display: flex; align-items: center; gap: 8px;
	margin: 12px 0 14px; padding: 10px 12px; font-weight: 600;
	border: 1px solid color-mix(in srgb, var(--h23pf-err) 35%, #fff);
}
.h23pf .h23pf-form-error[hidden] { display: none; }
.h23pf .h23pf-form-error::before {
	content: "!"; flex: none; display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%;
	background: var(--h23pf-err); color: #fff; font-size: 13px; font-weight: 700; line-height: 1;
}
.h23pf-field.is-invalid .h23pf-label { color: var(--h23pf-err); }
.h23pf-shake { animation: h23pf-shake .4s ease-in-out; }
@keyframes h23pf-shake {
	0%, 100% { transform: translateX(0); }
	20%, 60% { transform: translateX(-6px); }
	40%, 80% { transform: translateX(6px); }
}
@media (prefers-reduced-motion: reduce) { .h23pf-shake { animation: none; } }
