/**
 * JezPress Woo Variable Weight — frontend styles
 *
 * @package JezPress\WooVariableWeight
 * @since   1.0.0
 */

.jwvw-add-to-cart {
	margin: 1.5em 0;
}

.jwvw-price-headline {
	font-size: 1.6em;
	line-height: 1.2;
	margin-bottom: 1em;
}

.jwvw-per-kg-amount {
	font-weight: 600;
}

.jwvw-per-kg-unit {
	font-size: 0.65em;
	color: #666;
	margin-left: 0.4em;
	font-weight: 400;
}

.jwvw-weight-row {
	margin-bottom: 1em;
}

.jwvw-weight-label {
	display: block;
	margin-bottom: 0.5em;
	font-weight: 600;
}

.jwvw-controls {
	display: flex;
	align-items: center;
	gap: 1em;
	flex-wrap: wrap;
}

.jwvw-weight-slider {
	flex: 1 1 200px;
	min-width: 0;
	height: 1.75em;
	cursor: pointer;
}

.jwvw-weight-slider:focus-visible {
	outline: 2px solid #2271b1;
	outline-offset: 2px;
}

.jwvw-input-wrap {
	display: inline-flex;
	align-items: center;
	gap: 0.25em;
}

.jwvw-weight-input {
	width: 5.5em;
	padding: 0.45em 0.6em;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 1em;
	text-align: right;
	-moz-appearance: textfield;
}

.jwvw-weight-input::-webkit-outer-spin-button,
.jwvw-weight-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.jwvw-weight-input:focus-visible {
	outline: 2px solid #2271b1;
	outline-offset: 1px;
	border-color: #2271b1;
}

.jwvw-unit {
	color: #555;
	font-size: 0.95em;
}

.jwvw-tolerance-disclosure {
	background: #f5f5f5;
	border-left: 3px solid #2271b1;
	padding: 0.6em 1em;
	margin: 1em 0;
	font-size: 0.95em;
	color: #1d2327;
	border-radius: 0 4px 4px 0;
}

.jwvw-tolerance-lower,
.jwvw-tolerance-upper {
	font-weight: 600;
	white-space: nowrap;
}

.jwvw-estimate-row {
	display: flex;
	align-items: baseline;
	gap: 0.75em;
	margin: 1em 0 0.5em;
	flex-wrap: wrap;
}

.jwvw-estimate-label {
	color: #555;
}

.jwvw-estimate-amount {
	font-weight: 600;
	font-size: 1.3em;
}

.jwvw-final-note {
	font-size: 0.85em;
	color: #555;
	margin: 0.25em 0 1.25em;
	line-height: 1.4;
}

.jwvw-add-to-cart-button {
	padding: 0.75em 2em;
}

.jwvw-not-configured {
	background: #fff8e1;
	border: 1px solid #f0d480;
	padding: 1em;
	border-radius: 4px;
	margin: 1em 0;
}

@media (max-width: 480px) {
	.jwvw-controls {
		flex-direction: column;
		align-items: stretch;
	}

	.jwvw-weight-slider {
		width: 100%;
	}

	.jwvw-input-wrap {
		justify-content: flex-end;
	}

	.jwvw-add-to-cart-button {
		width: 100%;
	}
}
