/* Retreat Commerce Enhancer - Frontend checkout widget styles */

.rce-wellness-options {
	--rce-accent: #2271b1;
	--rce-border: #e5e7eb;
	--rce-bg: #ffffff;
	--rce-bg-selected: #eef6ff;
	--rce-text: #1f2937;
	--rce-text-muted: #6b7280;

	margin: 20px 0;
	padding: 20px 22px 22px;
	border: 1px solid var(--rce-border);
	border-radius: 10px;
	background: #fafbfc;
	font-family: inherit;
}

.rce-wellness-options__title {
	margin: 0 0 14px;
	font-size: 16px;
	font-weight: 600;
	color: var(--rce-text);
}

.rce-wellness-options__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.rce-wellness-options__item {
	border: 1px solid var(--rce-border);
	border-radius: 8px;
	background: var(--rce-bg);
	transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
	overflow: hidden;
}

.rce-wellness-options__item:hover {
	border-color: #c7d2e0;
}

.rce-wellness-options__item--selected {
	border-color: var(--rce-accent);
	background: var(--rce-bg-selected);
	box-shadow: 0 0 0 1px var(--rce-accent) inset;
}

.rce-wellness-options__item label {
	display: flex;
	align-items: center;
	gap: 12px;
	cursor: pointer;
	font-weight: 500;
	padding: 12px 14px;
	margin: 0;
	color: var(--rce-text);
}

/* Custom checkbox - the native input stays in the DOM and accessible
   (focusable, screen-reader friendly) but is visually replaced by a styled
   box, since bare native checkboxes render inconsistently across browsers
   and themes. */
.rce-wellness-options__checkbox {
	appearance: none;
	-webkit-appearance: none;
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	border: 2px solid #c7d2e0;
	border-radius: 5px;
	background: #fff;
	position: relative;
	cursor: pointer;
	margin: 0;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

.rce-wellness-options__checkbox:hover {
	border-color: var(--rce-accent);
}

.rce-wellness-options__checkbox:checked {
	background: var(--rce-accent);
	border-color: var(--rce-accent);
}

.rce-wellness-options__checkbox:checked::after {
	content: '';
	position: absolute;
	left: 6px;
	top: 2px;
	width: 5px;
	height: 10px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.rce-wellness-options__checkbox:focus-visible {
	outline: 2px solid var(--rce-accent);
	outline-offset: 2px;
}

.rce-wellness-options__image {
	width: 36px;
	height: 36px;
	object-fit: cover;
	border-radius: 6px;
	flex: 0 0 auto;
}

.rce-wellness-options__icon {
	font-size: 20px;
	flex: 0 0 auto;
	color: var(--rce-accent);
}

.rce-wellness-options__name {
	flex: 1 1 auto;
}

.rce-wellness-options__price {
	font-weight: 600;
	color: var(--rce-accent);
	white-space: nowrap;
}

.rce-wellness-options__description {
	margin: 0;
	padding: 0 14px 12px 46px;
	font-size: 13px;
	line-height: 1.5;
	color: var(--rce-text-muted);
}

.rce-wellness-options__running-total {
	margin: 16px 0 0;
	padding-top: 12px;
	border-top: 1px solid var(--rce-border);
	font-weight: 600;
	text-align: right;
	color: var(--rce-text);
}

.rce-wellness-options__running-total-value {
	color: var(--rce-accent);
}

.rce-wellness-options__hint {
	font-size: 12px;
	color: var(--rce-text-muted);
	margin: 8px 2px 0;
}
