.agpo-product-options {
	--agpo-switch-width: 3.75rem;
	--agpo-switch-height: 2.125rem;
	--agpo-switch-knob: 1.625rem;
	--agpo-switch-padding: 0.25rem;
	--agpo-switch-off: #ccc;
	--agpo-switch-on: #4caf50;
	--agpo-switch-transition: 0.3s;
	margin: 1rem 0 1.25rem;
}

.agpo-product-options__title {
	margin: 0 0 0.75rem;
}

.agpo-option-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.agpo-option-item {
	margin: 0;
	padding: 0;
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.agpo-option-item:last-child {
	border-bottom: 0;
}

.agpo-option-item__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.75rem 0;
	cursor: pointer;
}

.agpo-option-item__info {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.35rem 0.5rem;
	min-width: 0;
	flex: 1;
}

.agpo-option-item__text {
	font-weight: 500;
	line-height: 1.4;
}

.agpo-option-item__price {
	color: inherit;
	opacity: 0.85;
	font-size: 0.95em;
	white-space: nowrap;
}

/* Toggle switch (checkbox options) */
.agpo-switch {
	position: relative;
	display: inline-block;
	flex-shrink: 0;
	width: var(--agpo-switch-width);
	height: var(--agpo-switch-height);
}

.agpo-switch input.agpo-option-input {
	position: absolute;
	opacity: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	cursor: pointer;
	z-index: 1;
}

.agpo-switch__slider {
	position: absolute;
	inset: 0;
	background-color: var(--agpo-switch-off);
	border-radius: var(--agpo-switch-height);
	transition: background-color var(--agpo-switch-transition);
	pointer-events: none;
}

.agpo-switch__slider::before {
	content: "";
	position: absolute;
	width: var(--agpo-switch-knob);
	height: var(--agpo-switch-knob);
	left: var(--agpo-switch-padding);
	bottom: var(--agpo-switch-padding);
	background: #fff;
	border-radius: 50%;
	transition: transform var(--agpo-switch-transition);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.agpo-switch input.agpo-option-input:checked + .agpo-switch__slider {
	background-color: var(--agpo-switch-on);
}

.agpo-switch input.agpo-option-input:checked + .agpo-switch__slider::before {
	transform: translateX(calc(var(--agpo-switch-width) - var(--agpo-switch-knob) - (var(--agpo-switch-padding) * 2)));
}

.agpo-switch input.agpo-option-input:focus-visible + .agpo-switch__slider {
	outline: 2px solid var(--agpo-switch-on);
	outline-offset: 2px;
}

.agpo-switch input.agpo-option-input:disabled + .agpo-switch__slider {
	opacity: 0.5;
	cursor: not-allowed;
}

/* Radio options (unchanged control, aligned layout) */
.agpo-option-item--radio .agpo-option-item__row {
	cursor: default;
}

.agpo-option-item--radio .agpo-option-item__control {
	flex-shrink: 0;
}

.agpo-option-item--radio .agpo-option-input {
	width: 1.125rem;
	height: 1.125rem;
	margin: 0;
	cursor: pointer;
	accent-color: var(--agpo-switch-on);
}
