/* ==========================================================================
   AGROROOF DESIGN SYSTEM  v1.0.0
   --------------------------------------------------------------------------
   Every rule is scoped under .ags-on, and each block is gated behind its own
   module class (.ags-m-calc, .ags-m-header, ...). Turning a module off in the
   settings screen removes its class, which removes its styling. Nothing here
   changes content, markup or behaviour.

   Design direction
   ----------------
   The business sells roofing by the kilogram and its whole pitch is that the
   material is measured, not guessed. So the visual signature is a measuring
   edge: a fine tick rule, drawn in pure CSS with no images, that marks the
   places where a real measurement is being reported.

   The one loud moment is the calculator's price panel, which becomes a dark
   instrument readout. Everything around it stays quiet.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TOKENS
   The four brand colours arrive inline from the settings screen. Everything
   below is derived from them so a single colour change flows through.
   -------------------------------------------------------------------------- */

.ags-on {
	--ag-forest: #14532d;
	--ag-green: #4aa529;
	--ag-ink: #14211a;
	--ag-paper: #f3f6f1;

	--ag-green-dark: color-mix(in srgb, var(--ag-green) 82%, #000);
	--ag-green-soft: color-mix(in srgb, var(--ag-green) 12%, #fff);
	--ag-forest-soft: color-mix(in srgb, var(--ag-forest) 8%, #fff);

	--ag-zinc: color-mix(in srgb, var(--ag-ink) 58%, #fff);
	--ag-line: color-mix(in srgb, var(--ag-ink) 12%, #fff);
	--ag-surface: #ffffff;
	--ag-amber: #b45309;

	/* Fluid type. Sizes interpolate between a 360px phone and a 1440px
	   desktop, so a heading never needs a separate mobile value. */
	--ag-fs-xs: clamp(0.75rem, 0.72rem + 0.14vw, 0.8125rem);
	--ag-fs-sm: clamp(0.8125rem, 0.78rem + 0.19vw, 0.9375rem);
	--ag-fs-base: clamp(0.9375rem, 0.9rem + 0.24vw, 1.0625rem);
	--ag-fs-lg: clamp(1.0625rem, 1rem + 0.38vw, 1.25rem);
	--ag-fs-h4: clamp(1.125rem, 1rem + 0.66vw, 1.5rem);
	--ag-fs-h3: clamp(1.3125rem, 1.1rem + 1.05vw, 1.875rem);
	--ag-fs-h2: clamp(1.5rem, 1.15rem + 1.72vw, 2.5rem);
	--ag-fs-h1: clamp(1.875rem, 1.32rem + 2.72vw, 3.5rem);

	/* Fluid spacing on the same principle. */
	--ag-s2: clamp(0.5rem, 0.45rem + 0.24vw, 0.75rem);
	--ag-s3: clamp(0.75rem, 0.66rem + 0.38vw, 1.125rem);
	--ag-s4: clamp(1rem, 0.85rem + 0.66vw, 1.75rem);
	--ag-s5: clamp(1.5rem, 1.2rem + 1.3vw, 2.75rem);
	--ag-s6: clamp(2.25rem, 1.5rem + 3.3vw, 5rem);

	--ag-radius: 14px;
	--ag-radius-sm: 10px;
	--ag-bar-h: 62px;

	--ag-display: "Bricolage Grotesque", "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--ag-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--ag-mono: "DM Mono", ui-monospace, "SF Mono", "Roboto Mono", Menlo, monospace;

	--ag-tick: color-mix(in srgb, var(--ag-ink) 26%, transparent);
}

/* Older browsers that do not support color-mix still get sensible values. */
@supports not (color: color-mix(in srgb, red 50%, blue)) {
	.ags-on {
		--ag-green-dark: #3b8420;
		--ag-green-soft: #edf7e7;
		--ag-forest-soft: #eef3ef;
		--ag-zinc: #5f6f66;
		--ag-line: #dee6dc;
		--ag-tick: rgba(20, 33, 26, 0.26);
	}
}

/* --------------------------------------------------------------------------
   2. THE SIGNATURE — a measuring edge
   Two stacked gradients: short minor ticks every 7px, longer major ticks
   every 35px. No image, no request, a few bytes of CSS.
   -------------------------------------------------------------------------- */

.ags-on .ags-rule,
.ags-on .psc-price-card::before {
	background-image:
		repeating-linear-gradient(90deg, var(--ag-tick) 0 1.5px, transparent 1.5px 35px),
		repeating-linear-gradient(90deg, var(--ag-tick) 0 1px, transparent 1px 7px);
	background-size: 35px 11px, 7px 6px;
	background-position: left bottom, left bottom;
	background-repeat: repeat-x, repeat-x;
}

/* --------------------------------------------------------------------------
   3. TYPOGRAPHY
   Applied only where Elementor has not already set a value inline, so any
   deliberate choice already made on a page is left exactly as it is.
   -------------------------------------------------------------------------- */

.ags-on.ags-m-type body,
body.ags-on.ags-m-type {
	font-family: var(--ag-body);
	font-size: var(--ag-fs-base);
	line-height: 1.62;
	color: var(--ag-ink);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

.ags-on.ags-m-type h1,
.ags-on.ags-m-type h2,
.ags-on.ags-m-type h3,
.ags-on.ags-m-type h4,
.ags-on.ags-m-type h5,
.ags-on.ags-m-type h6 {
	font-family: var(--ag-display);
	font-weight: 700;
	line-height: 1.14;
	letter-spacing: -0.018em;
	color: var(--ag-forest);
	text-wrap: balance;
}

.ags-on.ags-m-type h1 { font-size: var(--ag-fs-h1); font-weight: 800; }
.ags-on.ags-m-type h2 { font-size: var(--ag-fs-h2); }
.ags-on.ags-m-type h3 { font-size: var(--ag-fs-h3); }
.ags-on.ags-m-type h4 { font-size: var(--ag-fs-h4); }

.ags-on.ags-m-type p { text-wrap: pretty; }

/* Numbers in body copy line up in columns. */
.ags-on.ags-m-type table,
.ags-on.ags-m-type .price,
.ags-on.ags-m-type .amount {
	font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------------------
   4. BUTTONS AND FIELDS
   -------------------------------------------------------------------------- */

.ags-on.ags-m-forms .elementor-button,
.ags-on.ags-m-forms .ast-button,
.ags-on.ags-m-forms .wp-block-button__link {
	border-radius: var(--ag-radius-sm);
	font-family: var(--ag-display);
	font-weight: 700;
	letter-spacing: 0.005em;
	line-height: 1.2;
	transition: transform 0.14s ease, box-shadow 0.14s ease, background-color 0.14s ease;
	min-height: 46px;
}

.ags-on.ags-m-forms .elementor-button:hover,
.ags-on.ags-m-forms .ast-button:hover {
	transform: translateY(-1px);
	box-shadow: 0 6px 18px -8px color-mix(in srgb, var(--ag-ink) 55%, transparent);
}

.ags-on.ags-m-forms input[type="text"],
.ags-on.ags-m-forms input[type="email"],
.ags-on.ags-m-forms input[type="tel"],
.ags-on.ags-m-forms input[type="number"],
.ags-on.ags-m-forms textarea,
.ags-on.ags-m-forms select {
	border-radius: var(--ag-radius-sm);
	border: 1.5px solid var(--ag-line);
	/* 16px minimum stops iOS Safari zooming the page when a field is tapped. */
	font-size: max(16px, var(--ag-fs-base));
	min-height: 46px;
	background: var(--ag-surface);
	color: var(--ag-ink);
}

.ags-on.ags-m-forms input:focus,
.ags-on.ags-m-forms textarea:focus,
.ags-on.ags-m-forms select:focus {
	border-color: var(--ag-green);
	box-shadow: 0 0 0 3px var(--ag-green-soft);
	outline: none;
}

/* Keyboard users must always be able to see where they are. */
.ags-on a:focus-visible,
.ags-on button:focus-visible,
.ags-on [tabindex]:focus-visible {
	outline: 2.5px solid var(--ag-green);
	outline-offset: 2px;
	border-radius: 4px;
}

/* --------------------------------------------------------------------------
   5. HEADER
   The language selector was taking roughly a third of the header on a phone.
   It becomes a compact control so the logo can breathe.
   -------------------------------------------------------------------------- */

@media (max-width: 921px) {
	.ags-on.ags-m-header .gtranslate_wrapper,
	.ags-on.ags-m-header .gt_switcher_wrapper,
	.ags-on.ags-m-header .gt_container-,
	.ags-on.ags-m-header .gtranslate_wrapper select,
	.ags-on.ags-m-header .gt_selector {
		max-width: 104px !important;
		min-width: 0 !important;
		width: auto !important;
	}

	.ags-on.ags-m-header .gtranslate_wrapper select,
	.ags-on.ags-m-header .gt_selector {
		font-size: 13px !important;
		padding: 7px 8px !important;
		height: auto !important;
		border-radius: 8px !important;
		border: 1px solid var(--ag-line) !important;
		background-color: var(--ag-surface) !important;
		color: var(--ag-zinc) !important;
	}

	.ags-on.ags-m-header .site-logo-img img,
	.ags-on.ags-m-header .custom-logo-link img {
		max-height: 46px;
		width: auto;
	}
}

.ags-on.ags-m-header .site-header,
.ags-on.ags-m-header .ast-main-header-wrap {
	box-shadow: 0 1px 0 var(--ag-line);
}

/* --------------------------------------------------------------------------
   6. HERO SECTIONS
   White text over a bright photograph is currently very hard to read. A
   scrim restores contrast without touching the image itself, and headings
   are capped on small screens so they stop colliding.
   -------------------------------------------------------------------------- */

.ags-on.ags-m-hero .elementor-section[class*="elementor-top-section"] > .elementor-background-overlay {
	background-color: color-mix(in srgb, var(--ag-ink) 42%, transparent);
}

@media (max-width: 600px) {
	.ags-on.ags-m-hero h1 {
		font-size: clamp(1.6rem, 7.2vw, 2.05rem) !important;
		line-height: 1.16 !important;
		letter-spacing: -0.02em !important;
	}

	.ags-on.ags-m-hero h2 {
		font-size: clamp(1.4rem, 6vw, 1.75rem) !important;
		line-height: 1.2 !important;
	}

	/* Long centred paragraphs are hard work on a narrow screen. */
	.ags-on.ags-m-hero .elementor-widget-text-editor p {
		font-size: var(--ag-fs-base) !important;
		line-height: 1.55 !important;
	}
}

/* --------------------------------------------------------------------------
   7. FOOTER
   Dark text was sitting directly on a photograph, and the gaps between the
   three link columns ran to several screens on a phone.
   -------------------------------------------------------------------------- */

.ags-on.ags-m-footer .site-footer,
.ags-on.ags-m-footer footer.elementor-section,
.ags-on.ags-m-footer .elementor-location-footer > .elementor-section {
	position: relative;
}

.ags-on.ags-m-footer .site-footer::before,
.ags-on.ags-m-footer .elementor-location-footer > .elementor-section::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(
		180deg,
		color-mix(in srgb, var(--ag-forest) 88%, transparent),
		color-mix(in srgb, var(--ag-ink) 94%, transparent)
	);
	pointer-events: none;
	z-index: 0;
}

.ags-on.ags-m-footer .site-footer > *,
.ags-on.ags-m-footer .elementor-location-footer > .elementor-section > * {
	position: relative;
	z-index: 1;
}

.ags-on.ags-m-footer .site-footer,
.ags-on.ags-m-footer .site-footer p,
.ags-on.ags-m-footer .site-footer li,
.ags-on.ags-m-footer .site-footer a {
	color: #eef3ee;
}

.ags-on.ags-m-footer .site-footer h2,
.ags-on.ags-m-footer .site-footer h3,
.ags-on.ags-m-footer .site-footer h4 {
	color: #ffffff;
	font-size: var(--ag-fs-lg);
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.ags-on.ags-m-footer .site-footer a:hover {
	color: var(--ag-green);
}

@media (max-width: 782px) {
	/* Collapse the very large vertical rhythm the footer currently uses. */
	.ags-on.ags-m-footer .site-footer .elementor-widget-wrap > .elementor-element,
	.ags-on.ags-m-footer .elementor-location-footer .elementor-widget-wrap > .elementor-element {
		margin-bottom: var(--ag-s3);
	}

	.ags-on.ags-m-footer .site-footer li,
	.ags-on.ags-m-footer .elementor-location-footer li {
		margin-bottom: 2px;
		line-height: 1.9;
	}
}

/* --------------------------------------------------------------------------
   8. THE CALCULATOR
   The calculator plugin scopes its own variables to .psc-wrap, so almost all
   of this is a token swap rather than a fight over selectors. Its markup and
   its JavaScript are untouched.
   -------------------------------------------------------------------------- */

.ags-on.ags-m-calc .psc-wrap {
	--psc-primary: var(--ag-green);
	--psc-primary-light: var(--ag-green);
	--psc-primary-soft: var(--ag-green-soft);
	--psc-bg: var(--ag-surface);
	--psc-card: var(--ag-surface);
	--psc-text: var(--ag-ink);
	--psc-muted: var(--ag-zinc);
	--psc-border: var(--ag-line);
	--psc-radius: var(--ag-radius);

	font-family: var(--ag-body);
	max-width: 680px;
}

.ags-on.ags-m-calc .psc-card {
	box-shadow: 0 1px 2px rgba(20, 33, 26, 0.05), 0 8px 24px -18px rgba(20, 33, 26, 0.35);
}

.ags-on.ags-m-calc .psc-card-title {
	font-family: var(--ag-display);
	font-size: var(--ag-fs-xs);
	font-weight: 700;
	letter-spacing: 0.13em;
	text-transform: uppercase;
	color: var(--ag-zinc);
}

/* Every reported measurement is set in the mono face and lines up in a
   column. This is the "instrument" voice of the interface. */
.ags-on.ags-m-calc .psc-val,
.ags-on.ags-m-calc .psc-price-big,
.ags-on.ags-m-calc .psc-breakdown span:last-child {
	font-family: var(--ag-mono);
	font-variant-numeric: tabular-nums;
	letter-spacing: -0.02em;
}

.ags-on.ags-m-calc .psc-result-box {
	background: var(--ag-forest-soft);
	border: 1px solid var(--ag-line);
	border-radius: var(--ag-radius-sm);
}

.ags-on.ags-m-calc .psc-lbl {
	font-size: var(--ag-fs-xs);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ag-zinc);
}

.ags-on.ags-m-calc .psc-val {
	font-size: var(--ag-fs-lg);
	font-weight: 500;
	color: var(--ag-forest);
}

/* --- The one loud moment: the price panel as a readout --- */

.ags-on.ags-m-calc .psc-price-card {
	position: relative;
	overflow: hidden;
	background: var(--ag-forest);
	border: none;
	border-radius: var(--ag-radius);
	padding: var(--ag-s4);
	color: #fff;
	box-shadow: 0 14px 34px -20px var(--ag-forest);
}

.ags-on.ags-m-calc .psc-price-card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 11px;
	--ag-tick: rgba(255, 255, 255, 0.42);
	transform: scaleY(-1);
}

.ags-on.ags-m-calc .psc-price-tag {
	font-family: var(--ag-display);
	font-size: var(--ag-fs-xs);
	font-weight: 700;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.72);
	margin-top: 6px;
}

.ags-on.ags-m-calc .psc-price-big {
	font-size: clamp(2.1rem, 1.4rem + 3.4vw, 3.1rem);
	font-weight: 500;
	line-height: 1.05;
	color: #fff;
	margin: 4px 0 2px;
}

.ags-on.ags-m-calc .psc-price-sub {
	font-size: var(--ag-fs-sm);
	color: rgba(255, 255, 255, 0.7);
}

/* --- Breakdown, transport, unit toggle --- */

.ags-on.ags-m-calc .psc-bd-row {
	font-size: var(--ag-fs-sm);
	padding: 9px 0;
	border-bottom: 1px solid var(--ag-line);
}

.ags-on.ags-m-calc .psc-bd-total {
	font-family: var(--ag-display);
	font-weight: 700;
	font-size: var(--ag-fs-lg);
	color: var(--ag-forest);
	border-bottom: none;
}

.ags-on.ags-m-calc .psc-transport-card {
	background: color-mix(in srgb, var(--ag-amber) 6%, #fff);
	border-color: color-mix(in srgb, var(--ag-amber) 26%, #fff);
}

.ags-on.ags-m-calc .psc-transport-partner {
	font-family: var(--ag-display);
	font-weight: 700;
	color: var(--ag-amber);
}

.ags-on.ags-m-calc .psc-transport-note {
	font-size: var(--ag-fs-sm);
	line-height: 1.55;
	color: var(--ag-ink);
}

/* The add-to-cart control, whichever class the plugin gave it. */
.ags-on.ags-m-calc .psc-wrap > button,
.ags-on.ags-m-calc .psc-wrap [class*="psc-add"],
.ags-on.ags-m-calc .psc-wrap [class*="psc-cart"],
.ags-on.ags-m-calc .psc-wrap [class*="psc-btn"] {
	font-family: var(--ag-display);
	font-weight: 800;
	font-size: var(--ag-fs-lg);
	letter-spacing: 0.01em;
	min-height: 54px;
	border-radius: var(--ag-radius-sm);
	box-shadow: 0 10px 24px -14px var(--ag-green);
}

/* On a phone the calculator ran to five screens of scrolling before a price
   appeared. Tightening the cards brings the price within about two. */
@media (max-width: 782px) {
	.ags-on.ags-m-calc .psc-card {
		padding: 15px 14px;
		margin-bottom: 10px;
		border-radius: 12px;
	}

	.ags-on.ags-m-calc .psc-card-title { margin-bottom: 11px; }
	.ags-on.ags-m-calc .psc-field { margin-bottom: 13px; }
	.ags-on.ags-m-calc .psc-row { gap: 10px; margin-bottom: 13px; }
	.ags-on.ags-m-calc .psc-input { padding: 12px; }
	.ags-on.ags-m-calc .psc-result-grid { gap: 8px; }
	.ags-on.ags-m-calc .psc-result-box { padding: 11px 10px; }
	.ags-on.ags-m-calc .psc-price-card { padding: 16px 15px; }
}

/* --------------------------------------------------------------------------
   9. MOBILE ACTION BAR
   Fixed to the bottom on phones. Never rendered on cart, checkout or account
   pages, where the Commerce Suite has its own bottom bar.
   -------------------------------------------------------------------------- */

.ags-bar {
	display: none;
}

@media (max-width: 921px) {
	.ags-on .ags-bar {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 9990;
		display: flex;
		gap: 8px;
		align-items: stretch;
		padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px));
		background: color-mix(in srgb, var(--ag-surface) 94%, transparent);
		backdrop-filter: saturate(1.5) blur(10px);
		-webkit-backdrop-filter: saturate(1.5) blur(10px);
		box-shadow: 0 -6px 22px -14px rgba(20, 33, 26, 0.6);
	}

	/* The measuring edge reappears along the top of the bar. */
	.ags-on .ags-bar::before {
		content: "";
		position: absolute;
		top: 0;
		left: 0;
		right: 0;
		height: 9px;
		background-image:
			repeating-linear-gradient(90deg, var(--ag-tick) 0 1.5px, transparent 1.5px 35px),
			repeating-linear-gradient(90deg, var(--ag-tick) 0 1px, transparent 1px 7px);
		background-size: 35px 9px, 7px 5px;
		background-position: left top, left top;
		background-repeat: repeat-x, repeat-x;
		opacity: 0.55;
		pointer-events: none;
	}

	.ags-on .ags-bar__btn {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 2px;
		min-height: 46px;
		padding: 6px 10px;
		border-radius: var(--ag-radius-sm);
		font-family: var(--ag-display);
		font-size: 11.5px;
		font-weight: 700;
		letter-spacing: 0.02em;
		text-decoration: none;
		line-height: 1.1;
	}

	.ags-on .ags-bar__btn svg {
		width: 19px;
		height: 19px;
		fill: currentColor;
		display: block;
	}

	.ags-on .ags-bar__btn--ghost {
		flex: 0 0 auto;
		min-width: 62px;
		color: var(--ag-forest);
		background: var(--ag-forest-soft);
		border: 1px solid var(--ag-line);
	}

	.ags-on .ags-bar__btn--solid {
		flex: 1 1 auto;
		flex-direction: row;
		gap: 8px;
		font-size: var(--ag-fs-base);
		color: #fff;
		background: var(--ag-green);
		box-shadow: 0 8px 20px -12px var(--ag-green);
	}

	.ags-on .ags-bar__btn--solid svg {
		width: 17px;
		height: 17px;
		fill: none;
	}

	.ags-on .ags-bar__btn:active {
		transform: translateY(1px);
	}

	/* Keep the last of the page reachable above the bar. */
	.ags-on.ags-has-bar body,
	body.ags-on.ags-has-bar {
		padding-bottom: var(--ag-bar-h);
	}

	.ags-on.ags-has-bar .site-footer,
	.ags-on.ags-has-bar .elementor-location-footer {
		margin-bottom: var(--ag-bar-h);
	}
}

/* --------------------------------------------------------------------------
   10. THE BACK-TO-TOP BUTTON
   It currently sits on top of the calculator and covers the Area (Sq.m)
   figure. This lifts it clear of both the readout and the action bar.
   -------------------------------------------------------------------------- */

.ags-on #ast-scroll-top,
.ags-on .ast-scroll-top-icon {
	width: 38px;
	height: 38px;
	line-height: 38px;
	font-size: 15px;
	border-radius: 50%;
	opacity: 0.9;
}

@media (max-width: 921px) {
	.ags-on.ags-has-bar #ast-scroll-top {
		bottom: calc(var(--ag-bar-h) + 12px) !important;
		right: 12px !important;
	}
}

/* --------------------------------------------------------------------------
   11. QUALITY FLOOR
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
	.ags-on *,
	.ags-on *::before,
	.ags-on *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

@media print {
	.ags-on .ags-bar,
	.ags-on #ast-scroll-top {
		display: none !important;
	}
}

/* --------------------------------------------------------------------------
   12. ORDER FLOW
   Everything below belongs to the module that sits around the calculator:
   the roll gallery, size shortcuts, reassurance row, WhatsApp quote and the
   price bar that follows the screen.
   -------------------------------------------------------------------------- */

/* --- Photos for the selected roll --- */

.ags-on .ags-gal {
	margin: 0 0 var(--ag-s3);
	animation: ags-fade 0.22s ease;
}

@keyframes ags-fade {
	from { opacity: 0; transform: translateY(4px); }
	to   { opacity: 1; transform: none; }
}

.ags-on .ags-gal__strip {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	padding-bottom: 4px;
	scrollbar-width: thin;
}

.ags-on .ags-gal__item {
	flex: 0 0 auto;
	scroll-snap-align: start;
	width: 132px;
	height: 100px;
	padding: 0;
	border: 1px solid var(--ag-line);
	border-radius: var(--ag-radius-sm);
	overflow: hidden;
	background: var(--ag-surface);
	cursor: zoom-in;
	transition: border-color 0.15s ease, transform 0.15s ease;
}

.ags-on .ags-gal__item:hover,
.ags-on .ags-gal__item:focus-visible {
	border-color: var(--ag-green);
	transform: translateY(-2px);
}

.ags-on .ags-gal__item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.ags-on .ags-gal__cap {
	margin: 8px 0 0;
	font-size: var(--ag-fs-sm);
	line-height: 1.45;
	color: var(--ag-zinc);
}

.ags-on .ags-gal__cap:empty { display: none; }

/* --- Enlarged photo --- */

.ags-on .ags-lb {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: color-mix(in srgb, var(--ag-ink) 92%, transparent);
	cursor: zoom-out;
}

.ags-on .ags-lb.is-open { display: flex; }

.ags-on .ags-lb__img {
	max-width: 100%;
	max-height: 88vh;
	border-radius: var(--ag-radius);
	box-shadow: 0 30px 70px -30px #000;
}

.ags-on .ags-lb__close {
	position: absolute;
	top: 14px;
	right: 16px;
	width: 42px;
	height: 42px;
	font-size: 26px;
	line-height: 1;
	color: #fff;
	background: rgba(255, 255, 255, 0.16);
	border: none;
	border-radius: 50%;
	cursor: pointer;
}

/* --- Size shortcuts --- */

.ags-on .ags-chips { margin: 0 0 var(--ag-s3); }

.ags-on .ags-chips__lbl {
	display: block;
	margin-bottom: 7px;
	font-size: var(--ag-fs-xs);
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--ag-zinc);
}

.ags-on .ags-chips__row {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
}

.ags-on .ags-chip {
	padding: 8px 13px;
	font-family: var(--ag-mono);
	font-size: var(--ag-fs-sm);
	font-variant-numeric: tabular-nums;
	color: var(--ag-forest);
	background: var(--ag-forest-soft);
	border: 1px solid var(--ag-line);
	border-radius: 999px;
	cursor: pointer;
	transition: all 0.14s ease;
}

.ags-on .ags-chip:hover { border-color: var(--ag-green); }

.ags-on .ags-chip.is-on {
	color: #fff;
	background: var(--ag-green);
	border-color: var(--ag-green);
}

/* --- Reassurance above Add to Cart --- */

.ags-on .ags-trust {
	margin: 0 0 var(--ag-s3);
	padding: 13px 15px;
	list-style: none;
	background: var(--ag-forest-soft);
	border: 1px solid var(--ag-line);
	border-radius: var(--ag-radius-sm);
}

.ags-on .ags-trust li {
	position: relative;
	margin: 0 0 6px;
	padding-left: 24px;
	font-size: var(--ag-fs-sm);
	line-height: 1.45;
	color: var(--ag-ink);
	list-style: none;
}

.ags-on .ags-trust li:last-child { margin-bottom: 0; }

.ags-on .ags-trust li::before {
	content: "";
	position: absolute;
	left: 2px;
	top: 0.42em;
	width: 11px;
	height: 6px;
	border-left: 2.2px solid var(--ag-green);
	border-bottom: 2.2px solid var(--ag-green);
	transform: rotate(-45deg);
}

/* --- WhatsApp the quote --- */

.ags-on .ags-wa {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	width: 100%;
	margin-top: 10px;
	padding: 13px 16px;
	font-family: var(--ag-display);
	font-size: var(--ag-fs-base);
	font-weight: 700;
	text-decoration: none;
	color: var(--ag-forest);
	background: var(--ag-surface);
	border: 1.5px solid var(--ag-line);
	border-radius: var(--ag-radius-sm);
	transition: border-color 0.14s ease, background-color 0.14s ease;
}

.ags-on .ags-wa:hover {
	border-color: #25d366;
	background: color-mix(in srgb, #25d366 8%, #fff);
}

.ags-on .ags-wa svg {
	width: 19px;
	height: 19px;
	fill: #25d366;
	flex: 0 0 auto;
}

/* --- The price follows the screen --- */

.ags-on .ags-sticky {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 9995;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
	background: var(--ag-forest);
	color: #fff;
	transform: translateY(105%);
	transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: 0 -8px 26px -16px rgba(0, 0, 0, 0.8);
}

.ags-on .ags-sticky.is-on { transform: none; }

.ags-on .ags-sticky__info {
	display: flex;
	flex-direction: column;
	min-width: 0;
	flex: 1 1 auto;
}

.ags-on .ags-sticky__lbl {
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.68);
}

.ags-on .ags-sticky__amt {
	font-family: var(--ag-mono);
	font-size: clamp(1.15rem, 4.6vw, 1.5rem);
	font-variant-numeric: tabular-nums;
	letter-spacing: -0.02em;
	line-height: 1.15;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.ags-on .ags-sticky__btn {
	flex: 0 0 auto;
	min-height: 46px;
	padding: 0 20px;
	font-family: var(--ag-display);
	font-size: var(--ag-fs-base);
	font-weight: 800;
	color: #fff;
	background: var(--ag-green);
	border: none;
	border-radius: var(--ag-radius-sm);
	cursor: pointer;
}

.ags-on .ags-sticky__btn:active { transform: translateY(1px); }

/* Two fixed bars must never stack. While the price is showing, the general
   contact bar steps aside and the back-to-top button moves above it. */
.ags-on.ags-sticky-on .ags-bar { display: none !important; }

@media (max-width: 921px) {
	.ags-on.ags-sticky-on #ast-scroll-top {
		bottom: calc(var(--ag-bar-h) + 12px) !important;
	}
}

/* On desktop the calculator column is narrow enough that the price panel is
   already in view, so the bar is only worth showing on phones. */
@media (min-width: 922px) {
	.ags-on .ags-sticky { display: none; }
}

/* --------------------------------------------------------------------------
   13. v1.2 — MANY PHOTOS PER ROLL, AND THE FOOTER
   -------------------------------------------------------------------------- */

/* --- Lightbox navigation --- */

.ags-on .ags-lb__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	display: none;
	width: 46px;
	height: 46px;
	font-size: 30px;
	line-height: 1;
	color: #fff;
	background: rgba(255, 255, 255, 0.16);
	border: none;
	border-radius: 50%;
	cursor: pointer;
}

.ags-on .ags-lb.has-many .ags-lb__nav { display: block; }

.ags-on .ags-lb__nav--prev { left: 14px; }
.ags-on .ags-lb__nav--next { right: 14px; }

.ags-on .ags-lb__nav:hover { background: rgba(255, 255, 255, 0.3); }

.ags-on .ags-lb__count {
	position: absolute;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	padding: 5px 13px;
	font-family: var(--ag-mono);
	font-size: 13px;
	font-variant-numeric: tabular-nums;
	color: #fff;
	background: rgba(255, 255, 255, 0.16);
	border-radius: 999px;
}

.ags-on .ags-lb.has-many .ags-lb__count { display: block; }
.ags-on .ags-lb__count { display: none; }

/* Stop the page scrolling behind an open photo. */
.ags-on.ags-lb-open { overflow: hidden; }

/* A soft edge hints there are more photos to the right. */
.ags-on .ags-gal.has-many .ags-gal__strip {
	-webkit-mask-image: linear-gradient(90deg, #000 88%, transparent);
	mask-image: linear-gradient(90deg, #000 88%, transparent);
}

/* --- Footer over a photograph ---
   Applied only to a footer that actually carries a background image, so a
   footer with a plain background is never darkened by mistake. */

.ags-on.ags-m-footer .ags-footer-photo {
	position: relative;
	isolation: isolate;
}

.ags-on.ags-m-footer .ags-footer-photo::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(
		180deg,
		color-mix(in srgb, var(--ag-forest) 90%, transparent),
		color-mix(in srgb, var(--ag-ink) 95%, transparent)
	);
	pointer-events: none;
}

@supports not (color: color-mix(in srgb, red 50%, blue)) {
	.ags-on.ags-m-footer .ags-footer-photo::before {
		background: linear-gradient(180deg, rgba(20, 83, 45, 0.9), rgba(20, 33, 26, 0.95));
	}
}

.ags-on.ags-m-footer .ags-footer-photo,
.ags-on.ags-m-footer .ags-footer-photo p,
.ags-on.ags-m-footer .ags-footer-photo li,
.ags-on.ags-m-footer .ags-footer-photo a,
.ags-on.ags-m-footer .ags-footer-photo span {
	color: #eef3ee;
}

.ags-on.ags-m-footer .ags-footer-photo h1,
.ags-on.ags-m-footer .ags-footer-photo h2,
.ags-on.ags-m-footer .ags-footer-photo h3,
.ags-on.ags-m-footer .ags-footer-photo h4,
.ags-on.ags-m-footer .ags-footer-photo h5 {
	color: #fff;
}

.ags-on.ags-m-footer .ags-footer-photo a:hover { color: var(--ag-green); }

/* --- Admin image manager --- */

.ags-set__thumb { cursor: grab; }
.ags-set__thumb.is-dragging { opacity: 0.4; }
.ags-set__thumb.is-over { outline: 2px solid #2271b1; outline-offset: 1px; }

.ags-set__x {
	position: absolute;
	top: 3px;
	right: 3px;
	width: 20px;
	height: 20px;
	padding: 0;
	font-size: 15px;
	line-height: 18px;
	color: #fff;
	background: rgba(0, 0, 0, 0.62);
	border: none;
	border-radius: 50%;
	cursor: pointer;
	opacity: 0;
	transition: opacity 0.12s ease;
}

.ags-set__thumb:hover .ags-set__x,
.ags-set__x:focus-visible { opacity: 1; }

.ags-set__count { font-variant-numeric: tabular-nums; }

/* --------------------------------------------------------------------------
   14. v1.3 — MOBILE ALIGNMENT AND THE ADD-TO-CART PATH
   -------------------------------------------------------------------------- */

/* --- Contact bar: labels were being clipped, and a transparent background
       let a dark band show through under it on Android. Solid background,
       icon and label side by side, generous tap target. --- */

@media (max-width: 921px) {
	.ags-on .ags-bar {
		gap: 7px;
		padding: 9px 10px calc(9px + env(safe-area-inset-bottom, 0px));
		/* Opaque. A translucent bar over a scrolling page reads as a gap. */
		background: var(--ag-surface);
		backdrop-filter: none;
		-webkit-backdrop-filter: none;
		border-top: 1px solid var(--ag-line);
	}

	.ags-on .ags-bar__btn {
		flex-direction: row;
		gap: 6px;
		min-height: 48px;
		padding: 0 12px;
		font-size: 13px;
		white-space: nowrap;
		line-height: 1;
	}

	.ags-on .ags-bar__btn--ghost {
		min-width: 0;
		flex: 0 0 auto;
		padding: 0 13px;
	}

	.ags-on .ags-bar__btn svg { width: 18px; height: 18px; }

	.ags-on .ags-bar__btn--solid {
		flex: 1 1 auto;
		min-width: 0;
		font-size: var(--ag-fs-base);
	}

	/* On the narrowest phones the two labels are what overflow first, so
	   they go and the icons carry the meaning. */
	@media (max-width: 380px) {
		.ags-on .ags-bar__btn--ghost span { display: none; }
		.ags-on .ags-bar__btn--ghost { padding: 0 15px; }
	}
}

/* The bar grew, so the space reserved for it grows to match. */
.ags-on { --ag-bar-h: 68px; }

/* --- Sticky price bar: the "in your cart" state --- */

.ags-on .ags-sticky.is-added {
	background: var(--ag-green-dark);
}

.ags-on .ags-sticky.is-added .ags-sticky__amt {
	font-family: var(--ag-display);
	font-size: var(--ag-fs-lg);
	font-weight: 700;
}

.ags-on .ags-sticky.is-added .ags-sticky__btn {
	background: #fff;
	color: var(--ag-forest);
}

@supports not (color: color-mix(in srgb, red 50%, blue)) {
	.ags-on .ags-sticky.is-added { background: #3b8420; }
}

/* --- Enlarged photo: clear of the WordPress admin bar, arrows brought in
       from the edge so they are never half off the screen. --- */

.ags-on .ags-lb { z-index: 100000; }

.ags-on .ags-lb__close {
	top: 18px;
	right: 22px;
}

.admin-bar .ags-on .ags-lb__close,
.ags-on.admin-bar .ags-lb__close,
body.admin-bar .ags-lb__close {
	top: 50px;
}

@media (max-width: 782px) {
	body.admin-bar .ags-lb__close { top: 64px; }
}

.ags-on .ags-lb__nav--prev { left: 22px; }
.ags-on .ags-lb__nav--next { right: 22px; }

@media (max-width: 600px) {
	.ags-on .ags-lb { padding: 12px; }

	.ags-on .ags-lb__nav {
		width: 40px;
		height: 40px;
		font-size: 26px;
	}

	.ags-on .ags-lb__nav--prev { left: 8px; }
	.ags-on .ags-lb__nav--next { right: 8px; }
	.ags-on .ags-lb__close { right: 12px; }
}

/* --- Photo strip: a thinner scrollbar than the browser default --- */

.ags-on .ags-gal__strip::-webkit-scrollbar { height: 4px; }
.ags-on .ags-gal__strip::-webkit-scrollbar-track { background: transparent; }

.ags-on .ags-gal__strip::-webkit-scrollbar-thumb {
	background: var(--ag-line);
	border-radius: 999px;
}

/* --- Size chips: tighter so four fit without an awkward orphan row --- */

@media (max-width: 600px) {
	.ags-on .ags-chip {
		padding: 8px 11px;
		font-size: var(--ag-fs-xs);
	}

	.ags-on .ags-chips__row { gap: 6px; }
}

/* --------------------------------------------------------------------------
   15. v1.4 — LIGHTBOX CONTROLS YOU CAN ACTUALLY SEE
   The controls were translucent white. Over a bright photo — green foliage,
   a white sheet in sunlight — that is invisible. They now carry their own
   dark background, a light ring and a shadow, so they read against anything.
   -------------------------------------------------------------------------- */

.ags-on .ags-lb {
	/* Nearly opaque, so the page behind never shows through the photo. */
	background: color-mix(in srgb, var(--ag-ink) 97%, transparent);
	padding: 0;
}

@supports not (color: color-mix(in srgb, red 50%, blue)) {
	.ags-on .ags-lb { background: rgba(20, 33, 26, 0.97); }
}

/* The stage sizes itself to the photo so the arrows have something to hug. */
.ags-on .ags-lb__stage {
	position: relative;
	display: inline-flex;
	max-width: min(1100px, 94vw);
	max-height: 86vh;
}

.ags-on .ags-lb__img {
	display: block;
	max-width: 100%;
	max-height: 86vh;
	width: auto;
	height: auto;
	object-fit: contain;
	border-radius: var(--ag-radius);
	box-shadow: 0 30px 70px -30px #000;
}

.ags-on .ags-lb__nav,
.ags-on .ags-lb__close {
	color: #fff;
	background: rgba(12, 20, 16, 0.74);
	border: 1.5px solid rgba(255, 255, 255, 0.55);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.55);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	transition: background-color 0.14s ease, transform 0.14s ease;
}

.ags-on .ags-lb__nav:hover,
.ags-on .ags-lb__close:hover {
	background: rgba(12, 20, 16, 0.94);
	transform: translateY(-50%) scale(1.06);
}

.ags-on .ags-lb__close:hover { transform: scale(1.06); }

.ags-on .ags-lb__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 48px;
	height: 48px;
	display: none;
	align-items: center;
	justify-content: center;
	padding-bottom: 3px;
	font-size: 30px;
	font-weight: 400;
	line-height: 1;
}

.ags-on .ags-lb.has-many .ags-lb__nav { display: flex; }

.ags-on .ags-lb__nav--prev { left: 12px; right: auto; }
.ags-on .ags-lb__nav--next { right: 12px; left: auto; }

.ags-on .ags-lb__close {
	position: fixed;
	top: 16px;
	right: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	font-size: 24px;
	transform: none;
}

body.admin-bar .ags-lb__close { top: 48px; }

@media (max-width: 782px) {
	body.admin-bar .ags-lb__close { top: 62px; }
}

.ags-on .ags-lb__count {
	bottom: 22px;
	font-weight: 500;
	color: #fff;
	background: rgba(12, 20, 16, 0.74);
	border: 1.5px solid rgba(255, 255, 255, 0.4);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.55);
}

/* Nothing else competes with the photo while it is open. */
.ags-on.ags-lb-open .ags-bar,
.ags-on.ags-lb-open .ags-sticky,
.ags-on.ags-lb-open #ast-scroll-top {
	display: none !important;
}

@media (max-width: 600px) {
	.ags-on .ags-lb__stage { max-width: 96vw; }

	.ags-on .ags-lb__nav {
		width: 44px;
		height: 44px;
		font-size: 27px;
	}

	.ags-on .ags-lb__nav--prev { left: 8px; }
	.ags-on .ags-lb__nav--next { right: 8px; }

	.ags-on .ags-lb__close {
		top: 12px;
		right: 12px;
		width: 44px;
		height: 44px;
	}
}

/* --------------------------------------------------------------------------
   16. v1.5 — LIGHTBOX, FINAL PASS
   Two things were still wrong: the page header was showing through the
   backdrop, and the arrows sat on top of the photograph. On a wide screen
   there is plenty of dark margin either side, so the arrows belong there.
   -------------------------------------------------------------------------- */

.ags-on .ags-lb {
	/* Above everything, including sticky headers from any of the three
	   builders and the WordPress admin bar. */
	z-index: 2147483000;
	background: #101a14;
}

.ags-on .ags-lb__stage {
	max-width: min(960px, 88vw);
	overflow: visible;
}

/* Desktop: arrows move off the photo and into the dark margin. */
@media (min-width: 780px) {
	.ags-on .ags-lb__nav--prev { left: -74px; }
	.ags-on .ags-lb__nav--next { right: -74px; }

	.ags-on .ags-lb__nav {
		width: 52px;
		height: 52px;
		background: rgba(255, 255, 255, 0.1);
		border-color: rgba(255, 255, 255, 0.34);
	}

	.ags-on .ags-lb__nav:hover {
		background: rgba(255, 255, 255, 0.2);
		border-color: rgba(255, 255, 255, 0.7);
	}
}

/* Well clear of the corner, so it is never clipped and never lands on the
   page navigation showing behind. */
.ags-on .ags-lb__close {
	top: 24px;
	right: 32px;
	width: 50px;
	height: 50px;
	font-size: 26px;
}

body.admin-bar .ags-lb__close { top: 56px; }

@media (max-width: 782px) {
	body.admin-bar .ags-lb__close { top: 68px; }
}

@media (max-width: 600px) {
	.ags-on .ags-lb__close {
		top: 14px;
		right: 14px;
		width: 44px;
		height: 44px;
	}
}
