/*
Theme Name: Rosegreen Pharmacy
Theme URI: https://rosegreenpharmacy.co.uk
Description: Child theme of Hello Elementor for the Rose Green Pharmacy website (rosegreenpharmacy.co.uk). A warm, modern village-pharmacy platform built to be extended with Elementor.
Author: Rose Green Pharmacy
Template: hello-elementor
Version: 0.4.0
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rosegreen-pharmacy
*/

/* =============================================================
   1. Design tokens
   ============================================================= */
:root {
	/* Greens */
	--rg-forest: #123A24;
	--rg-forest-deep: #0E2E1C;
	--rg-pine: #1B5231;
	--rg-leaf: #2E7D46;
	--rg-moss: #56996B;
	--rg-sage: #7FA98D;
	--rg-mist: #EAF3EC;
	--rg-mist-deep: #DCEBDF;
	--rg-sand: #F4F1E7;
	--rg-paper: #FBFAF4;
	--rg-ink: #1E2B22;
	--rg-bark: #55655B;
	--rg-line: rgba(27, 82, 49, 0.14);
	--rg-line-soft: rgba(27, 82, 49, 0.08);

	/* Accents
	   Was rose/pink — `--rg-rose #B04A5A`, its dark and its tint. Was then
	   honey amber. Now matched to the owner's reference shot of the site:
	   the hero accent is the lime green of the storefront signage
	   (`--rg-lime`), the active-nav underline is the logo rose's brick red
	   (`--rg-brick`), and the primary button sits on the deeper pine
	   (`--rg-pine-deep`) sampled straight from the reference's header CTA. */
	--rg-lime: #A6C862;
	--rg-brick: #A63335;
	--rg-pine-deep: #1D3926;
	--rg-amber: #8C6114;
	--rg-amber-dark: #6F4C10;
	--rg-amber-tint: #F6EFDC;
	--rg-danger: #B3261E;

	/* Shape & elevation
	   Squared-off radii and near-flat elevation, matching how the real
	   pharmacy sites (Boots, Day Lewis, Well) actually build: hairline
	   borders do the separating, not floating cards and drop shadows.
	   The old 20/28px radii plus layered shadows read as template. */
	--rg-radius: 10px;
	--rg-radius-sm: 8px;
	--rg-radius-lg: 14px;
	--rg-shadow-1: 0 1px 2px rgba(18, 58, 36, 0.04);
	--rg-shadow-2: 0 2px 6px rgba(18, 58, 36, 0.07);

	/* Type */
	--rg-font-display: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--rg-font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

	/* Rhythm */
	--rg-section: clamp(3.5rem, 7vw, 6.5rem);
	--rg-announce: #275DB2;	/* Royal blue — sampled from the reference announce bar */
	/* The header bar's ground. Matches the real logo PNG's own background
	  exactly (sampled #F3F3F3), so the mark sits flush in the bar with no
	  visible plate around it. */
	--rg-header-bg: #F3F3F3;
}

/* =============================================================
   2. Base
   ============================================================= */
html {
	scroll-behavior: smooth;
}

body {
	background-color: var(--rg-paper);
	color: var(--rg-ink);
	font-family: var(--rg-font-body);
	font-size: 1.0625rem;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

h1,
h2,
.elementor-widget-heading h1.elementor-heading-title,
.elementor-widget-heading h2.elementor-heading-title {
	font-family: var(--rg-font-display);
	font-weight: 600;
	letter-spacing: -0.015em;
	line-height: 1.15;
	color: var(--rg-ink);
	text-wrap: balance;
}

h2,
.elementor-widget-heading h2.elementor-heading-title {
	font-size: clamp(1.7rem, 3vw, 2.4rem);
}

h3,
h4,
h5,
h6,
.elementor-widget-heading :is(h3, h4, h5, h6).elementor-heading-title {
	font-family: var(--rg-font-body);
	letter-spacing: 0;
	line-height: 1.3;
	color: var(--rg-ink);
}

h3 {
	font-size: 1.1rem;
	font-weight: 700;
}

p {
	text-wrap: pretty;
}

/* Short display copy balances rather than dropping a word onto its own
   line — the services intro was ending "…free on the / NHS.". Keyed off
   the paragraphs themselves: the bare `p { text-wrap: pretty }` above is
   a direct declaration, so inheritance from a wrapper would lose to it.
   Chrome skips balancing blocks with many lines, so this stays harmless
   on longer body copy. */
.rg-lead,
.rg-lead p,
.rg-card p,
.rg-step p,
.rgp-condition,
.rgp-condition p,
.rgp-order-by p,
.rg-stat__label,
.rg-footer p,
.rgp-emergency p {
	text-wrap: balance;
}

/* Times, phone numbers and prices align cleanly */
.rg-opening-hours td,
.rgp-hours td,
.rg-header,
.rg-stat__number {
	font-variant-numeric: tabular-nums;
}

a {
	color: var(--rg-pine);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

a:focus-visible {
	color: var(--rg-forest);
}

@media (hover: hover) {
	a:hover {
		color: var(--rg-forest);
	}
}

::selection {
	background: #D7EAD9;
	color: var(--rg-forest);
}

:focus-visible {
	outline: 2.5px solid var(--rg-leaf);
	outline-offset: 2px;
	border-radius: 4px;
}

/* Slim branded scrollbar (WebKit) */
::-webkit-scrollbar {
	width: 10px;
	height: 10px;
}
::-webkit-scrollbar-track {
	background: var(--rg-paper);
}
::-webkit-scrollbar-thumb {
	background: #C4D8C6;
	border-radius: 8px;
	border: 2px solid var(--rg-paper);
}

@media (hover: hover) {
	::-webkit-scrollbar-thumb:hover {
		background: var(--rg-sage);
	}
}

/* Accessible skip link */
.skip-link.screen-reader-text {
	position: fixed;
	top: -60px;
	left: 16px;
	z-index: 1000;
	padding: 0.7rem 1.2rem;
	border-radius: 0 0 12px 12px;
	background: var(--rg-pine);
	color: #fff;
	font-weight: 600;
	transition: top 0.2s ease;
}

.skip-link.screen-reader-text:focus {
	top: 0;
	color: #fff;
}

/* Motion & print courtesy */
@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

@media print {
	.rg-header, .rg-footer, .rg-announce, .rg-backtotop {
		display: none !important;
	}
	body {
		background: #fff;
	}
}

/* =============================================================
   11. More small, practical refinements
   ============================================================= */

/* 1. Reserve space for the browser's scrollbar to prevent layout shifts. */
html {
	scrollbar-gutter: stable;
}

/* 2. Avoid animating the document when a visitor has not asked for it. */
@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}

/* 3. Keep images within their columns on narrow screens. */
.elementor-widget-image img,
.elementor-widget-video iframe {
	max-width: 100%;
}

/* 4. Align native controls with the established accent colour. */
input,
select,
textarea {
	accent-color: var(--rg-leaf);
}

/* 5. Make disabled controls visibly unavailable. */
button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
	cursor: not-allowed;
	opacity: 0.6;
}

/* 6. Give invalid fields a clear border without relying on colour alone. */
input:invalid:not(:placeholder-shown),
textarea:invalid:not(:placeholder-shown),
select:invalid {
	border-color: var(--rg-danger);
	box-shadow: 0 0 0 1px var(--rg-danger);
}

/* 7. Let validation and confirmation messages read as distinct messages. */
.elementor-message,
.elementor-error,
.elementor-message-danger,
.elementor-message-success {
	padding: 0.85rem 1rem;
	border-radius: 6px;
	line-height: 1.5;
}

.elementor-message-success {
	border: 1px solid rgba(46, 125, 70, 0.25);
	background: var(--rg-mist);
	color: var(--rg-forest);
}

.elementor-error,
.elementor-message-danger {
	border: 1px solid rgba(179, 38, 30, 0.25);
	background: #fff5f4;
	color: #8f1d18;
}

/* 8. Keep headings attached to the following copy when a page is printed. */
@media print {
	h1, h2, h3, h4 {
		break-after: avoid;
	}

	img, figure {
		break-inside: avoid;
	}
}

/* 9. Use a restrained divider between adjacent footer links on small screens. */
@media (max-width: 640px) {
	.rg-footer .rg-footer__bottom {
		align-items: flex-start;
		gap: 1rem;
	}

	.rg-footer .rg-footer__legal {
		gap: 0.5rem;
	}
}

/* 10. Keep card and step copy comfortable at very narrow widths. */
@media (max-width: 380px) {
	.rg-card,
	.rg-step {
		padding: 1.1rem;
	}

	.rg-step {
		gap: 0.8rem;
	}
}

/* =============================================================
   12. Twenty more practical details
   ============================================================= */

/* 1. Keep keyboard focus above sticky headers while scrolling to links. */
:target {
	scroll-margin-block: 6.5rem;
}

/* 2. Preserve user text-size preferences. */
body {
	-webkit-text-size-adjust: 100%;
}

/* 3. Keep videos and maps responsive inside content columns. */
.elementor-widget-video,
.elementor-widget-google_maps,
.elementor-widget-video .elementor-wrapper,
.elementor-widget-google_maps iframe {
	max-width: 100%;
}

.elementor-widget-google_maps iframe {
	width: 100%;
}

/* 4. Reduce excessive default spacing between consecutive copy blocks. */
.elementor-widget-text-editor p:last-child {
	margin-bottom: 0;
}

/* 5. Give list items a little room for comfortable reading. */
.elementor-widget-text-editor li + li {
	margin-top: 0.3em;
}

/* 6. Keep heading and paragraph spacing consistent across Elementor. */
.elementor-widget-heading .elementor-heading-title {
	margin-block-end: 0;
}

/* 7. Prevent oversized headings from spilling into neighboring columns. */
.elementor-heading-title {
	max-width: 100%;
}

/* 8. Keep logos and service imagery from rendering blurry when constrained. */
.elementor-widget-image img {
	height: auto;
}

/* 9. Keep menu links legible when the dropdown is long. */
.rg-header .elementor-nav-menu--dropdown {
	max-height: min(80vh, 36rem);
	overflow-y: auto;
	overscroll-behavior: contain;
}

/* 10. Provide a visible pressed state for primary actions. */
.rg-btn .elementor-button:active,
.rg-backtotop:active {
	filter: brightness(0.92);
}

/* 11. Avoid text selection artifacts on decorative icons. */
.rg-card__icon,
.rg-step__num,
.rg-checklist .rg-tick {
	user-select: none;
}

/* 12. Keep long medication and service names from forcing grid overflow.
   The step title's level is set at render time (see functions.php), so it
   is matched at any level rather than pinned to one tag. */
.rg-card h3,
.rg-step :is(h2, h3, h4),
.rgp-condition {
	min-width: 0;
	overflow-wrap: anywhere;
}

/* 13. Align form field labels consistently. */
label,
.elementor-field-label {
	display: inline-block;
	margin-bottom: 0.3rem;
	font-weight: 600;
}

/* 14. Keep form fields within the page on narrow devices. */
.elementor-form .elementor-field-group,
.elementor-form .elementor-field-subgroup {
	min-width: 0;
}

/* 15. Make checkboxes and radio buttons easier to see and operate. */
input[type="checkbox"],
input[type="radio"] {
	width: 1.1rem;
	height: 1.1rem;
	vertical-align: middle;
}

/* 16. Separate table rows clearly when printed in grayscale. */
@media print {
	.rgp-hours tr,
	.rg-opening-hours tr {
		border-bottom: 1px solid #bbb;
	}
}

/* 17. Prevent decorative background images from slowing printouts. */
@media print {
	*,
	*::before,
	*::after {
		box-shadow: none !important;
		text-shadow: none !important;
	}
}

/* 18. Keep footnotes and small notes comfortably readable. */
.rg-footer__note,
.rg-opening-hours caption {
	font-size: 0.9rem;
	line-height: 1.5;
}

/* 19. Keep search and email controls from overflowing their containers. */
input[type="search"],
input[type="email"],
input[type="tel"],
input[type="url"] {
	min-width: 0;
}

/* 20. Keep selection contrast clear over the dark footer too. */
.rg-footer ::selection {
	background: #D8E7D6;
	color: var(--rg-forest);
}

/* =============================================================
   13. Homepage refinements from the supplied screenshot
   ============================================================= */

/* 1. Give the announcement one compact, predictable line. */
.rg-announce {
	line-height: 1.35;
	padding-block: 0.35rem;
}

/* 2. Keep announcement copy readable on narrow phones. */
@media (max-width: 480px) {
	.rg-announce {
		font-size: 0.78rem;
		padding-inline: 0.75rem;
	}
}

/* 3. Tighten the desktop header's vertical footprint. */
.rg-header .rg-header__bar {
	min-height: 76px;
}

/* 4. Align logo, navigation and actions along one clean center line. */
.rg-header__bar > .e-con-inner {
	align-items: center;
}

/* 5. Keep the wordmark from looking heavier than its navigation. */
.rg-wordmark__name {
	font-size: 1.42rem;
}

/* 6. Slightly reduce excess space in desktop navigation links. */
.rg-header .rg-nav a,
.rg-header .elementor-widget-nav-menu .elementor-nav-menu--main a.elementor-item {
	padding-inline: 0.72rem;
}

/* 7. Keep header actions consistent in height. */
.rg-header .rg-phone-chip,
.rg-header .rg-header__actions .rg-btn .elementor-button {
	min-height: 44px;
}

/* 8. If an overlay is ever configured in the panel it would stack on top of
   the pseudo-element scrim in layout.css and bury the photograph, so the
   panel's own overlay is cancelled rather than fought over. */
.rg-hero .elementor-background-overlay {
	background: transparent !important;
}

/* 9. Keep the hero panel at a useful reading width. */
.rg-hero__panel {
	max-width: 600px;
}

/* 10. Reduce the panel's large-screen padding slightly. */
@media (min-width: 768px) {
	.rg-hero__panel {
		padding: clamp(1.5rem, 2.6vw, 2.3rem);
	}
}

/* 11. Prevent the hero from dominating the full first screen. */
.rg-hero {
	min-height: min(690px, 76vh);
}

/* 12. Keep the headline large but avoid oversized line breaks. */
.rg-hero .rg-hero__title .elementor-heading-title {
	max-width: 17ch;
	font-size: clamp(2.15rem, 3.8vw, 2.9rem);
}

/* 13. Keep hero introduction copy from running too wide. */
.rg-hero__panel .rg-lead {
	max-width: 54ch;
}

/* 14. Align hero calls to action and allow them to wrap naturally. */
.rg-hero__panel .elementor-widget-button {
	max-width: 100%;
}

.rg-hero__panel .elementor-button {
	white-space: normal;
}

/* 15. Increase separation between hero copy and its actions. */
.rg-hero__panel .elementor-widget-button {
	margin-top: 0.35rem;
}

/* 16. Make a closed status use a clear, restrained amber accent. */
.rgp-status--closed {
	background: var(--rg-amber-tint);
	border-color: rgba(111, 76, 16, 0.16);
	color: var(--rg-amber-dark);
}

/* 17. Use green for open status and amber for closed status indicators.
   The indicator is a stroked clock, so the state colours the stroke and
   not a fill. */
.rgp-status--open .rgp-status__icon {
	color: var(--rg-leaf);
}

.rgp-status--closed .rgp-status__icon {
	color: var(--rg-amber);
}

/* 18. Keep the trust line evenly spaced and readable. */
.rg-trust {
	row-gap: 0.5rem;
	line-height: 1.45;
}

/* 19. Make the trust line stack instead of compressing on small phones. */
@media (max-width: 600px) {
	.rg-trust {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.55rem;
	}

	.rg-trust .rgp-trust__sep {
		display: none;
	}
}

/* 20. Keep hero content comfortable and photo framing useful on mobile. */
@media (max-width: 767px) {
	.rg-hero {
		min-height: 0;
	}

	.rg-hero__panel {
		width: 100%;
		max-width: 540px;
		padding: 1.45rem;
		border-radius: 10px;
	}

	.rg-hero .rg-hero__title .elementor-heading-title {
		font-size: clamp(2rem, 8vw, 2.55rem);
	}
}

/* =============================================================
   3. Badges & pills
   ============================================================= */
.rg-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	padding: 0.45em 1.05em;
	border-radius: 999px;
	background: var(--rg-mist);
	border: 1px solid var(--rg-line-soft);
	color: var(--rg-pine);
	font-family: var(--rg-font-body);
	font-size: 0.82rem;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

/* Historically named for the pink accent it has since replaced with amber.
   The class is written into stored Elementor markup, so it stays as-is —
   see the note on `.rg-btn--rose` above. */
.rg-badge--rose {
	background: var(--rg-amber-tint);
	border-color: rgba(111, 76, 16, 0.12);
	color: var(--rg-amber-dark);
}

.rg-badge .rg-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--rg-leaf);
	box-shadow: 0 0 0 3px rgba(46, 125, 70, 0.16);
	/* No pulse. An infinite breathing ring is a template flourish — and it
	   animated identically whether the pharmacy was open or shut. */
	animation: none;
}

/* =============================================================
   4. Buttons
   ============================================================= */
.rg-btn.elementor-widget-button {
	background: transparent;
	padding: 0;
}

.rg-btn .elementor-button,
a.rg-btn.elementor-button {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.55rem;
	padding: 0.9rem 1.75rem;
	/* Square-ish, not a pill: every real pharmacy reference uses a modest
	   radius on its primary buttons. Universal 999px pills are the single
	   loudest "generated" tell on this page. */
	border-radius: var(--rg-radius-sm);
	background: var(--rg-pine);
	color: #fff;
	font-family: var(--rg-font-body);
	font-weight: 600;
	font-size: 1rem;
	line-height: 1.2;
	text-decoration: none;
	border: none;
	cursor: pointer;
	box-shadow: none;
	/* One motion: a brightness dip on press. No shadows, no lifts, no
	   colour floods — the restrained hover is what reads as shop-floor
	   rather than showroom. */
	transition: filter 0.15s ease;
}

@media (hover: hover) {
	.rg-btn .elementor-button:hover {
		filter: brightness(1.08);
	}
}

.rg-btn .elementor-button:focus-visible {
	background: var(--rg-forest);
	color: #fff;
}

@media (hover: hover) {
	.rg-btn .elementor-button:hover {
		background: var(--rg-forest);
		color: #fff;
	}
}

.rg-btn .elementor-button:active {
	filter: brightness(0.94);
}

.rg-btn .elementor-button:focus-visible {
	outline: 2.5px solid var(--rg-moss);
	outline-offset: 2px;
}

/* The class says "rose" and the colour is green: `--rg-btn--rose` is written
   into Elementor's stored markup in three places (and by the seeder), so
   renaming it would mean editing the database — out of bounds. It is a
   historical name for the primary CTA, and the pink it once referred to is
   gone from the theme entirely.

   It used to be filled amber, and on the cream surfaces it sat on it read
   as a muddy brown-gold — the one colour left on the page that looked
   borrowed rather than chosen. The palette now divides by context: solid
   green on paper, and layout.css puts the cream back on this same class
   where it sits on the dark hero scrim, where it has the contrast to work.
   The green itself is `--rg-pine-deep`, sampled from the reference's
   header CTA rather than inherited from the text colour. */
.rg-btn--rose .elementor-button {
	background: var(--rg-pine-deep);
}

.rg-btn--rose .elementor-button:focus-visible {
	outline: 2.5px solid var(--rg-moss);
	outline-offset: 2px;
}

.rg-btn--ghost .elementor-button {
	background: transparent;
	color: var(--rg-pine);
	box-shadow: inset 0 0 0 1.5px var(--rg-line);
}

.rg-btn--ghost .elementor-button:focus-visible {
	background: var(--rg-mist);
	color: var(--rg-forest);
	box-shadow: inset 0 0 0 1.5px rgba(46, 125, 70, 0.4);
}

@media (hover: hover) {
	.rg-btn--ghost .elementor-button:hover {
		background: var(--rg-mist);
		color: var(--rg-forest);
		box-shadow: inset 0 0 0 1.5px rgba(46, 125, 70, 0.4);
	}
}

/* On-dark variants (CTA band) */
.rg-btn--light .elementor-button,
.rg-btn--ghost-light .elementor-button {
	color: #fff;
}

.rg-btn--light .elementor-button {
	background: #fff;
	color: var(--rg-forest) !important;
}

.rg-btn--light .elementor-button:focus-visible {
	background: var(--rg-mist);
	color: var(--rg-forest) !important;
}

@media (hover: hover) {
	.rg-btn--light .elementor-button:hover {
		background: var(--rg-mist);
		color: var(--rg-forest) !important;
	}
}

.rg-btn--ghost-light .elementor-button {
	background: transparent;
	box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.45);
}

.rg-btn--ghost-light .elementor-button:focus-visible {
	background: rgba(255, 255, 255, 0.12);
	box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.8);
}

@media (hover: hover) {
	.rg-btn--ghost-light .elementor-button:hover {
		background: rgba(255, 255, 255, 0.12);
		box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.8);
	}
}

/* Small & large sizes */
.rg-btn--sm .elementor-button {
	padding: 0.55rem 1.15rem;
	font-size: 0.92rem;
}

.rg-btn--lg .elementor-button {
	padding: 1.05rem 2.1rem;
	font-size: 1.06rem;
}

/* =============================================================
   5. Cards
   ============================================================= */
.rg-card,
.elementor a.rg-card,
.elementor .rg-card {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	background: #fff;
	border: 1px solid var(--rg-line-soft);
	border-radius: var(--rg-radius);
	padding: 1.7rem;
	box-shadow: none;
	transition: border-color 0.22s ease, background-color 0.22s ease;
	overflow: hidden;
}

/* No gradient top-rule and no hover lift. The reference pharmacies keep
   cards still and let a border/colour change carry the interaction —
   cards that jump up on hover are a marketing-template reflex. */

@media (hover: hover) {
	a.rg-card:hover,
	.elementor a.rg-card:hover,
	.rg-card:hover {
		transform: none;
		box-shadow: none;
		border-color: rgba(27, 82, 49, 0.28);
		background: #FCFDFB;
		text-decoration: none;
	}
}

.rg-card--tint {
	background: var(--rg-sand);
	box-shadow: none;
}

.rg-card h3,
.rg-card .rg-card__title {
	font-family: var(--rg-font-display);
	font-size: 1.22rem;
	font-weight: 600;
	margin: 0 0 0.45rem;
	color: var(--rg-ink);
}

.rg-card p {
	margin: 0;
	color: var(--rg-bark);
	line-height: 1.6;
}

.rg-card__icon {
	width: 42px;
	height: 42px;
	border-radius: 6px;
	background: var(--rg-mist);
	border: 1px solid var(--rg-line-soft);
	color: var(--rg-pine);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 1.05rem;
	flex: 0 0 auto;
	transition: background-color 0.22s ease, color 0.22s ease;
}

.rg-card__icon svg {
	width: 20px;
	height: 20px;
}

@media (hover: hover) {
	a.rg-card:hover .rg-card__icon,
	.rg-card:hover .rg-card__icon {
		background: var(--rg-pine);
		color: #fff;
	}
}

.rg-card__link {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	/* `.elementor-widget` (what this wrapper now is) is `position:
	   relative`, which would make it the containing block for the stretched
	   hit area below and confine the click to the button cell. Static
	   hands the containing block to `.rg-card`, so the whole card stays
	   clickable exactly as the old `<a>` wrapper made it. */
	position: static;
	margin-top: auto;
	padding-top: 1.1rem;
	font-weight: 600;
	color: var(--rg-pine);
	text-decoration: none;
	transition: color 0.2s ease, gap 0.2s ease;
}

/* The call to action is a Button widget now, not a `<span>` inside the
   card's own anchor, so Elementor's own button styling has to come off:
   filled background, radius, padding and a fixed font-size would turn a
   quiet text link into a pill. Every property is inherited from
   `.rg-card__link`, which is what the span did. Both it and the anchor
   are static so the `::after` below resolves against `.rg-card`. */
.rg-card__link .elementor-button,
.rg-card__link .elementor-button:visited,
.rg-card__link .elementor-button:hover,
.rg-card__link .elementor-button:focus {
	position: static;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: inherit;
	fill: currentColor;
	font-family: inherit;
	font-size: inherit;
	font-weight: inherit;
	letter-spacing: inherit;
	line-height: inherit;
	text-align: left;
	text-decoration: none;
	white-space: nowrap;
	transition: none;
	cursor: pointer;
}

/* Stretched hit area: one click covers the card, which is what the
   anchor used to give and what the hover state still promises. Pseudo
   elements of an `<a>` belong to the anchor, so a click anywhere on the
   overlay activates the link. */
.rg-card__link .elementor-button::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

.rg-card__link::after {
	content: "→";
	transition: transform 0.2s ease;
}

@media (hover: hover) {
	a.rg-card:hover .rg-card__link,
	.rg-card:hover .rg-card__link {
		color: var(--rg-amber-dark);
		gap: 0.7rem;
	}

	a.rg-card:hover .rg-card__link::after,
	.rg-card:hover .rg-card__link::after {
		transform: translateX(3px);
	}
}

/* =============================================================
   6. Checklists & steps
   ============================================================= */
/* The repeat section stacked this list directly under the order box, and its
   filled pine discs were the heaviest mark on the page after the hero — two
   list-shaped containers fighting inside one column. Ticked into a soft
   green well at 20px they still read as confirmed benefits without
   competing with the step numbers beside them.
   auto-fit holds a single column inside the narrow split column and folds to
   two on the full-width pages that reuse this same list. The 340px floor is
   what keeps the fold at two: the content column is 1028px, three tracks
   would need 1041px, and two need 706px — so this list lands on 1 or 2
   tracks at every width it is actually used rather than stranding a fourth
   item on a row of its own. The min(100%, …) wrapper keeps that same floor
   from pinning a track wider than its container once the viewport itself
   drops under ~380px, which plain minmax(340px, …) would do. */
.rg-checklist {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.7rem 1.6rem;
	/* 440px floor: at the 1132px content width a 340px floor dealt three
	   360px tracks and stranded the fourth tick on a row of its own — the
	   same ragged 3+1 the conditions grid grew out of. Two columns at every
	   width this list meets unwrapped (home's benefits strip overrides to
	   four, and the narrow split column folds to one as before). */
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
}

/* Each tick is a Text Editor widget of its own now rather than an `<li>`
   in one list, so the wrapper carries the row's flex layout and the tick
   plus its label sit inside it exactly as they did in the `li`. */
.rg-checklist li,
.rg-checklist .rg-checklist__item {
	display: flex;
	gap: 0.7rem;
	align-items: flex-start;
	min-width: 0;
	overflow-wrap: anywhere;
	color: var(--rg-ink);
	line-height: 1.5;
	font-size: 0.95rem;
	font-weight: 500;
}

.rg-checklist .rg-tick {
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: rgba(46, 125, 70, 0.13);
	color: var(--rg-leaf);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-top: 2px;
	box-shadow: none;
}

.rg-checklist .rg-tick svg {
	width: 11px;
	height: 11px;
}

.rg-steps {
	counter-reset: rgstep;
	display: grid;
	gap: 0;
	/* Elementor containers come off its stylesheet with 10px of default
	   padding; it would indent a run of steps that has always sat flush
	   with the column beside it. */
	padding: 0;
	/* Separators between steps only: the old container top line + every
	   step's bottom line printed five hairlines for four steps, with the
	   last one dangling under the final step like an unfinished table. */
	border-top: 0;
}

.rg-step:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

/* With the container rules gone, the first step's number box sits flush
   with the opposite column's kicker instead of a padding-width below it. */
.rg-step:first-child {
	padding-top: 0;
}

/* One container per step, three widgets inside it. As a flex row the
   number, title and body would sit side by side; as a two-track grid the
   number holds column one across both rows and the title and its body
   stack in column two, which is the arrangement the old `<span>/<h2>/<p>`
   run had. The row gap is the 4px the `<h2>` margin used to supply — an
   Elementor heading widget zeroes its own margin — and the column gap is
   the 1.1rem the flex gap used to be. */
.rg-step {
	display: grid;
	grid-template-columns: 38px minmax(0, 1fr);
	column-gap: 1.1rem;
	row-gap: 0.25rem;
	align-items: start;
	align-content: start;
	background: transparent;
	border: 0;
	border-bottom: 1px solid var(--rg-line);
	border-radius: 0;
	padding: 1.25rem 0;
	box-shadow: none;
	transition: border-color 0.2s ease;
}

@media (hover: hover) {
	.rg-step:hover {
		transform: none;
		border-bottom-color: var(--rg-brick);
	}
}

.rg-step__num {
	counter-increment: rgstep;
	/* Placement rather than flow: the box spans both rows of column one so
	   the title and body line up beside its centre, and `gap: 0` because
	   Elementor puts its own 20px widget gap on every widget and the
	   counter and its (empty) inner span would drift apart inside the box. */
	grid-column: 1;
	grid-row: 1 / span 2;
	gap: 0;
	flex: 0 0 auto;
	width: 38px;
	height: 38px;
	border: 1px solid var(--rg-pine);
	border-radius: 0;
	background: transparent;
	color: var(--rg-forest);
	font-family: var(--rg-font-body);
	font-weight: 700;
	font-size: 0.9rem;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: none;
}

/* The title and the copy are the other two widgets of the same step. */
.rg-step__title {
	grid-column: 2;
	grid-row: 1;
}

.rg-step__body {
	grid-column: 2;
	grid-row: 2;
}

.rg-step__num::before {
	content: counter(rgstep);
}

/* On the inner pages the how-to steps follow the checklist directly in
   the same column; without this they open flush against the last tick
   row and the two lists read as one. The same applies one step up: the
   order-by card's rounded bottom sat 8px from the first tick — the
   homepage's benefits wrapper supplies the gap, inner pages have none. */
.rg-checklist + .rg-steps {
	margin-top: 2.75rem;
}

.rgp-order-by + .rg-checklist {
	margin-top: 2rem;
}

.rg-step :is(h2, h3, h4) {
	margin: 0 0 0.25rem;
	font-family: var(--rg-font-body);
	font-size: 1.05rem;
	font-weight: 700;
	letter-spacing: 0;
}

/* The Pharmacy First card title is emitted as an h3 because it sits under
   that section's h2. Without this, the bare `h3 { font-size: 1.2rem }`
   reset would shrink it from the 1.5rem it has always rendered at — the
   only property the shared heading rules don't already carry across. */
.rgp-condition h3 {
	font-size: 1.5rem;
}

.rg-step p {
	margin: 0;
	color: var(--rg-bark);
	line-height: 1.55;
}

/* =============================================================
   7. Section scaffolding
   ============================================================= */
.rg-kicker {
	display: block;
	font-family: var(--rg-font-body);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--rg-pine);
	margin-bottom: 0.75rem;
}

/* `.rg-kicker` is the *wrapper* Elementor puts on a heading widget — the
   text sits in a child `.elementor-heading-title`, which the display-font
   reset at the top of this file binds to directly. So the wrapper's
   declarations were only reaching the label through inheritance, and
   font-family, letter-spacing and colour were being overridden by that
   reset: the eyebrow rendered as 12px display, tight at -0.015em, in ink.
   Uppercase wants positive tracking, so the seeder's own values are restated
   here on the element that actually carries the text. */
.rg-kicker .elementor-heading-title {
	font-family: var(--rg-font-body);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--rg-pine);
}

/* The section eyebrow used to repeat a green-cross glyph on all five
   sections — five identical ornaments is what makes a page read as
   generated. None of the reference pharmacies decorate their headings at
   all, so this is now a plain label and the cross survives only as the
   single hero mark. */
.rg-kicker::before {
	content: none;
}

/* Section titles were pinned at `clamp(1.7rem, 3vw, 2.4rem)` — 32px on a
   1028px measure, which is the same size as a sub-headline and left every
   band reading at one flat level. Real pharmacy sites run their section
   titles noticeably above the body and let the eyebrow stay small; the
   gap between the two is what makes a page feel edited rather than
   assembled.

   Written as a bare `h2` so the title emitted by rosegreen_detail_sections()
   scales with the Elementor ones — the three rules that must not move all
   outrank it: `.rg-step :is(h2, h3, h4)` (0,1,1),
   `.rg-footer .rg-footer__heading` (0,2,0) and
   `.elementor-widget-heading h2.elementor-heading-title` (0,2,1), which
   this shares cascade position with and therefore wins on being later. */
h2,
.elementor-widget-heading h2.elementor-heading-title {
	font-size: clamp(1.95rem, 3.6vw, 2.85rem);
	line-height: 1.08;
}

/* The step title is a Heading widget now. Its class sits on the widget
   wrapper, so `.rg-step :is(h2, h3, h4)` no longer reaches it — the rules
   above bind to the `<hN>` *inside* the wrapper, and without this the title
   would take the section-heading scale and the display face. Same cascade
   position as `.elementor-widget-heading h2.elementor-heading-title`, won
   on order. The margin goes too: the step grid's row gap supplies that
   4px now, and a margin that collapsed out of the wrapper would double it. */
.rg-step :is(h2, h3, h4).elementor-heading-title {
	font-family: var(--rg-font-body);
	font-size: 1.05rem;
	font-weight: 700;
	letter-spacing: 0;
	line-height: 1.08;
	margin: 0;
}

/* Except inside the page band: there the h1 is the title, and an h2 at
   nearly the same size reads as a second one — "Also at the counter"
   rendered bigger than most page titles. Section-head scale, same as the
   form headings, keeps the in-band hierarchy honest. */
.rg-pagehead h2 {
	font-size: 1.6rem;
	line-height: 1.25;
	letter-spacing: -0.01em;
}

.rg-lead {
	font-size: 1.16rem;
	line-height: 1.7;
	color: var(--rg-bark);
	max-width: none;
}

.rg-lead--light,
.rg-cta .rg-lead {
	color: #D8E7D6;
	max-width: 52ch;
}

.rg-cta .rg-lead {
	margin: 0;
}

/* Opening hours table — the plugin renders `<table class="rgp-hours">`,
   so this is keyed off the class that actually ships.

   `width: 100%` is doing real work here and is worth keeping: it is what
   guarantees the table reflows instead of overflowing. Swept at 400 / 320 /
   280 / 240px on / and /contact/, the table tracks its container exactly
   and the document never scrolls sideways (its min-content is 274px and
   257px, so it still fits at the 320px WCAG reflow threshold). Wrapping it
   in a scroll box instead was tried and reverted — the table stopped being
   a direct child of the pagehead widget, `:has(> .rg-opening-hours)` stopped
   matching, and the desktop two-column layout above collapsed. */
.rg-opening-hours,
.rgp-hours {
	width: 100%;
	border-collapse: collapse;
	background: #fff;
	border: 1px solid var(--rg-line-soft);
	border-radius: var(--rg-radius-sm);
	overflow: hidden;
	box-shadow: var(--rg-shadow-1);
}

.rg-opening-hours th,
.rg-opening-hours td,
.rgp-hours th,
.rgp-hours td {
	padding: 0.6rem 1rem;
	/* Hello Elementor's reset ships `table td, table th { border: 1px solid
	   hsla(0,0%,50%,.502) }`, and the old rule here only reset
	   border-bottom — so the top and sides of every cell stayed grey and
	   the reset's grey nth-child striping showed through untouched. Both
	   are now set here, at a specificity that outranks the reset. */
	border: 1px solid var(--rg-line);
	text-align: left;
	font-size: 0.94rem;
	font-variant-numeric: tabular-nums;
}

/* No striping: the hairlines and the highlighted "Right now" row already
   carry the structure, and grey bands were the loudest default tell left
   on the page. Rows get a sand wash on hover instead — an affordance the
   grey version only gave on a device with a pointer. */
.rg-opening-hours tbody tr:nth-child(odd) > td,
.rgp-hours tbody tr:nth-child(odd) > td {
	background: transparent;
}

@media (hover: hover) {
	.rg-opening-hours tbody tr:hover > td,
	.rgp-hours tbody tr:hover > td {
		background: transparent;
	}

	.rg-opening-hours tbody tr:not(.rgp-hours__today):not(.rgp-hours__is-today):hover > td,
	.rgp-hours tbody tr:not(.rgp-hours__today):not(.rgp-hours__is-today):hover > td {
		background: rgba(244, 241, 231, 0.65);
	}
}

/* Keep the day column on one line: the "Right now" label is long enough
   that auto table layout starves the day column and breaks
   "Monday – Friday" across two rows.

   The background is reset in the same rule: the `td` striping above was
   cleared but the day cells are `th`, and Hello Elementor's reset paints
   `table th` with `rgba(128,128,128,.07)` — a flat grey that made the
   label column read as an untouched spreadsheet. Day and time are
   distinguished by weight and colour instead, which is how a printed
   opening-hours panel does it. */
.rg-opening-hours th,
.rgp-hours th {
	white-space: nowrap;
	background: transparent;
	letter-spacing: -0.005em;
}

/* The status cell is the one that has to wrap in a 4-up column — balance
   it rather than stranding "9am" on a line of its own. */
.rg-opening-hours td,
.rgp-hours td {
	text-wrap: balance;
}

.rg-opening-hours tr:last-child th,
.rg-opening-hours tr:last-child td,
.rgp-hours tr:last-child th,
.rgp-hours tr:last-child td {
	border-bottom: none;
}

.rg-opening-hours th {
	font-weight: 600;
	color: var(--rg-ink);
}

.rg-opening-hours td,
.rgp-hours td {
	color: var(--rg-bark);
	font-weight: 550;
	font-variant-numeric: tabular-nums;
}

.rg-opening-hours .rg-closed {
	color: var(--rg-amber-dark);
	font-weight: 600;
}

/* The live "Right now" row: the one row a visitor actually looks for, so
   it gets the tint and a spine rather than sitting flush with the rest. */
.rgp-hours tr.rgp-hours__today {
	background: var(--rg-mist);
	box-shadow: inset 3px 0 0 var(--rg-leaf);
}

.rgp-hours tr.rgp-hours__today th {
	color: var(--rg-forest);
	font-weight: 650;
}

.rgp-hours tr.rgp-hours__today td {
	color: var(--rg-pine);
	font-weight: 700;
}

/* Today's own day row, seeded with a small "Today" tag. The Right-now row
   keeps the strongest treatment (solid mist + leaf spine); the day row gets
   a translucent wash of the same tint so the two read as related rather
   than competing. The tag is pine, not leaf: on a ~10px label, leaf's
   white contrast is marginal while pine's is 7.5:1. */
.rgp-hours tr.rgp-hours__is-today {
	background: rgba(234, 243, 236, 0.55);
}

.rgp-hours tr.rgp-hours__is-today th {
	color: var(--rg-forest);
}

.rgp-hours__today-tag {
	display: inline-block;
	margin-left: 0.45rem;
	padding: 0.12rem 0.5rem;
	border-radius: 999px;
	background: var(--rg-pine);
	color: #fff;
	font-family: var(--rg-font-body);
	font-size: 0.62rem;
	font-weight: 650;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	vertical-align: 1px;
}

/* =============================================================
   8. Header surfaces
   ============================================================= */
.rg-announce {
	background: var(--rg-announce);
	color: rgba(255, 255, 255, 0.88);
	font-size: 0.86rem;
	font-weight: 500;
}

.rg-announce a {
	color: #fff;
	text-decoration: none;
	font-weight: 600;
}

@media (hover: hover) {
	.rg-announce a:hover {
		color: #CFE2F7;
	}
}

.rg-announce__text strong {
	color: #fff;
	font-weight: 650;
}

.rg-announce .rgp-status {
	background: rgba(255, 255, 255, 0.14);
	border-color: rgba(255, 255, 255, 0.3);
	color: #fff;
}/* Sticky lives on the Theme Builder wrapper, not on .rg-header: the
   wrapper's parent is the page, so there is room to travel. On .rg-header
   itself sticky never engaged — its containing block (the wrapper) is
   exactly as tall as the header, so the bar scrolled away with the page
   no matter what `top` said.

   The admin-bar var keeps the bar visible below WP's own toolbar for the
   logged-in owner; anonymous visitors get top: 0. */
header.elementor-location-header {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 50;
}

.rg-header {
	/* Was --rg-paper (cream); now the logo PNG's own ground so the mark
   reads as printed on the bar rather than pasted onto it. */
	background: var(--rg-header-bg);
	border-bottom: 1px solid var(--rg-line);
	box-shadow: none;
}

.rg-header .rg-nav a {
	position: relative;
	color: var(--rg-ink);
	text-decoration: none;
	font-weight: 550;
	font-size: 0.97rem;
	padding: 0.75rem 0.6rem 0.65rem;
	border-bottom: 2px solid transparent;
	transition: border-color 0.2s ease, color 0.2s ease;
}

.rg-header .rg-nav a:focus-visible,
.rg-header .rg-nav .current-menu-item > a,
.rg-header .rg-nav .current_page_item > a {
	background: transparent;
	border-bottom-color: var(--rg-brick);
	color: var(--rg-forest);
}

@media (hover: hover) {
	.rg-header .rg-nav a:hover {
		background: transparent;
		border-bottom-color: var(--rg-brick);
		color: var(--rg-forest);
	}
}

.rg-header .rg-nav .current-menu-item > a,
.rg-header .rg-nav .current_page_item > a {
	font-weight: 650;
	box-shadow: none;
}

.rg-logo {
	flex: 0 0 auto;
	display: inline-flex;
	transition: transform 0.2s ease;
}

@media (hover: hover) {
	.rg-logo:hover {
		transform: scale(1.02);
	}
}

/* Wordmark: the footer's typographic lockup — "Rose Green" in the display
   face over a tracking-caps "PHARMACY" sub-line. Pure type, so it inherits
   the palette on the dark footer; the header itself uses the real logo
   image, which needs no such styling. */
.rg-wordmark {
	display: inline-flex;
	flex-direction: column;
	line-height: 1;
	text-decoration: none;
	color: var(--rg-forest);
}

.rg-wordmark__name {
	font-family: var(--rg-font-display);
	font-weight: 600;
	font-size: 1.5rem;
	letter-spacing: -0.012em;
}

.rg-wordmark__sub {
	font-family: var(--rg-font-body);
	font-weight: 650;
	font-size: 0.6rem;
	letter-spacing: 0.34em;
	text-transform: uppercase;
	color: var(--rg-leaf);
	margin-top: 0.32rem;
}

@media (max-width: 1024px) and (min-width: 768px) {
	.rg-wordmark__name {
		font-size: 1.3rem;
	}
}

/* Elementor burger toggle brought into the brand */
.rg-header .elementor-menu-toggle {
	color: var(--rg-pine);
	border: 1px solid var(--rg-line);
	border-radius: 12px;
	padding: 0.45rem 0.6rem;
	background: #fff;
}

@media (hover: hover) {
	.rg-header .elementor-menu-toggle:hover {
		background: var(--rg-mist);
	}
}

.rg-header .elementor-nav-menu--dropdown {
	background: #fff;
	border-radius: var(--rg-radius-sm);
	box-shadow: var(--rg-shadow-2);
	border: 1px solid var(--rg-line-soft);
	margin-top: 8px;
}

.rg-header .elementor-nav-menu--dropdown a {
	color: var(--rg-ink);
}

.rg-header .elementor-nav-menu--dropdown a:focus-visible {
	background: var(--rg-mist);
	color: var(--rg-forest);
}

@media (hover: hover) {
	.rg-header .elementor-nav-menu--dropdown a:hover {
		background: var(--rg-mist);
		color: var(--rg-forest);
	}
}

/* =============================================================
   9. Footer surfaces
   ============================================================= */
.rg-footer {
	background: var(--rg-forest);
	border-top: 4px solid var(--rg-leaf);
	color: #E9EFE6;
}

.rg-footer a {
	color: #C9D8C4;
	text-decoration: none;
	transition: color 0.2s ease, gap 0.2s ease;
}

/* The legal line is prose with an embedded link. Nav-style link styling
   (colour only) fails two ways here: Lighthouse's link-in-text-block
   audit, and a real reader — #C9D8C4 next to #C9D8C4 is indistinguishable
   until hover. Underline just this one link; the nav lists keep their
   colour-only treatment because there the link/scent context is the list. */
.rg-footer .rg-footer__legal a {
	text-decoration: underline;
	text-underline-offset: 0.18em;
	text-decoration-color: rgba(201, 216, 196, 0.6);
	transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

@media (hover: hover) {
	.rg-footer .rg-footer__legal a:hover {
		text-decoration-color: #fff;
	}
}

.rg-footer a:focus-visible {
	color: #fff;
}

@media (hover: hover) {
	.rg-footer a:hover {
		color: #fff;
	}
}

.rg-footer h4,
.rg-footer .rg-footer__heading {
	font-family: var(--rg-font-body);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #A9BFA3;
	margin: 0 0 1rem;
}

.rg-footer ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.6rem;
}

/* The footer's Pharmacy column is an Elementor nav widget while the other
   two are plain lists, and that difference shows up twice: Elementor pads
   each link `13px 20px` (56px pitch against its neighbour's 34px), and the
   heading lives in a separate widget joined by the column's 12px flex gap,
   where the other columns keep heading and list in one widget — so its
   first line also sat 12px low. Padding to zero and matching the list's
   line-height puts all three columns on one grid. */
.rg-footer .elementor-nav-menu li > a {
	padding: 0;
	line-height: 1.6;
}

.rg-footer .elementor-widget-nav-menu {
	margin-top: -12px;
}

.rg-footer .rg-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem 2rem;
	justify-content: space-between;
	border-top: 1px solid rgba(255, 255, 255, 0.14);
	padding-top: 1.5rem;
	color: #9FB49A;
	font-size: 0.88rem;
}

/* The legal line is one continuous sentence — copyright, registration and
   superintendent, joined by · — so it must flow as prose. It was set to
   `display: grid`, which block-ifies every child: the leading text, the
   GPhC link and the trailing text each became their own grid row. That
   broke the copy into three fragments and, worse, forced a line break
   straight after the link — so the third line opened with a bare comma.
   Let it flow, and let it take the width the bar has spare (it shares the
   row only with the back-to-top button) so it sets in two lines, not three. */
.rg-footer .rg-footer__legal {
	flex: 1 1 auto;
	min-width: 0;
	/* Two constraints, both measured against the 1028px bar:
	   `calc(100% - 11rem)` reserves the 124px button plus the 32px column
	   gap so the back-to-top control stays on this line instead of wrapping
	   onto a row of its own; the 780px cap is where the sentence happens to
	   break well — past it the line picks up "GPhC" and orphans the number
	   onto the next line, and below it the words "General Pharmaceutical"
	   part company from "Council". At 780 the first line closes on
	   "Council," and the second opens with the whole "GPhC 1108826 · ..."
	   credential. */
	max-width: min(780px, calc(100% - 11rem));
}

.rg-footer ul a {
	position: relative;
	display: inline-block;
}

.rg-footer ul a::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -2px;
	width: 100%;
	height: 1.5px;
	background: currentColor;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.2s ease;
}

.rg-footer ul a:focus-visible::after {
	transform: scaleX(1);
}

@media (hover: hover) {
	.rg-footer ul a:hover::after {
		transform: scaleX(1);
	}
}

/* The seeder names these containers `rg-footer-col` (one underscore pair
   less than the other footer hooks) — key off the class that actually
   ships. `overflow-wrap` keeps an unbreakable token such as the contact
   email inside its column instead of pushing the page 14px wide. */
.rg-footer .rg-footer-col > .e-con-inner,
.rg-footer .rg-footer-col > .elementor-widget-text-editor,
.rg-footer .rg-footer-col p {
	color: #C9D8C4;
	font-size: 0.95rem;
	line-height: 1.6;
	overflow-wrap: break-word;
}

/* Back to top */
.rg-backtotop {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.5rem 1rem;
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: 6px;
	color: #D8E7D6 !important;
	font-size: 0.86rem;
	font-weight: 600;
	transition: background-color 0.2s ease, color 0.2s ease;
}

@media (hover: hover) {
	.rg-backtotop:hover {
		background: rgba(255, 255, 255, 0.1);
		color: #fff !important;
	}
}

/* =============================================================
   10. Everyday usability refinements
   Keep controls and content easy to use without adding visual effects.
   ============================================================= */

/* 1. Prevent sticky navigation from covering section headings when a
   visitor follows an in-page link. */
[id] {
	scroll-margin-top: 6rem;
}

/* 2. Give links in long-form copy a clear, familiar affordance. */
.elementor-widget-text-editor p a,
.rg-footer p a {
	text-decoration-line: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

/* 3. Make hover feedback consistent, including links outside navigation. */
@media (hover: hover) {
	a:hover {
		text-decoration-thickness: 2px;
	}
}

/* 4. Keep keyboard focus visible on links that remove their underline.
   The ring width matches the base `:focus-visible` rule above — focus was
   being drawn four different ways across the sheets (2px here, 2.5px on
   the base rule, 3px on buttons, plus Hello Elementor's black 2px in the
   reset). One width, so a keyboard user sees the same ring everywhere.
   Only the colour changes: `leaf` reads against white surfaces and the
   reset's `moss` against the dark button fills, where `leaf` would sit at
   2.8:1 and fail the 3:1 non-text minimum. */
a:focus-visible {
	outline: 2.5px solid var(--rg-leaf);
	outline-offset: 2px;
}

/* 5. Make phone-sized form text readable and avoid iOS zoom on focus. */
input,
select,
textarea,
button {
	font: inherit;
}

input,
select,
textarea {
	max-width: 100%;
	border: 1px solid rgba(27, 82, 49, 0.28);
	border-radius: 6px;
	background: #fff;
	color: var(--rg-ink);
}

@media (max-width: 767px) {
	input,
	select,
	textarea {
		font-size: 16px;
	}
}

/* 6. Keep wide opening-hours tables legible on narrow screens. */
.rg-opening-hours,
.rgp-hours {
	font-size: 0.96rem;
}

@media (max-width: 480px) {
	.rg-opening-hours th,
	.rg-opening-hours td,
	.rgp-hours th,
	.rgp-hours td {
		padding: 0.65rem 0.7rem;
		font-size: 0.9rem;
	}
}

/* 7. Stop long addresses and email links from widening the page. */
.elementor-widget-text-editor,
.rg-card,
.rg-step,
.rg-footer {
	min-width: 0;
	overflow-wrap: anywhere;
}

/* 8. Use a consistent baseline for inline photos and logos. */
.elementor-widget-image img {
	vertical-align: middle;
}

/* 9. Give tap targets a practical minimum on touch devices. */
@media (pointer: coarse) {
	.rg-header .elementor-menu-toggle,
	.rg-header .elementor-nav-menu--dropdown a,
	.rg-btn .elementor-button,
	.rg-phone-chip,
	.rg-backtotop {
		min-height: 44px;
	}

	.rg-header .elementor-menu-toggle,
	.rg-header .elementor-nav-menu--dropdown a {
		display: inline-flex;
		align-items: center;
	}
}

/* 9a. Mobile header order: wordmark left, everything else right. The
   burger is the last flex child; Elementor's widget order left a gap
   that made the toggle float centre-right. Pin the actions cluster and
   the burger to the end of the row. */
@media (max-width: 1024px) {
	.rg-header .rg-header__bar > .e-con-inner > .rg-header__actions {
		margin-left: auto;
	}
}

/* 9b. Sticky mobile action bar — Call / Order repeat / Directions.
   Pattern 12 from the field: for a local pharmacy, one-tap call and
   directions are conversion essentials, and they belong within thumb
   reach for the whole visit. Phone-first only; desktop keeps the header
   controls it already has. Safe-area padding for notched phones. */
.rg-actionbar {
	display: none;
}

@media (max-width: 767px) {
	.rg-actionbar {
		position: fixed;
		inset: auto 0 0 0;
		z-index: 60;
		display: grid;
		grid-template-columns: 1fr 1fr 1fr;
		background: var(--rg-header-bg);
		border-top: 1px solid var(--rg-line);
		padding-bottom: env(safe-area-inset-bottom, 0px);
	}

	/* The bar covers ~60px of every page bottom: give the document the
	   matching space so the last line of copy (and the footer legal line)
	   can never be pinned under it. */
	body {
		padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px));
	}

	.rg-actionbar a {
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 0.15rem;
		padding: 0.55rem 0.25rem 0.6rem;
		min-height: 56px;
		color: var(--rg-forest);
		font-size: 0.68rem;
		font-weight: 650;
		letter-spacing: 0.03em;
		text-transform: uppercase;
		text-decoration: none;
	}

	.rg-actionbar a svg {
		width: 20px;
		height: 20px;
		color: var(--rg-pine);
	}

	.rg-actionbar__cta {
		background: var(--rg-forest);
		color: #fff !important;
	}

	/* `.rg-actionbar a svg` above is (0,1,2) and out-ranked a bare
	   `.rg-actionbar__cta svg` (0,1,1), so the CTA's icon inherited the
	   pine stroke and vanished against its forest fill. The `a` in this
	   selector puts it at (0,2,2) and the lime back on top. */
	.rg-actionbar a.rg-actionbar__cta svg {
		color: var(--rg-lime);
	}
}

/* 10. Preserve useful content when visitors print pharmacy information. */
@media print {
	.rgp-hours,
	.rg-opening-hours {
		border: 1px solid #999;
		box-shadow: none;
		break-inside: avoid;
	}

	.rgp-hours tr,
	.rg-opening-hours tr {
		background: #fff !important;
		color: #000 !important;
	}

	.rgp-hours th,
	.rgp-hours td,
	.rg-opening-hours th,
	.rg-opening-hours td {
		color: #000 !important;
		border-color: #bbb;
	}
}

/* =============================================================
   11. Inline links inside running text
   ============================================================= */
/* Elementor ships `.elementor a { text-decoration: none }`, which outranks
   the base `a` rule above — so a link sitting inside a sentence was told
   apart from the sentence only by colour, and pine on ink isn't a big
   enough difference for axe to accept (link-in-text-block). The order
   panel's phone number and the appointment lead were the two places it
   fired. Underline is restored wherever a link is part of a paragraph,
   at an id-rooted specificity so it beats Elementor's rule outright;
   nav, footer, list and button links keep the flat treatment they're
   designed with. */
#content p a {
	text-decoration: underline;
}

/* =============================================================
   12. Interaction and default-styling clean-up
   ============================================================= */

/* 1. Hello Elementor's reset styles bare controls in the WordPress
   accent pink:

       [type="button"], [type="submit"], [type="reset"], button {
           border: 1px solid #c36; color: #c36;
       }
       button:hover, button:focus { background: #c36; border-color: #c36; }

   The `a` half of that reset is already neutralised by the base link rule
   near the top of this file; the control half never was. Nothing on the
   site renders a bare <button> today, so it is latent rather than
   visible — but the first one added comes out magenta. Restate both
   halves here in brand terms. Specificity note: Elementor's own
   `.elementor-button` rules are more specific than these, and this sheet
   loads after the parent theme, so widget and plugin buttons keep their
   own styling and only genuinely naked controls are caught. */
button,
input[type="button"],
input[type="submit"],
input[type="reset"] {
	border-color: var(--rg-pine);
	color: var(--rg-pine);
}

button:focus-visible,
input[type="button"]:focus-visible,
input[type="submit"]:focus-visible,
input[type="reset"]:focus-visible {
	background-color: var(--rg-forest);
	border-color: var(--rg-forest);
	color: #fff;
}

@media (hover: hover) {
	button:hover,
	input[type="button"]:hover,
	input[type="submit"]:hover,
	input[type="reset"]:hover {
		background-color: var(--rg-forest);
		border-color: var(--rg-forest);
		color: #fff;
	}
}

/* 2. Service cards are the one link-shaped surface with no pressed state.
   The hover above deliberately refuses a lift (see the note there), so the
   acknowledgement has to come from the border and fill instead: the
   hairline goes fully opaque green and the card tints, which reads as
   "depressed" without anything moving. Only link cards get it — a
   non-interactive card shouldn't pretend to be pressable. */
a.rg-card:active,
.elementor a.rg-card:active {
	border-color: var(--rg-leaf);
	background: var(--rg-mist);
}

/* =============================================================
   13. Seeded markup: stat icons & the announcement link
   ============================================================= */

/* Each figure in the stat band now carries a small line icon (clock,
   shield, tick) seeded inline ahead of the number. The band already
   splits its figures with translucent hairlines, so the icons take that
   same alpha rather than introducing a solid accent — and they are sized
   here because the seeded SVGs ship no width/height of their own and
   would otherwise fall back to SVG's 300×150 default. *//* Item 4: icon-above-number is plugin marketing language. The figures
   are strong enough naked — retire the glyph and let the grid's auto
   column collapse. The widget wrapper itself is what carries the class,
   so this removes it from the grid flow entirely. */
.rg-stat__icon {
	display: none !important;
}

.rg-stat__icon svg {
	display: block;
	width: 100%;
	height: 100%;
}

@media (max-width: 767px) {
	.rg-stat__icon {
		width: 28px;
		height: 28px;
	}
}

/* The announcement bar is now one link — text plus trailing arrow. The
   arrow gets the same 3px slide the card links use on hover, instead of
   the whole line shifting; the motion guard keeps it still for visitors
   who have asked the system to reduce motion. Colour needs nothing: the
   bar's own `.rg-announce a` rule already paints the anchor white. */
.rg-announce__link {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
}

.rg-announce__more {
	font-weight: 500;
	transition: transform 0.2s ease;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
	.rg-announce__link:hover .rg-announce__more {
		transform: translateX(3px);
	}
}
