/* Graviravimas: prekės puslapio laukeliai. Išvaizda paveldima iš temos, stipriau laikomas tik išdėstymas. */

/* Elementor Pro „Add to cart“ ir kintamų prekių eilutė gali būti flex be laužimo: laukeliai užima visą eilutę. */
form.cart:has(> .sgr-fields),
.woocommerce-variation-add-to-cart:has(> .sgr-fields) {
	flex-wrap: wrap;
}

.sgr-fields.sgr-fields {
	display: block;
	flex: 0 0 100%;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	clear: both;
	margin: 0 0 1.25em;
}

.sgr-fields .sgr-field.sgr-field {
	display: block;
	width: 100%;
	margin: 0;
}

.sgr-fields .sgr-field + .sgr-field {
	margin-top: 1em;
}

.sgr-fields .sgr-field .sgr-label.sgr-label {
	display: block;
	width: auto;
	margin: 0 0 0.4em;
	float: none;
}

.sgr-fields .sgr-field .sgr-input.sgr-input {
	display: block;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	margin: 0;
	float: none;
}

.sgr-fields .sgr-field textarea.sgr-input.sgr-input {
	min-height: 6.5em;
	resize: vertical;
}

/* Silpni numatytieji (tema ir Elementor kit gali perrašyti). */
:where(.sgr-fields) .sgr-label {
	font-weight: 600;
	line-height: 1.4;
}

:where(.sgr-fields) .sgr-required {
	margin-left: 0.15em;
}

:where(.sgr-fields) .sgr-input {
	padding: 0.75em 0.9em;
	font: inherit;
	line-height: 1.5;
}

:where(.sgr-fields) .sgr-help {
	margin: 0.4em 0 0;
	font-size: 0.875em;
	line-height: 1.45;
	opacity: 0.8;
}

:where(.sgr-fields) .sgr-count {
	display: block;
	margin-top: 0.35em;
	font-size: 0.8125em;
	line-height: 1.4;
	text-align: right;
	opacity: 0.7;
	font-variant-numeric: tabular-nums;
}

:where(.sgr-fields) .sgr-count.is-full {
	opacity: 1;
	font-weight: 600;
}
