/* ==========================================================================
   Revive Price Lists — front end
   Colours and fonts come from the Revive Hair theme, with fallbacks so the
   plugin still looks right on its own. Change the --rhp-* values to restyle.
   ========================================================================== */
.rhp {
	--rhp-ink:        var(--rh-color-ink, #2c2c2a);
	--rhp-muted:      var(--rh-color-muted, #6e6a62);
	--rhp-accent:     var(--rh-color-deep, #5d6b51);      /* sub-headings, selected level */
	--rhp-on-accent:  var(--rh-color-cloud, #fbf8f2);
	--rhp-rule:       var(--rh-color-sage, #a9b79a);      /* lines under sub-headings and above notes */
	--rhp-line:       rgb(44 44 42 / 0.14);               /* the 1px line between services */
	--rhp-hover:      rgb(217 207 184 / 0.3);             /* soft Warm oak row highlight */
	--rhp-head-bg:    var(--rh-color-whitewood, #f2ecdf); /* your section background: fills the gap under the header while the bar is pinned */
	--rhp-bar-bg:     var(--rhp-accent);                  /* the Service bar (and the stylist pills on phones) */
	--rhp-bar-ink:    var(--rhp-on-accent);               /* text on the bar */
	--rhp-bar-radius: 0.75rem;
	--rhp-heading-font: var(--rh-font-heading, Georgia, serif);
	--rhp-body-font:  var(--rh-font-body, inherit);
	--rhp-ease:       var(--rh-ease, cubic-bezier(0.22, 1, 0.36, 1));
	--rhp-edge:       clamp(1rem, 0.55rem + 1.2vw, 1.75rem); /* space between the table's edges and the text */
	/* Where the column headings stick: just under the floating header. The script measures
	   the header and sets --rhp-sticky-js; the calc() is the fallback. */
	--rhp-sticky:     var(--rhp-sticky-js, calc(var(--rh-sticky-top, 0px) + var(--rh-admin-bar, 0px)));
	--rhp-sticky-gap: clamp(0.75rem, 0.5rem + 0.8vw, 1.25rem); /* gap between the header and the pinned bar */

	color: var(--rhp-ink);
	font-family: var(--rhp-body-font);
}

.rhp-sr {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0); clip-path: inset(50%);
	white-space: nowrap; border: 0;
}

/* ---- Intro ---- */
.rhp-intro {
	max-width: var(--rhp-intro-width, none); /* full width; set e.g. --rhp-intro-width: 70ch to limit it */
	padding-inline: var(--rhp-edge);
	margin-bottom: 2rem;
	font-size: var(--rhp-intro-size, 1.05rem);
	line-height: 1.7;
}
.rhp-intro p:last-child { margin-bottom: 0; }

/* "All prices shown are starting prices" */
.rhp-from-note {
	margin: 0 0 0.25rem;
	padding-inline: var(--rhp-edge);
	color: var(--rhp-muted);
	font-size: 0.82rem;
	letter-spacing: 0.04em;
	text-align: right;
}

/* ---- Table ---- */
.rhp-table {
	width: 100%;
	border-collapse: separate; /* needed for sticky headings */
	border-spacing: 0;
	margin: 0;
	font-variant-numeric: lining-nums tabular-nums; /* prices line up neatly */
}
.rhp-table th,
.rhp-table td {
	border: 0;
	background: transparent;
	text-align: left;
	vertical-align: middle;
}

.rhp-table thead th {
	position: sticky;
	top: calc(var(--rhp-sticky) + var(--rhp-sticky-gap));
	z-index: 2;
	background: transparent;
	padding: var(--rhp-bar-pad, 1.05rem) 0.75rem;
	color: var(--rhp-bar-ink);
	font-family: var(--rhp-body-font);
	font-size: var(--rhp-bar-size, 0.8rem);
	font-weight: 400;
	letter-spacing: 0.08em;
	line-height: 1.35;
	text-transform: var(--rhp-bar-case, none);
	isolation: isolate;
}
/* The green bar itself, drawn behind the column names with rounded ends */
.rhp-table thead th::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: var(--rhp-bar-bg);
}
.rhp-table thead th:first-child::before { border-radius: var(--rhp-bar-radius) 0 0 var(--rhp-bar-radius); }
.rhp-table thead th:last-child::before  { border-radius: 0 var(--rhp-bar-radius) var(--rhp-bar-radius) 0; }
.rhp-table thead th:only-child::before  { border-radius: var(--rhp-bar-radius); }
.rhp-table thead .rhp-table__price { text-align: center; min-width: 6.5rem; }
.rhp-table thead .rhp-table__service { padding-left: var(--rhp-edge); }
.rhp-table thead th:last-child { padding-right: var(--rhp-edge); }

/* Pinned under the header: a gap in your section colour sits between the header
   and the bar, and the rows slide away underneath it. */
.rhp.is-pinned .rhp-table thead th,
.rhp.is-pinned .rhp-levels {
	background-color: var(--rhp-head-bg);
	box-shadow: 0 calc(-1 * var(--rhp-sticky-gap) - 2px) 0 var(--rhp-head-bg);
}

/* Sticky bar switched off under Customise */
.rhp--nosticky .rhp-table thead th { position: relative; top: auto; }
.rhp.rhp--nosticky .rhp-levels { position: relative; top: auto; }

/* Sub-headings */
.rhp-group__head th {
	padding: 2.5rem var(--rhp-edge) 0.7rem;
	border-bottom: 1px solid var(--rhp-rule);
	color: var(--rhp-accent);
	font-family: var(--rhp-heading-font);
	font-optical-sizing: auto;
	font-variation-settings: "SOFT" 0, "WONK" 0;
	font-size: var(--rhp-group-size, clamp(1.35rem, 1.1rem + 0.9vw, 1.75rem));
	font-weight: 400;
	line-height: 1.2;
}
.rhp-table thead + .rhp-group .rhp-group__head th { padding-top: 1.75rem; }

/* Services */
.rhp-table .rhp-row > * {
	padding: var(--rhp-row-pad, 1.05rem) 0.75rem;
	border-bottom: 1px solid var(--rhp-line);
	transition: background-color var(--rh-dur, 0.45s) var(--rhp-ease);
}
.rhp-table .rhp-row > th { padding-left: var(--rhp-edge); }
.rhp-table .rhp-row > :last-child { padding-right: var(--rhp-edge); }
.rhp-table .rhp-group .rhp-row:last-child > * { border-bottom-color: transparent; } /* the next sub-heading has its own line */
.rhp-row:hover > * { background-color: var(--rhp-hover); }

.rhp-row__name {
	display: block;
	font-size: var(--rhp-name-size, 1.02rem);
	font-weight: 400;
	line-height: 1.4;
}
/* Footnote markers: *, †, ‡ */
.rhp-mark {
	margin-left: 0.15em;
	color: var(--rhp-accent);
	font-size: 0.72em;
	font-weight: 400;
	line-height: 0;
	vertical-align: 0.55em;
	letter-spacing: 0.04em;
}
.rhp-note__title .rhp-mark {
	margin: 0 0.3em 0 0;
	font-family: var(--rhp-body-font);
	font-size: 0.8em;
	vertical-align: 0.3em;
}

.rhp-row__desc {
	display: block;
	margin-top: 0.2rem;
	color: var(--rhp-muted);
	font-size: var(--rhp-desc-size, 0.85rem);
	font-weight: 400;
	line-height: 1.45;
}

.rhp-row__price {
	text-align: center !important;
	white-space: nowrap;
	font-size: var(--rhp-price-size, 1.02rem);
}
.rhp-amount { display: block; }
.rhp-from {
	display: block;
	color: var(--rhp-muted);
	font-size: 0.7rem;
	letter-spacing: 0.08em;
	line-height: 1.3;
}
.rhp-from { margin-bottom: 0.15rem; }
.rhp-row__price--none { color: var(--rhp-muted); }

/* ---- Notes ---- */
.rhp-notes {
	display: grid;
	padding-inline: var(--rhp-edge);
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
	gap: 1.5rem 2.5rem;
	margin-top: 2.75rem;
}
.rhp-note {
	padding-top: 1rem;
	border-top: 1px solid var(--rhp-rule);
	font-size: var(--rhp-note-size, 0.92rem);
	line-height: 1.65;
}
.rhp-note--list { grid-column: 1 / -1; }
.rhp-note__title {
	margin: 0 0 0.4rem;
	color: var(--rhp-accent);
	font-family: var(--rhp-heading-font);
	font-optical-sizing: auto;
	font-variation-settings: "SOFT" 0, "WONK" 0;
	font-size: var(--rhp-note-title-size, 1.15rem);
	font-weight: 400;
	line-height: 1.3;
}
.rhp-note p { margin: 0 0 0.6em; }
.rhp-note p:last-child { margin-bottom: 0; }
.rhp-note ul { margin: 0.4em 0 0.8em; padding-left: 1.2em; }
.rhp-note li { margin-bottom: 0.35em; }

/* ---- Stylist level pills (phones) ---- */
.rhp-levels { display: none; }

.rhp-levels__btn {
	flex: 0 0 auto;
	margin: 0;
	padding: 0.55em 1.1em;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--rhp-bar-ink);
	font-family: var(--rhp-body-font);
	font-size: var(--rhp-pill-size, 0.875rem);
	letter-spacing: 0.04em;
	line-height: 1.3;
	white-space: nowrap;
	cursor: pointer;
	min-height: 40px;
	transition:
		background-color var(--rh-dur, 0.45s) var(--rhp-ease),
		color var(--rh-dur, 0.45s) var(--rhp-ease);
}
.rhp-levels__btn:hover { background-color: rgb(255 255 255 / 0.12); }
.rhp-levels__btn[aria-pressed="true"] {
	background-color: var(--rhp-bar-ink);
	color: var(--rhp-bar-bg);
}
.rhp-levels__btn:focus-visible { outline: 2px solid var(--rhp-bar-ink); outline-offset: -4px; }

@media screen and (max-width: 719.98px) {
	.rhp--multi .rhp-levels {
		position: sticky;
		top: calc(var(--rhp-sticky) + var(--rhp-sticky-gap));
		z-index: 3;
		display: block;
		margin: 0 0 0.25rem;
		background: transparent;
	}
	.rhp-levels__track {
		display: flex;
		gap: 0.25rem;
		padding: 0.35rem;
		overflow-x: auto;
		scrollbar-width: none;
		border-radius: 999px;
		background: var(--rhp-bar-bg);
	}
	.rhp-levels__track::-webkit-scrollbar { display: none; }

	/* "More levels this way" arrows, added by the script when the row overflows */
	.rhp-levels__more {
		position: absolute;
		top: 0;
		right: 0;
		bottom: 0;
		display: flex;
		align-items: center;
		justify-content: flex-end;
		width: 3.5rem;
		margin: 0;
		padding: 0 0.85rem 0 0;
		border: 0;
		border-radius: 0 999px 999px 0;
		background: linear-gradient(to right, transparent, var(--rhp-bar-bg) 60%);
		color: var(--rhp-bar-ink);
		cursor: pointer;
		opacity: 0;
		pointer-events: none;
		transition: opacity 0.35s var(--rhp-ease);
		-webkit-tap-highlight-color: transparent;
	}
	.rhp-levels__more--prev { right: auto; left: 0; transform: scaleX(-1); } /* mirror image */
	.rhp-levels__more svg { width: 0.9rem; height: 0.9rem; display: block; }
	.rhp-levels.has-next .rhp-levels__more--next,
	.rhp-levels.has-prev .rhp-levels__more--prev { opacity: 1; pointer-events: auto; }
	.rhp-levels__more:focus-visible { outline: 2px solid var(--rhp-bar-ink); outline-offset: -4px; }

	/* One gentle nudge to show the row scrolls */
	.rhp-levels.is-nudging .rhp-levels__btn { animation: rhp-nudge 1.5s var(--rhp-ease); }
	.rhp-levels.is-nudging .rhp-levels__more--next svg { animation: rhp-arrow 1.5s var(--rhp-ease); }

	/* The pills replace the column headings */
	.rhp-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

	/* Show only the chosen level's prices */
	.rhp--multi .rhp-row__price[data-col] { display: none; }
	.rhp[data-level="0"] .rhp-row__price[data-col="0"],
	.rhp[data-level="1"] .rhp-row__price[data-col="1"],
	.rhp[data-level="2"] .rhp-row__price[data-col="2"],
	.rhp[data-level="3"] .rhp-row__price[data-col="3"],
	.rhp[data-level="4"] .rhp-row__price[data-col="4"],
	.rhp[data-level="5"] .rhp-row__price[data-col="5"],
	.rhp[data-level="6"] .rhp-row__price[data-col="6"],
	.rhp[data-level="7"] .rhp-row__price[data-col="7"] { display: table-cell; }

	.rhp-table .rhp-row > * { padding-block: var(--rhp-row-pad, 0.95rem); }
	.rhp-table .rhp-row__price { text-align: right !important; padding-right: var(--rhp-edge); width: 1%; }
	.rhp-from-note { text-align: left; margin-top: 0.25rem; }
	.rhp-group__head th { padding-top: 2rem; }
	.rhp-table thead + .rhp-group .rhp-group__head th { padding-top: 1rem; }

	/* Prices settle in softly when switching level */
	.rhp.is-switching .rhp-row__price { animation: rhp-switch 0.6s var(--rhp-ease); }
}

@keyframes rhp-nudge {
	0%, 100% { transform: none; }
	30%      { transform: translateX(-1.25rem); }
	60%      { transform: translateX(0.2rem); }
	80%      { transform: translateX(-0.15rem); }
}
@keyframes rhp-arrow {
	0%, 100% { transform: none; }
	30%      { transform: translateX(0.25rem); }
	60%      { transform: translateX(-0.1rem); }
}
@keyframes rhp-switch {
	from { opacity: 0; transform: translateY(4px); }
	to   { opacity: 1; transform: none; }
}

/* ---- Scroll reveal: rows drift up one after another ---- */
.rhp-motion .rhp:not(.rhp--static) .rhp-row > *,
.rhp-motion .rhp:not(.rhp--static) .rhp-group__head > *,
.rhp-motion .rhp:not(.rhp--static) .rhp-note,
.rhp-motion .rhp:not(.rhp--static) .rhp-intro {
	opacity: 0;
	transform: translateY(14px);
}
.rhp-motion .rhp:not(.rhp--static) .is-in > *,
.rhp-motion .rhp:not(.rhp--static) .rhp-note.is-in,
.rhp-motion .rhp:not(.rhp--static) .rhp-intro.is-in {
	opacity: 1;
	transform: none;
	transition:
		opacity 0.9s var(--rhp-ease) var(--rhp-delay, 0ms),
		transform 0.9s var(--rhp-ease) var(--rhp-delay, 0ms),
		background-color var(--rh-dur, 0.45s) var(--rhp-ease);
}

@media (prefers-reduced-motion: reduce) {
	.rhp *, .rhp-levels__btn { transition: none !important; animation: none !important; }
}

/* ==========================================================================
   Print / Save as PDF page
   ========================================================================== */
body.rhp-print-page {
	margin: 0;
	padding: 0;
	background: #fff !important;
	background-image: none !important;
	min-height: 0;
}
.rhp-print {
	max-width: 860px;
	margin: 0 auto;
	padding: 2rem 1.5rem 3rem;
}
.rhp-print .rhp { --rhp-head-bg: #fff; --rhp-edge: 12px; }
.rhp-print .rhp-table thead th { position: relative; top: auto; }
.rhp-print .rhp-table__service { width: 38%; }
.rhp-print__header { text-align: center; margin-bottom: 1.5rem; }
.rhp-print__logo img { width: 190px; height: auto; margin: 0 auto; display: block; }
.rhp-print__site { font-family: var(--rh-font-heading, Georgia, serif); font-size: 1.6rem; margin: 0; }
.rhp-print__title {
	margin: 1rem 0 0;
	font-family: var(--rh-font-heading, Georgia, serif);
	font-optical-sizing: auto;
	font-variation-settings: "SOFT" 0, "WONK" 0;
	font-size: 2rem;
	font-weight: 400;
	color: var(--rh-color-ink, #2c2c2a);
}
.rhp-print__date { margin-top: 2rem; text-align: center; color: var(--rh-color-muted, #6e6a62); font-size: 0.8rem; }
.rhp-print-bar {
	position: sticky;
	top: 0;
	z-index: 10;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.5rem 1rem;
	padding: 0.75rem 1rem;
	background: var(--rh-color-whitewood, #f2ecdf);
	font-family: var(--rh-font-body, sans-serif);
	font-size: 0.9rem;
}
.rhp-print-bar p { margin: 0; }
.rhp-print-bar button {
	padding: 0.55em 1.4em;
	border: 0;
	border-radius: 999px;
	background: var(--rh-color-deep, #5d6b51);
	color: #fff;
	font: inherit;
	cursor: pointer;
}

@media print {
	@page { size: A4; margin: 14mm 12mm; }
	.rhp-print-bar { display: none !important; }
	.rhp-print { max-width: none; padding: 0; font-size: 10pt; }
	.rhp-print__section + .rhp-print__section { break-before: page; }
	.rhp-print__logo img { width: 150px; }
	.rhp-print__title { font-size: 20pt; margin-top: 6pt; }
	.rhp-print .rhp-row { break-inside: avoid; }
	.rhp-print .rhp-group__head { break-after: avoid; }
	.rhp-print .rhp-row > * { padding-block: 6pt; }
	.rhp-print .rhp-group__head th { padding-top: 14pt; font-size: 14pt; }
	.rhp-print .rhp-intro { font-size: 10pt; margin-bottom: 12pt; max-width: none; }
	.rhp-print .rhp-notes { margin-top: 16pt; gap: 10pt 20pt; }
	.rhp-print .rhp-note { font-size: 8.5pt; break-inside: avoid; }
	.rhp-print .rhp-note__title { font-size: 10.5pt; }
	.rhp-print .rhp-row:hover > * { background: none; }
	* { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
