/**
 * Frontend styles for ST Extra Options.
 */

.stewo-extra-option {
	display: block;
	margin: 1.1em 0;
	padding: 0;
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 10px;
	background: rgba(0, 0, 0, 0.025);
	box-sizing: border-box;
	transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.stewo-extra-option[hidden] {
	display: none !important;
}

.stewo-extra-option.is-checked {
	border-color: rgba(0, 0, 0, 0.22);
	background: rgba(0, 0, 0, 0.045);
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.stewo-extra-option__inner {
	padding: 0.95em 1.05em;
}

.stewo-extra-option__label {
	display: flex;
	align-items: flex-start;
	gap: 0.75em;
	cursor: pointer;
	font-weight: 600;
	line-height: 1.45;
	margin: 0;
	user-select: none;
}

.stewo-extra-option__checkbox {
	width: 1.15em;
	height: 1.15em;
	margin: 0.15em 0 0;
	flex-shrink: 0;
	cursor: pointer;
	accent-color: currentColor;
}

.stewo-extra-option__checkbox:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.stewo-extra-option__text {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.4em 0.55em;
	min-width: 0;
}

.stewo-extra-option__title {
	font-size: 1em;
}

.stewo-extra-option__price {
	font-weight: 500;
	font-size: 0.92em;
	opacity: 0.88;
}

.stewo-extra-option__description {
	margin: 0.45em 0 0;
	padding-inline-start: 1.9em;
	font-size: 0.9em;
	font-weight: 400;
	line-height: 1.5;
	opacity: 0.78;
}

.stewo-extra-option__price .woocommerce-Price-amount,
.stewo-extra-option__price .amount {
	display: inline;
}

/* Legacy total node (removed from markup; keep hidden if cached HTML remains). */
.stewo-extra-option__total {
	display: none !important;
}

@media (max-width: 480px) {
	.stewo-extra-option__inner {
		padding: 0.85em 0.9em;
	}

	.stewo-extra-option__description {
		padding-inline-start: 0;
		margin-block-start: 0.55em;
	}
}
