.stpo-product-options {
	margin: 0 0 1rem;
}

.stpo-field {
	margin: 0 0 1rem;
}

.stpo-label-row {
	align-items: center;
	display: flex;
	gap: 12px;
	justify-content: space-between;
	margin: 0 0 0.5rem;
	width: 100%;
}

.stpo-label {
	font-weight: 600;
	margin: 0;
	min-width: 0;
}

.stpo-size-guide-inline {
	flex: 0 0 auto;
	margin-left: auto;
}

.stpo-size-guide-inline .stvnsg {
	margin: 0;
}

.stpo-size-guide-inline .stvnsg__button {
	align-items: center;
	background: transparent;
	border: 0;
	color: inherit;
	display: inline-flex;
	font-size: 0.86rem;
	font-weight: 700;
	gap: 6px;
	letter-spacing: 0.02em;
	line-height: 1;
	padding: 0;
	text-transform: uppercase;
	white-space: nowrap;
}

.stpo-size-guide-inline .stvnsg__icon {
	display: inline-flex;
}

.stpo-size-list {
	display: grid;
	gap: var(--stpo-button-gap, 10px);
	grid-template-columns: repeat(auto-fit, minmax(min(100%, max(var(--stpo-min-width, 90px), 1px)), 1fr));
	grid-auto-rows: 1fr;
	width: 100%;
}

.stpo-size-option {
	cursor: pointer;
	display: block;
	height: 100%;
	margin: 0;
	position: relative;
}

.stpo-size-option input {
	height: 1px;
	opacity: 0;
	position: absolute;
	width: 1px;
}

.stpo-size-option span {
	align-items: center;
	background: #fff;
	border: 1px solid var(--stpo-border-color, #d4d4d4);
	border-radius: var(--stpo-border-radius, 4px);
	box-sizing: border-box;
	color: var(--stpo-text-color, #111);
	flex-direction: column;
	display: flex;
	font-size: 0.95rem;
	gap: 3px;
	height: 100%;
	justify-content: center;
	line-height: 1.2;
	min-height: var(--stpo-min-height, 48px);
	min-width: 0;
	padding: var(--stpo-padding-y, 10px) var(--stpo-padding-x, 16px);
	overflow-wrap: anywhere;
	text-align: center;
	transition: background-color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, color 0.16s ease;
	width: 100%;
}

.stpo-size-option strong {
	display: block;
	font-weight: 600;
	line-height: 1.15;
}

.stpo-size-price {
	color: var(--stpo-price-text-color, #666);
	display: block;
	font-size: 0.76rem;
	font-variant-numeric: tabular-nums;
	font-weight: 500;
	line-height: 1.1;
	margin-top: 0;
	max-width: 100%;
	padding: 0;
	white-space: nowrap;
}

.stpo-size-option input:focus-visible + span {
	box-shadow: 0 0 0 2px var(--stpo-color, #111);
	outline: 2px solid transparent;
}

.stpo-size-option input:checked + span {
	background: var(--stpo-color, #111);
	border-color: var(--stpo-color, #111);
	box-shadow: inset 0 0 0 1px var(--stpo-color, #111);
	color: var(--stpo-selected-text-color, #fff);
}

.stpo-size-option input:checked + span .stpo-size-price {
	color: var(--stpo-selected-text-color, #fff);
}

.stpo-text-control {
	align-items: center;
	border: 1px solid var(--stpo-border-color, #d4d4d4);
	border-radius: var(--stpo-border-radius, 4px);
	display: flex;
	overflow: hidden;
	width: 100%;
}

.stpo-text-control:focus-within {
	border-color: var(--stpo-color, #111);
	box-shadow: 0 0 0 1px var(--stpo-color, #111);
}

.stpo-text-field {
	background: #fff;
	border: 0;
	border-radius: 0;
	color: var(--stpo-text-color, #111);
	flex: 1 1 auto;
	min-height: var(--stpo-min-height, 40px);
	min-width: 0;
	padding: var(--stpo-padding-y, 8px) var(--stpo-padding-x, 12px);
	width: 100%;
	margin: 0;
}

.stpo-text-field:focus {
	box-shadow: none;
	outline: 0;
}

.stpo-text-price {
	align-self: stretch;
	align-items: center;
	background: #f7f7f7;
	border-left: 1px solid var(--stpo-border-color, #d4d4d4);
	color: var(--stpo-price-text-color, #666);
	display: inline-flex;
	flex: 0 0 auto;
	font-size: 0.82rem;
	font-variant-numeric: tabular-nums;
	font-weight: 600;
	justify-content: center;
	line-height: 1.1;
	min-width: 54px;
	padding: 0 12px;
	white-space: nowrap;
}
