/*
 * Tokens are hardcoded to Lux's palette on purpose. Override them on the roots below rather than
 * binding to theme globals, whose meaning changes from site to site. The tints share the accent's
 * blue hue: the salon asked for cool grey in place of the original peach and beige.
 */
.cpm-menu,
.cpm-reviews,
.cpm-rating-line {
	--cpm-ink: #404040;
	--cpm-muted: #6f6f6f;
	--cpm-accent: #19667f;
	--cpm-button: #528599;
	--cpm-button-hover: #19667f;
	--cpm-button-ink: #fcfcfc;
	--cpm-tint: #eff5f8;
	--cpm-tint-strong: #b7cbd4;
	--cpm-line: #dee5e8;
	--cpm-tint-soft: #f7fbfc;
	--cpm-surface: #ffffff;
	--cpm-star: #19667f;
	--cpm-star-shape: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.4l2.9 6 6.5.8-4.8 4.5 1.2 6.5L12 17l-5.8 3.2 1.2-6.5-4.8-4.5 6.5-.8z'/%3E%3C/svg%3E");
}

.cpm-menu {
	margin: 0 0 2.5em;
	color: var(--cpm-ink);
	line-height: 1.5;
}

.cpm-menu *,
.cpm-menu *::before,
.cpm-menu *::after {
	box-sizing: border-box;
}

.cpm-menu .cpm-menu__title {
	margin: 0 0 0.6em;
	padding: 0;
	color: var(--cpm-ink);
}

.cpm-menu__bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75em 1.5em;
	margin-bottom: 1.25em;
}

.cpm-menu__picker {
	display: inline-flex;
	align-items: center;
	gap: 0.6em;
	font-weight: 600;
}

.cpm-menu .cpm-menu__picker select {
	min-width: 9em;
	padding: 0.5em 2.2em 0.5em 0.85em;
	border: 1px solid var(--cpm-tint-strong);
	border-radius: 0;
	background: var(--cpm-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23404040' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 0.8em center;
	color: var(--cpm-ink);
	font: inherit;
	font-weight: 600;
	appearance: none;
	cursor: pointer;
}

.cpm-menu__levels-link {
	color: var(--cpm-accent);
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* position: relative makes this the containing block for the absolutely positioned screen-reader
   labels inside the table. Without it they escape the overflow clipping and, when columns sit
   off to the side, widen the whole page (found live on Hair Color, 2026-10-13). */
.cpm-menu__scroll {
	position: relative;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

/* Divi borders every content table with .entry-content table:not(.variations), so this needs one
   more class than that to win without !important. */
.cpm-menu .cpm-menu__scroll table.cpm-table {
	width: 100%;
	margin: 0;
	border: 0;
	border-collapse: collapse;
	font-size: inherit;
}

.cpm-menu .cpm-table th,
.cpm-menu .cpm-table td {
	padding: 1.1em 0.85em;
	border: 0;
	border-bottom: 1px solid var(--cpm-line);
	color: inherit;
	text-align: left;
	vertical-align: top;
	transition: background-color 0.15s ease, opacity 0.3s ease;
}

/* "Show prices for": the other columns fade back rather than vanish, so the chosen price still
   reads in context and the comparison is one glance away. */
.cpm-menu[data-cpm-picked] .cpm-table [data-col]:not(.is-active) {
	opacity: 0.28;
}

.cpm-menu .cpm-table th:first-child,
.cpm-menu .cpm-table td:first-child {
	padding-left: 0;
}

.cpm-menu .cpm-table thead th {
	padding-top: 0.5em;
	padding-bottom: 0.65em;
	border-bottom: 2px solid var(--cpm-ink);
	color: var(--cpm-muted);
	font-size: 0.78em;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	white-space: nowrap;
}

.cpm-menu .cpm-table .cpm-table__price {
	width: 1%;
	text-align: right;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

.cpm-menu .cpm-table tbody .cpm-table__price {
	font-size: 1.05em;
	font-weight: 600;
}

.cpm-menu .cpm-table .is-active {
	background-color: var(--cpm-tint);
}

.cpm-menu .cpm-table thead .is-active {
	color: var(--cpm-ink);
}

.cpm-menu .cpm-table .cpm-table__book {
	width: 1%;
	padding-right: 0;
	text-align: right;
}

.cpm-menu .cpm-table tbody th {
	font-weight: 400;
}

.cpm-service__name {
	display: block;
	font-size: 1.05em;
	font-weight: 700;
}

.cpm-service__meta {
	display: block;
	color: var(--cpm-muted);
	font-size: 0.82em;
	letter-spacing: 0.03em;
}

.cpm-service__desc {
	display: block;
	max-width: 46em;
	margin-top: 0.35em;
	color: var(--cpm-muted);
	font-size: 0.9em;
}

.cpm-na {
	color: #b6bfc4;
}

.cpm-menu .cpm-book {
	display: inline-block;
	padding: 0.6em 1.25em;
	background: var(--cpm-button);
	color: var(--cpm-button-ink);
	font-size: 0.8em;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-decoration: none;
	text-transform: uppercase;
	white-space: nowrap;
	transition: background-color 0.15s ease;
}

.cpm-menu .cpm-book:hover {
	background: var(--cpm-button-hover);
	color: var(--cpm-button-ink);
}

.cpm-menu a:focus-visible,
.cpm-menu select:focus-visible {
	outline: 2px solid var(--cpm-accent);
	outline-offset: 2px;
}

.cpm-staff {
	margin-top: 2.25em;
}

.cpm-menu .cpm-staff__title {
	margin: 0 0 0.85em;
	padding: 0;
	color: var(--cpm-ink);
	font-size: 1.2em;
}

.cpm-menu .cpm-staff__list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 0.9em;
	margin: 0;
	padding: 0;
	list-style: none;
}

.cpm-menu .cpm-staff__item {
	margin: 0;
	padding: 0;
}

.cpm-menu .cpm-staff__card {
	display: flex;
	flex-direction: column;
	align-items: center;
	height: 100%;
	padding: 1.1em 0.6em 1em;
	border: 1px solid var(--cpm-line);
	background: var(--cpm-surface);
	text-align: center;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

.cpm-menu .cpm-staff__card:hover,
.cpm-menu .cpm-staff__item.is-active .cpm-staff__card {
	border-color: var(--cpm-tint-strong);
	background: var(--cpm-tint);
}

.cpm-menu .cpm-staff__link {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.3em;
	color: inherit;
	text-decoration: none;
}

.cpm-menu a.cpm-staff__link:hover .cpm-staff__name {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.cpm-staff__photo {
	display: grid;
	place-items: center;
	width: 72px;
	height: 72px;
	margin-bottom: 0.35em;
	border-radius: 50%;
	background: var(--cpm-tint);
	color: var(--cpm-muted);
	font-size: 1.4em;
	font-weight: 700;
	object-fit: cover;
}

.cpm-staff__name {
	font-weight: 700;
}

.cpm-staff__level {
	color: var(--cpm-muted);
	font-size: 0.75em;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.cpm-menu .cpm-staff__cta {
	margin-top: auto;
	padding-top: 0.6em;
	color: var(--cpm-accent);
	font-size: 0.8em;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/*
 * width="wide": run past the theme's content column, centred on it, up to 1400px and never closer
 * than 24px to the window edge. 100vw counts the scrollbar, and 24px a side clears it.
 */
.cpm-menu.cpm-menu--wide {
	width: min(1400px, calc(100vw - 48px));
	max-width: none;
	margin-left: calc(50% - min(700px, 50vw - 24px));
}

.cpm-notice {
	padding: 0.8em 1em;
	border-left: 4px solid #d9a441;
	background: #fff8e6;
}

.cpm-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

/*
 * On a phone, seven price columns don't fit. With the script running, only the chosen level's
 * column shows. Without it, the table keeps every column and scrolls sideways instead.
 */
@media (max-width: 720px) {
	.cpm-js[data-cpm-picked] .cpm-table:not(.cpm-table--people) [data-col]:not(.is-active) {
		display: none;
	}

	/*
	 * Level tables become a list: service on the left, the chosen level's price on the right, and
	 * Book under the service. Next to the price it read as "book this level", which it isn't.
	 */
	.cpm-js .cpm-table:not(.cpm-table--people) thead {
		display: none;
	}

	.cpm-js .cpm-table:not(.cpm-table--people) tbody tr {
		display: grid;
		grid-template-columns: 1fr auto;
		column-gap: 1em;
		padding: 1em 0;
		border-bottom: 1px solid var(--cpm-line);
	}

	.cpm-menu.cpm-js .cpm-table:not(.cpm-table--people) tbody th,
	.cpm-menu.cpm-js .cpm-table:not(.cpm-table--people) tbody td {
		display: block;
		padding: 0;
		border: 0;
		background: transparent;
	}

	.cpm-menu.cpm-js .cpm-table:not(.cpm-table--people) tbody .cpm-table__price {
		width: auto;
	}

	.cpm-menu.cpm-js .cpm-table:not(.cpm-table--people) tbody .cpm-table__book {
		grid-column: 1;
		width: auto;
		margin-top: 0.7em;
		text-align: left;
	}

	.cpm-js.cpm-has-levels .cpm-table:not(.cpm-table--people) tbody .cpm-table__price::before {
		content: attr(data-label);
		display: block;
		color: var(--cpm-muted);
		font-size: 0.62em;
		font-weight: 700;
		letter-spacing: 0.08em;
		text-transform: uppercase;
	}

	.cpm-menu .cpm-table th,
	.cpm-menu .cpm-table td {
		padding: 0.95em 0.5em;
	}

	.cpm-menu .cpm-table .is-active {
		background-color: transparent;
	}

	.cpm-menu__bar {
		flex-direction: column;
		align-items: flex-start;
	}

	/* Some Phorest descriptions run to a paragraph, which turns a phone menu into a long scroll.
	   The full text stays in the markup for search engines and wider screens. */
	.cpm-service__desc {
		display: -webkit-box;
		overflow: hidden;
		font-size: 0.85em;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 3;
		line-clamp: 3;
	}

	.cpm-menu .cpm-book {
		padding: 0.55em 0.85em;
	}

	.cpm-menu .cpm-staff__list {
		grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
		gap: 0.6em;
	}

	.cpm-menu .cpm-staff__cta {
		font-size: 0.75em;
	}
}

@media (prefers-reduced-motion: reduce) {
	.cpm-menu * {
		transition: none !important;
	}
}
