/* =========================================================================
   Batley Pharmacy - the weight loss pages (designs of 2026-11-10)

   The two pages the live site's Weight Loss page leads to, built on the
   Private Services template (inc/weight-loss-pages.php): Weight Loss
   Treatments (/weight-loss-solutions/) and Weight Loss Pricing
   (/weight-loss-pricing/). Loaded after services-prescriptions.css on a
   page that fills in one of the four sections here and nowhere else; it
   reads that stylesheet's tokens (--rx-*). Read off the 1440 designs over
   the 1280 container.

   1. The treatment cards (wl-treat): the pale band, white cards two by two
      on the hairline with 16 corners - the name 20 with the "MHRA
      Approved" pill beside it, the line about it, "Key Benefits:" over
      ticked points, the solid button at the foot.
   2. The BMI calculator (wl-bmi): the pale band, two white cards side by
      side - the fields 44 tall on the hairline, the unit system's radios;
      the result 40 in the navy on a pale panel, the four categories each
      with a coloured bar - and the solid button centred under them.
   3. The figures (wl-stats): the picture beside the heading, its line and
      four tiles two by two, the figure 40 in the brand blue.
   4. The dose cards (wl-pricing): the pale band, a heading to a group, the
      cards three across with the name, the "Available Now" pill, the line
      about the dose and the price.
   ========================================================================= */

/* -------------------------------------------------------------------------
   Shared: the pale bands, the centred headings and the line under them
   ---------------------------------------------------------------------- */

.wl-treat,
.wl-bmi,
.wl-pricing {
	background: var(--rx-pale);
}

/* A band meets the section before it, as the other bands do. */
.rx-build .section + .wl-treat,
.rx-build .section + .wl-bmi,
.rx-build .section + .wl-pricing {
	margin-block-start: 0;
	padding-block: 2.5rem;
}

.wl-treat__title,
.wl-bmi__title,
.wl-stats__title,
.wl-pricing__title {
	margin: 0;
	color: var(--rx-ink);
}

.wl-treat__title,
.wl-bmi__title,
.wl-pricing__title {
	text-align: center;
}

.wl-treat__title-accent,
.wl-bmi__title-accent,
.wl-stats__title-accent,
.wl-pricing__title-accent {
	color: var(--color-heading-accent);
}

/* The line under a centred heading: 18 on a 28 line in the soft ink, on a
   760 measure, 24 under the heading. */
.wl-treat__text,
.wl-bmi__text,
.wl-pricing__text {
	max-width: 760px;
	margin: 24px auto 0;
	color: var(--rx-ink-soft);
	font-size: 1.125rem;
	line-height: 1.55;
	text-align: center;
}

/* The pill beside a name: 12 medium in the brand blue on the pale blue
   with the hairline ("MHRA Approved", "Available Now"). */
.wl-treat__badge,
.wl-pricing__badge {
	display: inline-flex;
	align-items: center;
	flex: 0 0 auto;
	padding: 3px 10px;
	border: 1px solid var(--rx-line);
	border-radius: var(--radius-pill);
	background: #eaf3fe;
	color: var(--rx-blue);
	font-size: 0.75rem;
	font-weight: var(--fw-medium);
	line-height: 1.4;
	white-space: nowrap;
	text-decoration: none;
	transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

/* A pill that books fills in on hover. */
a.wl-pricing__badge:hover,
a.wl-pricing__badge:focus-visible {
	border-color: var(--rx-blue);
	background: var(--rx-blue);
	color: #ffffff;
	text-decoration: none;
}

/* -------------------------------------------------------------------------
   1. The treatment cards
   ---------------------------------------------------------------------- */

.wl-treat__cards {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	margin-top: 40px;
}

.wl-treat__card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding: 24px;
	border: 1px solid var(--rx-line);
	border-radius: 16px;
	background: #fcfdff;
}

.wl-treat__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 16px;
	width: 100%;
}

.wl-treat__name {
	margin: 0;
	color: var(--rx-navy);
	font-size: 1.25rem;
	font-weight: var(--fw-semibold);
	line-height: 1.25;
}

.wl-treat__desc {
	margin: 14px 0 0;
	color: var(--rx-ink-soft);
	font-size: 0.9375rem;
	line-height: 1.55;
}

.wl-treat__desc + .wl-treat__desc {
	margin-top: 10px;
}

.wl-treat__list-title {
	margin: 16px 0 0;
	color: var(--rx-navy);
	font-size: 0.9375rem;
	font-weight: var(--fw-semibold);
	line-height: 1.4;
}

.wl-treat__list {
	display: grid;
	gap: 8px;
	margin: 10px 0 0;
	padding: 0;
	list-style: none;
	color: var(--rx-ink-soft);
	font-size: 0.875rem;
	line-height: 1.5;
}

.wl-treat__list li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
}

.wl-treat__tick {
	display: inline-flex;
	flex: 0 0 auto;
	margin-top: 2px;
	color: var(--rx-blue);
}

.wl-treat__tick svg {
	width: 16px;
	height: 16px;
}

/* At the foot of the card, so the buttons of a row line up. */
.wl-treat__actions {
	margin: auto 0 0;
	padding-top: 20px;
}

/* -------------------------------------------------------------------------
   2. The BMI calculator
   ---------------------------------------------------------------------- */

.wl-bmi__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
	margin-top: 40px;
}

.wl-bmi__card {
	margin: 0;
	padding: 28px;
	border: 1px solid var(--rx-line);
	border-radius: 16px;
	background: #fcfdff;
}

.wl-bmi__card-title {
	margin: 0 0 20px;
	color: var(--rx-ink);
	font-size: 1.375rem;
	font-weight: var(--fw-semibold);
	line-height: 1.3;
}

.wl-bmi__field {
	min-width: 0;
	margin: 0 0 18px;
	padding: 0;
	border: 0;
}

.wl-bmi__field:last-child {
	margin-bottom: 0;
}

.wl-bmi__label {
	display: block;
	margin: 0 0 8px;
	padding: 0;
	color: var(--rx-navy);
	font-size: 0.875rem;
	font-weight: var(--fw-semibold);
	line-height: 1.4;
}

.wl-bmi__inputs {
	display: flex;
	gap: 10px;
}

.wl-bmi__input {
	display: block;
	flex: 1 1 0;
	min-width: 0;
}

.wl-bmi__input input {
	width: 100%;
	height: 44px;
	padding: 0 14px;
	border: 1px solid var(--rx-line);
	border-radius: 8px;
	background: #ffffff;
	color: var(--rx-ink);
	font: inherit;
	font-size: 0.9375rem;
	-moz-appearance: textfield;
	appearance: textfield;
}

.wl-bmi__input input::-webkit-outer-spin-button,
.wl-bmi__input input::-webkit-inner-spin-button {
	margin: 0;
	-webkit-appearance: none;
}

.wl-bmi__input input::placeholder {
	color: #9ca3ab;
}

.wl-bmi__input input:focus-visible {
	border-color: var(--rx-blue);
	outline: 2px solid var(--color-focus);
	outline-offset: 1px;
}

.wl-bmi__radios {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 24px;
}

.wl-bmi__radio {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--rx-ink);
	font-size: 0.9375rem;
	line-height: 1.4;
	cursor: pointer;
}

.wl-bmi__radio input {
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: var(--rx-blue);
}

/* The result: on a pale panel, the figure 40 in the navy. */
.wl-bmi__readout {
	padding: 24px;
	border-radius: 12px;
	background: var(--rx-pale);
	text-align: center;
}

.wl-bmi__readout-label {
	margin: 0;
	color: var(--rx-ink-soft);
	font-size: 0.875rem;
	font-weight: var(--fw-medium);
	line-height: 1.4;
}

.wl-bmi__value {
	margin: 8px 0 0;
	color: var(--rx-navy);
	font-family: var(--font-display);
	font-size: 2.5rem;
	font-weight: var(--fw-semibold);
	line-height: 1;
	letter-spacing: 0.005em;
}

.wl-bmi__hint {
	margin: 10px 0 0;
	color: var(--rx-ink-soft);
	font-size: 0.875rem;
	line-height: 1.4;
}

.wl-bmi__cats-title {
	margin: 24px 0 12px;
	color: var(--rx-navy);
	font-size: 0.9375rem;
	font-weight: var(--fw-semibold);
	line-height: 1.4;
}

.wl-bmi__cats {
	display: grid;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* A category: its name, the bar, and its range at the right. */
.wl-bmi__cat {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto;
	gap: 12px;
	align-items: center;
	color: var(--rx-ink);
	font-size: 0.875rem;
	line-height: 1.4;
}

.wl-bmi__cat-bar {
	height: 6px;
	border-radius: 3px;
	background: #0a61b1;
	transition: height var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.wl-bmi__cat:nth-child(2) .wl-bmi__cat-bar {
	background: #22a06b;
}

.wl-bmi__cat:nth-child(3) .wl-bmi__cat-bar {
	background: #f28c28;
}

.wl-bmi__cat:nth-child(4) .wl-bmi__cat-bar {
	background: #e8c21e;
}

.wl-bmi__cat-range {
	color: var(--rx-ink-soft);
	font-size: 0.8125rem;
	white-space: nowrap;
}

/* The reader's own category, once there is a figure. */
.wl-bmi__cat.is-active .wl-bmi__cat-name {
	color: var(--rx-navy);
	font-weight: var(--fw-semibold);
}

.wl-bmi__cat.is-active .wl-bmi__cat-bar {
	height: 10px;
	border-radius: 5px;
	box-shadow: 0 0 0 3px rgba(10, 97, 177, 0.15);
}

.wl-bmi__actions {
	margin: 32px 0 0;
	text-align: center;
}

/* ---- The calculator as the design of 2026-11-19 draws it ----
   On the page's own ground, not a band; the two cards pale blue on a
   blue hairline with 24 corners; every field a pill, all five shown (the
   radios choose the system, and typing in a field of the other system
   chooses it); the figure's own white card with its dashes in the navy;
   the categories with a long bar each - the fill in its colour on a pale
   track of the same. */
.wl-bmi {
	background: transparent;
}

.wl-bmi__title {
	font-size: clamp(2.25rem, 4vw, 3.25rem);
	line-height: 1.2;
}

.wl-bmi__grid {
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
	gap: 12px;
	margin-top: 48px;
}

.wl-bmi__card {
	padding: 32px;
	border: 1px solid #b9d7f4;
	border-radius: 24px;
	background: #eaf3fe;
}

.wl-bmi__card-title {
	margin: 0 0 28px;
	font-size: 2rem;
	line-height: 1.2;
}

.wl-bmi__field {
	margin: 0 0 22px;
}

.wl-bmi__label {
	margin: 0 0 12px;
	color: var(--rx-ink);
	font-size: 0.9375rem;
	font-weight: var(--fw-medium);
}

.wl-bmi__inputs {
	gap: 12px;
}

.wl-bmi__input input {
	height: 40px;
	padding: 0 14px;
	border: 1px solid #bcd7f3;
	border-radius: 999px;
	background: #f6faff;
	font-size: 0.9375rem;
}

.wl-bmi__units .wl-bmi__label {
	font-size: 0.875rem;
}

.wl-bmi__radios {
	gap: 12px 28px;
}

.wl-bmi__radio {
	font-size: 0.9375rem;
}

/* The figure's own card: white, a soft shadow, the label in the brand blue. */
.wl-bmi__readout {
	margin-top: 0;
	padding: 36px 24px 32px;
	border: 1px solid #b9d7f4;
	border-radius: 16px;
	background: #fcfdff;
	box-shadow: 0 2px 6px rgba(20, 53, 89, 0.08);
}

.wl-bmi__readout-label {
	color: var(--rx-blue);
	font-size: 1.125rem;
}

.wl-bmi__value {
	margin-top: 36px;
	color: var(--rx-navy);
	font-size: 4rem;
	font-weight: var(--fw-bold, 700);
	line-height: 1;
}

.wl-bmi__hint {
	margin-top: 36px;
	color: var(--rx-ink-soft);
	font-size: 1.125rem;
}

.wl-bmi__cats-title {
	margin: 32px 0 16px;
	color: var(--rx-ink);
	font-size: 1.25rem;
}

.wl-bmi__cats {
	gap: 16px;
}

.wl-bmi__cat {
	grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr) auto;
	gap: 16px;
	font-size: 1.0625rem;
}

/* The bar: the fill (--fill of the width) in its colour on its pale track. */
.wl-bmi__cat-bar {
	--bar: #0a8cf5;
	--track: #d6ebff;
	--fill: 100%;
	height: 8px;
	border-radius: 999px;
	background: linear-gradient(90deg, var(--bar) var(--fill), var(--track) var(--fill));
}

.wl-bmi__cat:nth-child(2) .wl-bmi__cat-bar {
	--bar: #e5513a;
	--track: #fde3df;
	--fill: 46%;
	background: linear-gradient(90deg, var(--bar) var(--fill), var(--track) var(--fill));
}

.wl-bmi__cat:nth-child(3) .wl-bmi__cat-bar {
	--bar: #2aa882;
	--track: #d8f3e8;
	--fill: 46%;
	background: linear-gradient(90deg, var(--bar) var(--fill), var(--track) var(--fill));
}

.wl-bmi__cat:nth-child(4) .wl-bmi__cat-bar {
	--bar: #f4d608;
	--track: #fbf1b3;
	--fill: 100%;
	background: linear-gradient(90deg, var(--bar) var(--fill), var(--track) var(--fill));
}

.wl-bmi__cat-range {
	color: var(--rx-ink);
	font-size: 0.9375rem;
}

/* The reader's own category: its bar full and a little thicker. */
.wl-bmi__cat.is-active .wl-bmi__cat-bar {
	--fill: 100%;
	height: 10px;
	box-shadow: none;
}

.wl-bmi__actions {
	margin-top: 40px;
}

@media (max-width: 991.98px) {
	.wl-bmi__grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 575.98px) {
	.wl-bmi__card {
		padding: 24px 20px;
		border-radius: 20px;
	}

	.wl-bmi__card-title {
		font-size: 1.5rem;
	}

	.wl-bmi__inputs {
		flex-wrap: wrap;
	}

	.wl-bmi__input {
		flex: 1 1 28%;
	}

	.wl-bmi__value {
		font-size: 3rem;
	}

	.wl-bmi__cat {
		grid-template-columns: minmax(0, 1fr) auto;
	}

	.wl-bmi__cat-bar {
		grid-column: 1 / -1;
		order: 3;
	}
}

/* -------------------------------------------------------------------------
   3. The figures
   ---------------------------------------------------------------------- */

.wl-stats__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 48px;
	align-items: center;
}

.wl-stats__inner--no-media {
	grid-template-columns: minmax(0, 1fr);
}

.wl-stats__media img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--rx-radius);
}

.wl-stats__text {
	margin: 16px 0 0;
	color: var(--rx-ink-soft);
	font-size: 1.125rem;
	line-height: 1.55;
}

.wl-stats__tiles {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	margin: 32px 0 0;
	padding: 0;
	list-style: none;
}

.wl-stats__tile {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 24px 20px;
	border: 1px solid var(--rx-line);
	border-radius: 12px;
	background: #fcfdff;
	text-align: center;
}

.wl-stats__value {
	color: var(--rx-blue);
	font-family: var(--font-display);
	font-size: 2.5rem;
	font-weight: var(--fw-semibold);
	line-height: 1;
	letter-spacing: 0.005em;
}

.wl-stats__caption {
	margin-top: 10px;
	color: var(--rx-ink-soft);
	font-size: 0.875rem;
	line-height: 1.45;
}

/* -------------------------------------------------------------------------
   4. The dose cards
   ---------------------------------------------------------------------- */

/* A group's anchor lands clear of the sticky header. */
.wl-pricing__group {
	margin-top: 40px;
	scroll-margin-top: 6rem;
}

.wl-pricing__group + .wl-pricing__group {
	margin-top: 48px;
}

.wl-pricing__group-title {
	margin: 0;
	color: var(--rx-ink);
	font-size: 1.25rem;
	font-weight: var(--fw-semibold);
	line-height: 1.3;
}

.wl-pricing__group-text {
	margin: 6px 0 0;
	color: var(--rx-ink-soft);
	font-size: 0.9375rem;
	line-height: 1.5;
}

.wl-pricing__cards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	margin: 16px 0 0;
	padding: 0;
	list-style: none;
}

.wl-pricing__card {
	padding: 20px 24px;
	border: 1px solid var(--rx-line);
	border-radius: 12px;
	background: #fcfdff;
}

.wl-pricing__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 12px;
}

.wl-pricing__name {
	margin: 0;
	color: var(--rx-navy);
	font-size: 1.125rem;
	font-weight: var(--fw-semibold);
	line-height: 1.3;
}

.wl-pricing__line {
	margin: 6px 0 0;
	color: var(--rx-ink-soft);
	font-size: 0.875rem;
	line-height: 1.5;
}

.wl-pricing__price {
	margin: 12px 0 0;
	color: var(--rx-ink);
	font-size: 1rem;
	font-weight: var(--fw-semibold);
	line-height: 1.3;
}

/* -------------------------------------------------------------------------
   Narrower screens
   ---------------------------------------------------------------------- */

@media (max-width: 991.98px) {
	.wl-stats__inner {
		grid-template-columns: minmax(0, 1fr);
		gap: 32px;
	}

	.wl-pricing__cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767.98px) {
	.wl-treat__cards,
	.wl-bmi__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.wl-bmi__card {
		padding: 24px 20px;
	}
}

@media (max-width: 575.98px) {
	.wl-treat__card {
		padding: 20px;
	}

	.wl-pricing__cards {
		grid-template-columns: minmax(0, 1fr);
	}

	.wl-stats__tiles {
		gap: 12px;
	}

	.wl-stats__tile {
		padding: 20px 14px;
	}

	.wl-stats__value {
		font-size: 2rem;
	}

	.wl-bmi__cat {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
		gap: 10px;
	}
}

/* The calculator's fields 16 on a phone: anything smaller makes an iPhone
   zoom in as a field is tapped (2026-11-12). */
@media (max-width: 575.98px) {
	.wl-bmi__input input {
		font-size: 1rem;
	}
}

/* A card that opens its treatment's page (2026-11-16): the name's link is
   stretched over the whole card, which lifts under the pointer with the
   name turning blue; the "Available Now" pill stays its own link above it. */
.wl-pricing__card--link {
	position: relative;
	transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.wl-pricing__card--link:hover {
	border-color: #9dc3f1;
	box-shadow: 0 12px 28px rgba(15, 42, 74, 0.1);
	transform: translateY(-3px);
}

.wl-pricing__name-link {
	color: inherit;
	text-decoration: none;
	transition: color var(--dur) var(--ease);
}

.wl-pricing__name-link::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
}

.wl-pricing__card--link:hover .wl-pricing__name-link {
	color: var(--rx-blue);
}

.wl-pricing__card--link .wl-pricing__badge {
	position: relative;
	z-index: 1;
}

.wl-pricing__name-link:focus-visible {
	outline: none;
}

.wl-pricing__card--link:has(.wl-pricing__name-link:focus-visible) {
	outline: 2px solid var(--color-focus);
	outline-offset: 2px;
}
