.wsfc-configurator {
	--wsfc-accent: var(--e-global-color-primary, #cf0a2c);
	--wsfc-border: #d7d7d7;
	--wsfc-muted: #606060;
	margin: 0 0 20px;
}

.wsfc-option-group {
	min-width: 0;
	margin: 0;
	padding: 15px 0;
	border: 0;
	border-bottom: 1px solid var(--wsfc-border);
}

.wsfc-option-group legend {
	display: block;
	width: 100%;
	margin: 0 0 8px;
	padding: 0;
	font-weight: 700;
}

.wsfc-option-group .required {
	color: var(--wsfc-accent);
}

.wsfc-option-group select {
	width: 100%;
	min-height: 44px;
}

.wsfc-option-group__choices {
	display: grid;
	gap: 8px;
}

.wsfc-choice {
	display: flex;
	align-items: flex-start;
	gap: 9px;
	cursor: pointer;
}

.wsfc-choice input {
	margin-top: 4px;
}

.wsfc-option-group--has-images .wsfc-option-group__choices {
	grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.wsfc-option-group--has-images .wsfc-choice {
	display: grid;
	grid-template-columns: 20px 56px minmax(0, 1fr);
	align-items: center;
	min-height: 72px;
	padding: 8px;
	border: 1px solid var(--wsfc-border);
	border-radius: 4px;
	background: #fff;
}

.wsfc-option-group--has-images .wsfc-choice:has(input:checked) {
	border-color: var(--wsfc-accent);
	box-shadow: 0 0 0 1px var(--wsfc-accent);
}

.wsfc-choice__image {
	display: block;
	width: 52px;
	height: 52px;
	border-radius: 3px;
	object-fit: cover;
}

.wsfc-select-image {
	margin-top: 10px;
}

.wsfc-select-image img {
	display: block;
	width: 120px;
	height: 120px;
	border: 1px solid var(--wsfc-border);
	border-radius: 4px;
	object-fit: cover;
}

.wsfc-option-group__error {
	margin: 7px 0 0;
	color: var(--wsfc-accent);
	font-size: .9em;
}

.wsfc-configurator__pricing {
	margin-top: 18px;
	padding: 15px 17px;
	border-left: 4px solid var(--wsfc-accent);
	background: #f5f5f5;
}

.wsfc-configurator__price-row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 20px;
}

.wsfc-configurator__price-row + .wsfc-configurator__price-row {
	margin-top: 9px;
	padding-top: 9px;
	border-top: 1px solid var(--wsfc-border);
}

.wsfc-configurator__price-row strong {
	font-size: 1.25em;
	white-space: nowrap;
}

.wsfc-configurator__price-row--total {
	font-weight: 700;
}

.wsfc-configurator__price-row small {
	font-size: .8em;
	font-weight: 400;
}

.wsfc-configurator__price-row--total strong {
	font-size: 1.4em;
}

@media (max-width: 520px) {
	.wsfc-configurator__price-row {
		align-items: flex-start;
		flex-direction: column;
		gap: 5px;
	}
}
