.spc-size-fields {
	--spc-accent: #2c6e63;
	--spc-border: #d8d8d8;
	--spc-error: #c0392b;
	--spc-bg: #f7f8f7;

	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: start;
	gap: 10px 12px;
	margin: 8px 0 12px;
	padding: 12px 14px;
	background: var(--spc-bg);
	border: 1px solid #e2e2e2;
	border-radius: 8px;
	direction: rtl;
}

.spc-field {
	display: flex;
	flex-direction: column;
	min-width: 0; /* מאפשר לשדה להתכווץ בתוך עמודת ה-grid בלי "לשבור" את השורה */
}

.spc-field label {
	font-weight: 600;
	font-size: 15px;
	margin-bottom: 4px;
	color: #222;
}

.spc-field label .spc-unit {
	font-weight: 400;
	color: #666;
	font-size: 13px;
}

.spc-field input[type="text"],
.spc-field input[type="number"] {
	padding: 9px 10px;
	border: 1.5px solid var(--spc-border);
	border-radius: 6px;
	font-size: 17px;
	text-align: right;
	background: #fff;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
	min-height: 40px;
}

.spc-field input:focus {
	outline: none;
	border-color: var(--spc-accent);
	box-shadow: 0 0 0 3px rgba(44, 110, 99, 0.15);
}

.spc-field input.spc-invalid {
	border-color: var(--spc-error);
	background: #fff5f5;
}

.spc-field input.spc-invalid:focus {
	box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.15);
}

.spc-range {
	font-size: 12px;
	color: #777;
	margin-top: 3px;
}

.spc-error {
	font-size: 12px;
	color: var(--spc-error);
	margin-top: 3px;
	min-height: 14px;
	font-weight: 500;
}

.spc-price-box {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	grid-column: 1 / -1;
	padding: 8px 16px;
	background: #fff;
	border: 1.5px solid var(--spc-accent);
	border-radius: 8px;
	min-width: 130px;
}

.spc-price-label {
	font-size: 13px;
	color: #555;
	margin-bottom: 2px;
}

.spc-price-value {
	font-size: 28px;
	font-weight: 700;
	color: var(--spc-accent);
	line-height: 1.15;
}

.spc-price-html-note {
	font-size: 14px;
	color: #777;
	font-style: italic;
}

.spc-cart-size-injected {
	font-size: 12px;
	color: #666;
	margin-top: 4px;
}

/* מובייל צר מאוד: מעבר לעמודה אחת, אחרת אורך ורוחב נשארים תמיד באותה שורה */
@media (max-width: 360px) {
	.spc-size-fields {
		grid-template-columns: 1fr;
		gap: 10px;
		padding: 12px;
	}

	.spc-price-box {
		align-items: center;
		text-align: center;
	}
}
