/* Inherits the theme's fonts and colors; only adds structure. */
.bgp-cart-form .bgp-field,
.bgp-cart-form .bgp-summary {
	flex: 0 0 100%;
	width: 100%;
	box-sizing: border-box;
}

.bgp-field {
	margin: 0 0 1em;
}

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

.bgp-length-control {
	display: inline-flex;
	align-items: stretch;
	border: 1px solid rgba(0, 0, 0, 0.18);
	border-radius: 8px;
	overflow: hidden;
	max-width: 100%;
}

.bgp-length-control .bgp-step {
	flex: 0 0 auto;
	width: 46px;
	min-height: 46px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: inherit;
	font-size: 1.35em;
	line-height: 1;
	cursor: pointer;
	box-shadow: none;
}

.bgp-length-control .bgp-step:hover:not(:disabled) {
	background: rgba(0, 0, 0, 0.05);
}

.bgp-length-control .bgp-step:disabled {
	opacity: 0.3;
	cursor: not-allowed;
}

.bgp-length-control .bgp-step:focus-visible,
.bgp-length-control .bgp-length-input:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: -3px;
}

.bgp-length-control .bgp-length-input {
	width: 5.5em;
	min-height: 46px;
	margin: 0;
	padding: 0 0.5em;
	border: 0;
	border-inline-start: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: inherit;
	font-size: 1.15em;
	font-weight: 600;
	text-align: center;
	direction: ltr;
}

.bgp-length-control .bgp-unit {
	padding: 0 0.75em;
	border-inline-end: 1px solid rgba(0, 0, 0, 0.12);
	display: flex;
	align-items: center;
	opacity: 0.7;
}

.bgp-notice {
	margin: 0.4em 0 0;
	font-size: 0.875em;
	font-weight: 600;
}

.bgp-notice[hidden] {
	display: none;
}

.bgp-summary {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-start;
	align-items: baseline;
	gap: 0.5em 1em;
	margin: 0 0 1em;
	padding: 0.85em 1em;
	border-radius: 8px;
	background: rgba(0, 0, 0, 0.04);
}

.bgp-total {
	font-size: 1.3em;
}

.bgp-price-suffix {
	font-weight: normal;
	opacity: 0.75;
}
