/*
Theme Name: Wizzie Child Theme
Theme URI: https://webwizards.com.au
Description: Web Wizards child theme for Divi 5. Site: Caravans WA.
Author: Web Wizards
Author URI: https://webwizards.com.au
Template: Divi
Version: 2.1.0
Text Domain: wizzi-child
*/

/* Our CSS rules (see CLAUDE.md "Styling"):
   - Divi first. Only what Divi's own options cannot do lives here: the dynamic
     components (stock filters, cards, gallery, finance estimate), Gravity Forms,
     the blob shape, hover/motion effects and a few small layout fixes.
   - Target our own classes only (cwa-*), never Divi's generated classes.
   - Every selector is wrapped in :where() and ends in :not(.cwa-z) (a class that is
     never used). That gives every rule exactly one class of specificity (0,1,0): enough
     to beat Divi's element reset (a, div, span...), always lower than the selectors Divi
     generates for Visual Builder settings, so anything set in the builder wins. No !important.
   - Colours and sizes use the Design Variables (var(--gcid-cwa-*) / var(--gvid-cwa-*)),
     with the design value as a fallback for pages that do not print that variable.
*/

/* =========================================================================
   Fonts: self-hosted Barlow + Barlow Condensed (SIL Open Font Licence), subset WOFF2.
   Barlow 400 and Barlow Condensed 700/800 are inlined in <head> by includes/fonts.php.
   ========================================================================= */
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/barlow-medium.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/barlow-semibold.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/barlow-bold.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/barlowcondensed-semibold.woff2') format('woff2'); }

/* Local shorthands for the Design Variables (fallback = design value). */
:root
{
	--cwa-blue: var(--gcid-cwa-blue, #16478C);
	--cwa-green: var(--gcid-cwa-green, #6CBD45);
	--cwa-green-hover: var(--gcid-cwa-green-hover, #62AB3D);
	--cwa-navy: var(--gcid-cwa-navy, #0C2A54);
	--cwa-grey: var(--gcid-cwa-grey, #555656);
	--cwa-text: var(--gcid-cwa-text, #26292B);
	--cwa-tint: var(--gcid-cwa-tint, #F1F5FB);
	--cwa-photo-tint: var(--gcid-cwa-photo-tint, #E4ECF7);
	--cwa-border: var(--gcid-cwa-border, #DDE3EC);
	--cwa-field-border: var(--gcid-cwa-field-border, #A9B4C4);
	--cwa-on-dark: var(--gcid-cwa-on-dark, #DCE6F5);
	--cwa-star: var(--gcid-cwa-star, #FBBC04);
	--cwa-heading: var(--gvid-cwa-font-heading, 'Barlow Condensed'), 'Barlow Condensed', sans-serif;
	--cwa-body: var(--gvid-cwa-font-body, 'Barlow'), 'Barlow', system-ui, sans-serif;
	--cwa-radius-button: var(--gvid-cwa-radius-button, 10px);
	--cwa-radius-card: var(--gvid-cwa-radius-card, 18px);
	--cwa-radius-panel: var(--gvid-cwa-radius-panel, 22px);
	--cwa-blob: 46% 54% 42% 58% / 52% 44% 56% 48%;
	--cwa-ease: cubic-bezier(.2, .7, .2, 1);
}

/* =========================================================================
   Base typography: headings carry no padding of their own (spacing comes from
   the layout's gaps, as in the design). Divi's base sets 10 px on h1-h6.
   ========================================================================= */
:where(h1, h2, h3, h4, h5, h6):not(.cwa-z) { padding-bottom: 0; }

/* =========================================================================
   Base fixes inside our components
   ========================================================================= */
:where(.cwa-component, .cwa-component p, .cwa-pills, .cwa-strip, .cwa-checklist-wrap):not(.cwa-z) { margin: 0; }
:where(.cwa-steps-list, .cwa-timeline):not(.cwa-z) { list-style: none; margin: 0; padding: 0; }
/* Our lists inside Text modules: no Divi bullets or list padding. */
/* :not(ul.cwa-z) = one class + one element, to match Divi's list padding rule (.et-l--footer ul). */
:where(.cwa-pills, .cwa-footer-links, .cwa-checklist, .cwa-highlights__list, .cwa-steps-list, .cwa-timeline):not(ul.cwa-z) { padding: 0; margin: 0; }
:where(.cwa-pills li, .cwa-footer-links li, .cwa-checklist li, .cwa-highlights__list li, .cwa-steps-list li):not(.cwa-z) { list-style: none; }
/* Review cards are blockquotes: no Divi quote border or indent. */
:where(blockquote.cwa-review):not(.cwa-z) { border-left-width: 0; padding-left: 28px; margin: 0; }
:where(.cwa-placeholder):not(.cwa-z) { background: #FFF6CC; color: #5C4800; padding: 0 4px; border-radius: 4px; font-weight: 600; }
:where(.cwa-arrow-link):not(.cwa-z) { font-weight: 700; display: inline-block; padding: 12px 0; text-decoration: none; }
:where(.cwa-arrow-link:hover):not(.cwa-z) { text-decoration: underline; text-underline-offset: 4px; }

/* Keyboard focus on every link and control (Divi removes the browser's outline): a ring in the
   text's own colour, so it shows on light and dark bands alike. Buttons get a stronger navy and
   white ring further down (same specificity, later in the file). */
:where(a, summary, select, input[type="checkbox"], input[type="radio"], button, [tabindex]:not([tabindex="-1"])):focus-visible:not(.cwa-z)
{
	outline: 2px solid currentColor; outline-offset: 3px;
}

/* Clickable address (map link): looks exactly like the text around it (no underline); underline on hover/focus only.
   Colour and weight come from the Text module's own body text settings: the module's *link*
   settings (e.g. bold blue for "Get directions" in the same text) must not restyle the address,
   so this one rule carries one extra class (0,2,1 beats Divi's ".et_pb_text_N a"). */
a.cwa-address-link:not(.cwa-z):not(.cwa-z) { color: inherit; font-weight: inherit; text-decoration: none; }
a.cwa-address-link:not(.cwa-z):not(.cwa-z):hover,
a.cwa-address-link:not(.cwa-z):not(.cwa-z):focus-visible { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* Readable line length: paragraphs in Text modules at most ~75 characters per line. */
:where(.et_pb_text_inner p):not(.cwa-z) { max-width: 75ch; }

/* Text pages (privacy, terms, buyers guide articles): spacing between headings, paragraphs and lists.
   Heading fonts are the Text module's own settings (tools/build/pages.php, cwa_page_simple). */
:where(.cwa-prose h2):not(.cwa-z) { margin: 1.6em 0 .5em; }
:where(.cwa-prose h3):not(.cwa-z) { margin: 1.3em 0 .35em; }
:where(.cwa-prose h2:first-child, .cwa-prose .cwa-prose__lead:first-child):not(.cwa-z) { margin-top: 0; }
:where(.cwa-prose .cwa-prose__lead):not(.cwa-z) { font-size: var(--gvid-cwa-lead-small, 19px); font-weight: 600; color: var(--cwa-navy); line-height: 1.5; }
:where(.cwa-prose ul, .cwa-prose ol):not(.cwa-z) { padding: 0 0 1em 1.25em; }
:where(.cwa-prose li):not(.cwa-z) { margin-bottom: .35em; }
:where(.cwa-prose ul li):not(.cwa-z) { list-style: disc; }
:where(.cwa-prose ol li):not(.cwa-z) { list-style: decimal; }
/* Buyers guide articles (tools/build/pages.php, cwa_page_article; js/site.js, initArticleToc):
   reading column, "On this page" list, sticky sidebar from 1024 px, the phone/tablet box and end block. */
:where(.cwa-prose .cwa-prose__note):not(.cwa-z) { margin-top: 2em; padding-top: 1em; border-top: 1px solid var(--cwa-border); font-size: 15px; color: var(--cwa-grey); }
:where(.cwa-article h2[id]):not(.cwa-z) { scroll-margin-top: 24px; }
:where(.cwa-article h2[id]):focus:not(.cwa-z) { outline: none; }
:where(.cwa-article-aside):not(.cwa-z) { position: sticky; top: 24px; align-self: flex-start; max-height: calc(100vh - 48px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
:where(.cwa-article-aside > *):not(.cwa-z) { flex-shrink: 0; }
:where(.cwa-toc__list, .cwa-more__list):not(.cwa-z) { margin: 0; padding: 0; list-style: none; }
:where(.cwa-toc__list li, .cwa-more__list li):not(.cwa-z) { margin: 0; padding: 0; list-style: none; }
:where(.cwa-toc__list a):not(.cwa-z) { display: block; padding: 5px 0 5px 12px; border-left: 3px solid var(--cwa-border); color: var(--cwa-text); font-size: 15px; line-height: 1.3; text-decoration: none; }
:where(.cwa-toc__list a:hover):not(.cwa-z) { color: var(--cwa-blue); border-left-color: var(--cwa-blue); }
:where(.cwa-toc__list a[aria-current="true"]):not(.cwa-z) { color: var(--cwa-blue); font-weight: 700; border-left-color: var(--cwa-green); }
:where(.cwa-toc__list a, .cwa-more__list a, .cwa-more__all a, .cwa-toc-mobile summary):focus-visible { outline: 3px solid var(--cwa-navy); outline-offset: 2px; }
:where(.cwa-more__list a, .cwa-more__all a):not(.cwa-z) { color: var(--cwa-blue); font-weight: 600; text-decoration: none; }
:where(.cwa-more__list a:hover, .cwa-more__all a:hover):not(.cwa-z) { text-decoration: underline; text-underline-offset: 3px; }
:where(.cwa-more__list li):not(.cwa-z) { padding: 5px 0; border-bottom: 1px solid var(--cwa-border); line-height: 1.3; }
:where(.cwa-more__all):not(.cwa-z) { margin: 12px 0 0; }
:where(.cwa-toc-mobile):not(.cwa-z) { margin: 1.4em 0; padding: 0 18px; background: var(--cwa-tint); border: 1px solid var(--cwa-border); border-radius: var(--cwa-radius-card); }
:where(.cwa-toc-mobile summary):not(.cwa-z) { padding: 14px 0; cursor: pointer; font-family: var(--cwa-heading); font-size: 22px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--cwa-blue); }
:where(.cwa-toc-mobile .cwa-toc):not(.cwa-z) { padding-bottom: 12px; }
@media (max-width: 1023.98px) {
	:where(.cwa-article-aside):not(.cwa-z) { display: none; }
}
@media (min-width: 1024px) {
	:where(.cwa-toc-mobile, .cwa-article-cta--end):not(.cwa-z) { display: none; }
}

/* Lift on hover: cards, tiles, reviews (transform + shadow only, no layout shift). */
:where(.cwa-lift):not(.cwa-z) { transition: transform .25s var(--cwa-ease), box-shadow .25s var(--cwa-ease); }
:where(.cwa-lift:hover, .cwa-lift:focus-within):not(.cwa-z) { transform: translateY(-6px); box-shadow: 0 18px 36px rgba(12, 42, 84, .18); }

/* =========================================================================
   Header and footer
   ========================================================================= */
/* Top bar: "Open six days" on the home page, hours elsewhere (as designed). */
:where(.cwa-topbar__inner):not(.cwa-z) { display: inline; }
:where(.cwa-topbar__home):not(.cwa-z) { display: none; }
:where(.home .cwa-topbar__home):not(.cwa-z) { display: inline; }
:where(.home .cwa-topbar__inner):not(.cwa-z) { display: none; }
/* Top bar social icons (Social Media Follow module, owner change on dev 27 Nov 2026): white icons, green on hover or focus.
   24 px targets with a 15 px glyph. Divi's own rules are more specific, hence the repeated :not(). */
:where(.cwa-social .et_pb_social_media_follow_network a.icon):not(.cwa-z):not(.cwa-z):not(.cwa-z) { width: 24px; height: 24px; border-radius: 0; }
:where(.cwa-social .et_pb_social_icon a.icon):not(.cwa-z):not(.cwa-z):not(.cwa-z)::before { width: 24px; height: 24px; font-size: 15px; line-height: 24px; color: #fff; }
:where(.cwa-social .et_pb_social_icon a.icon:hover, .cwa-social .et_pb_social_icon a.icon:focus-visible):not(.cwa-z):not(.cwa-z):not(.cwa-z):not(.cwa-z)::before { color: var(--cwa-green); }
:where(.cwa-social .et_pb_social_media_follow_network:not(:last-child)):not(.cwa-z):not(.cwa-z):not(.cwa-z) { margin-right: 4px; }

:where(.cwa-header):not(.cwa-z) { position: relative; }
:where(.cwa-logo img):not(.cwa-z) { width: 100%; height: auto; }
/* Main menu: 4 px green underline on hover and on the current page. */
/* Divi pads each item 11 px a side; 1 px link margins make the design's 24 px gap (28 px on home). */
:where(.cwa-nav .et-menu > li > a):not(.cwa-z) { margin: 0 1px; }
:where(.cwa-nav .et-menu > li > a):not(.cwa-z) { padding: 12px 0 8px; border-bottom: 4px solid transparent; transition: border-color .2s ease, color .2s ease; }
:where(.cwa-nav .et-menu > li > a:hover):not(.cwa-z) { opacity: 1; border-bottom-color: var(--cwa-green); }
:where(.cwa-nav .et-menu > li.current-menu-item > a, .cwa-nav .et-menu > li.current-page-ancestor > a):not(.cwa-z) { border-bottom-color: var(--cwa-green); }
:where(.home .cwa-nav .et-menu > li > a):not(.cwa-z) { margin: 0 3px; }
:where(.cwa-header-phone):not(.cwa-z) { white-space: nowrap; }

:where(.cwa-footer-links):not(.cwa-z) { list-style: none; margin: 0; padding: 0; }
:where(.cwa-footer-links a):not(.cwa-z) { display: block; padding: 6px 0; text-decoration: none; font-size: 16px; line-height: 1.5; }
:where(.cwa-footer-links a:hover, .cwa-footer-visit a:hover):not(.cwa-z) { text-decoration: underline; }
:where(.cwa-footer-visit p):not(.cwa-z) { padding-bottom: 8px; font-size: 16px; line-height: 1.5; }
:where(.cwa-footer-phone):not(.cwa-z) { display: inline-block; padding: 6px 0; }

/* Phones: sticky call / enquire bar (Divi shows the section on phones only). Two equal buttons with a
   gap, inside the screen edges, clear of the iPhone home indicator (safe area; viewport-fit=cover in
   functions.php). The page's matching bottom space is set once, on <body> (Responsive, below). */
:where(.cwa-mobilebar):not(.cwa-z) { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; box-sizing: border-box; max-width: 100vw; border-top: 1px solid var(--cwa-border); box-shadow: 0 -6px 20px rgba(12, 42, 84, .15); }
:where(.cwa-mobilebar__inner):not(.cwa-z) { width: 100%; margin-bottom: env(safe-area-inset-bottom, 0px); }
:where(.cwa-menu-open .cwa-mobilebar, .cwa-menu-open .cwa-totop):not(.cwa-z) { visibility: hidden; }

/* Mobile menu (Divi menu module below 981 px): full width under the header, solid white, above
   everything; one line per item, 44 px+ tap targets, scrolls inside itself while the page stays put
   (js/site.js sets --cwa-menu-top and .cwa-menu-open). Divi places the dropdown inside the 48 px
   hamburger box, which made items wrap and the hero show through (client brief 25 Nov 2026).
   Selectors carry one extra class (0,2,0) to outrank Divi's own .et_mobile_menu position rules. */
@media (max-width: 980px)
{
	:where(.cwa-nav) .et_mobile_menu:not(.cwa-z)
	{
		position: fixed; top: var(--cwa-menu-top, 120px); bottom: auto; left: 0; right: 0; width: auto; box-sizing: border-box;
		max-height: calc(100vh - var(--cwa-menu-top, 120px)); max-height: calc(100dvh - var(--cwa-menu-top, 120px));
		overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
		padding: 6px 0 12px; z-index: 1000; border-top: 4px solid var(--cwa-green); box-shadow: 0 18px 30px rgba(12, 42, 84, .2);
	}
	:where(.cwa-nav) .et_mobile_menu li:not(.cwa-z) { padding: 0; }
	:where(.cwa-nav) .et_mobile_menu li a:not(.cwa-z)
	{
		display: flex; align-items: center; min-height: 52px; box-sizing: border-box; padding: 14px 20px;
		white-space: nowrap; line-height: 1.2; border-bottom: 1px solid var(--cwa-border);
	}
	:where(.cwa-nav) .et_mobile_menu li:last-child > a:not(.cwa-z) { border-bottom: 0; }
	:where(.cwa-nav) .et_mobile_menu li li a:not(.cwa-z) { padding-left: 40px; }
	:where(.cwa-nav) .et_mobile_menu .current-menu-item > a:not(.cwa-z) { box-shadow: inset 4px 0 0 var(--cwa-green); }
	:where(.cwa-nav) .mobile_menu_bar:not(.cwa-z) { cursor: pointer; border-radius: 6px; }
	:where(.cwa-nav) .mobile_menu_bar:focus-visible { outline: 3px solid var(--cwa-navy); outline-offset: 4px; }
	/* Open: the hamburger becomes a close (X) icon (Divi's icon font, "M" = close). */
	:where(.cwa-nav) .mobile_nav.opened .mobile_menu_bar::before { content: "\4d"; }
}
:where(.cwa-menu-open, .cwa-menu-open body):not(.cwa-z) { overflow: hidden; }
/* With viewport-fit=cover the page would reach under a landscape iPhone's notch: keep it inside the safe area. */
:where(body):not(.cwa-z) { padding-left: env(safe-area-inset-left, 0px); padding-right: env(safe-area-inset-right, 0px); }

/* Back to top (js/site.js): round, navy, bottom right; on phones above the call bar. */
:where(.cwa-totop):not(.cwa-z)
{
	position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 95;
	display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; padding: 0;
	border: 2px solid #FFFFFF; border-radius: 50%; background: var(--cwa-navy); color: #FFFFFF; cursor: pointer;
	box-shadow: 0 6px 18px rgba(12, 42, 84, .3);
	opacity: 0; visibility: hidden; transform: translateY(10px);
	transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s, background-color .2s ease;
}
:where(.cwa-totop.is-visible):not(.cwa-z) { opacity: 1; visibility: visible; transform: none; transition: opacity .2s ease, transform .2s ease, visibility 0s, background-color .2s ease; }
:where(.cwa-totop:hover, .cwa-totop:focus-visible):not(.cwa-z) { background: var(--cwa-blue); }

/* Keyboard focus on buttons: a white ring and a navy ring, visible on light and dark bands alike
   (Divi presets have hover states but no focus state). */
:where(.cwa-btn, .cwa-btn-sm, .cwa-stock__more, .cwa-search__submit, .cwa-filters__submit, .cwa-finance__quote, .cwa-pill, .cwa-totop, .cwa-mobilebar a):focus-visible:not(.cwa-z)
{
	outline: 3px solid var(--cwa-navy); outline-offset: 3px; box-shadow: 0 0 0 3px #FFFFFF;
}/* Each button sits in a wrapper (the flex item): both halves share the bar equally. */
:where(.cwa-mobilebar__inner > *):not(.cwa-z) { flex: 1 1 0; min-width: 0; }
:where(.cwa-mobilebar__call, .cwa-mobilebar__enquire):not(.cwa-z) { display: block; width: 100%; text-align: center; }
/* Full-width buttons (module width 100%): Divi's base rule ".et_pb_module.et_pb_button:not(.et_block_module)"
   caps buttons at max-content and outranks the module's own max-width setting, so lift the cap
   for buttons we marked full-width only (repeated class = enough specificity, no !important). */
.cwa-btn-block.cwa-btn-block.cwa-btn-block:not(.cwa-z) { max-width: 100%; }

/* =========================================================================
   Banners, breadcrumbs, images
   ========================================================================= */
:where(.cwa-breadcrumb):not(.cwa-z) { font-size: 15px; }
:where(.cwa-breadcrumb a):not(.cwa-z) { padding: 8px 0; text-decoration: underline; text-underline-offset: 3px; }
:where(.cwa-breadcrumb [aria-current]):not(.cwa-z) { font-weight: 700; }
:where(.cwa-breadcrumb--light, .cwa-breadcrumb--light a):not(.cwa-z) { color: var(--cwa-on-dark); }
:where(.cwa-breadcrumb--navy, .cwa-breadcrumb--navy a):not(.cwa-z) { color: var(--cwa-navy); }
:where(.cwa-breadcrumb--dark):not(.cwa-z) { color: var(--cwa-grey); }
:where(.cwa-breadcrumb--dark a):not(.cwa-z) { color: var(--cwa-blue); }

/* The logo-badge "blob" shape (a clip shape Divi cannot draw). */
:where(.cwa-blob img):not(.cwa-z) { display: block; width: calc(100% - 22px); height: 380px; object-fit: cover; object-position: 60% 40%; border-radius: var(--cwa-blob); }
:where(.cwa-blob--shadow img):not(.cwa-z) { box-shadow: 20px 20px 0 0 var(--cwa-green); }
:where(.cwa-blob-bg):not(.cwa-z) { border-radius: var(--cwa-blob); }
:where(.cwa-blob-van__img img):not(.cwa-z) { display: block; width: 100%; height: auto; }

:where(.cwa-photo img):not(.cwa-z) { display: block; width: 100%; object-fit: cover; border-radius: var(--cwa-radius-card); }
:where(.cwa-photo--420 img):not(.cwa-z) { height: 420px; }
:where(.cwa-photo--440 img):not(.cwa-z) { height: 440px; }

/* Home hero: yard photo in the blob on a green blob, video on click. */
:where(.cwa-hero-blob):not(.cwa-z) { border-radius: var(--cwa-blob); }
:where(.cwa-hero-media):not(.cwa-z) { position: relative; height: 440px; margin: -22px 22px 0 -4px; }
:where(.cwa-hero-media__img, .cwa-hero-media .cwa-video__media):not(.cwa-z) { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; border-radius: var(--cwa-blob); background: var(--cwa-navy); }
:where(.cwa-hero-media__label):not(.cwa-z) { position: absolute; left: 50%; top: calc(50% + 70px); transform: translateX(-50%); background: var(--cwa-navy); color: #FFFFFF; font-weight: 700; font-size: 15px; padding: 7px 16px; border-radius: 999px; white-space: nowrap; pointer-events: none; }
:where(.cwa-video.is-playing .cwa-video__play, .cwa-video.is-playing .cwa-hero-media__label):not(.cwa-z) { display: none; }
/* Playing: the card radius instead of the blob shape, which cut off the video's controls. */
:where(.cwa-hero-media.is-playing .cwa-video__media, .cwa-video.is-playing .cwa-video__media):not(.cwa-z) { border-radius: var(--cwa-radius-card); }

/* Play buttons */
:where(.cwa-video__play):not(.cwa-z) { width: 96px; height: 96px; border-radius: 50%; border: 5px solid #FFFFFF; background: var(--cwa-green); display: flex; align-items: center; justify-content: center; padding: 0 0 0 8px; cursor: pointer; transition: transform .25s var(--cwa-ease), box-shadow .25s var(--cwa-ease); }
:where(.cwa-video__play:not([disabled]):hover, .cwa-video__play:focus-visible):not(.cwa-z) { transform: scale(1.06); box-shadow: 0 0 0 8px rgba(108, 189, 69, .35); }
:where(.cwa-video__play[disabled]):not(.cwa-z) { cursor: default; }
:where(.cwa-video__play--hero):not(.cwa-z) { position: absolute; left: 50%; top: 50%; width: 104px; height: 104px; transform: translate(-50%, -50%); box-shadow: 0 10px 30px rgba(12, 42, 84, .45); }
:where(.cwa-video__play--hero:hover, .cwa-video__play--hero:focus-visible):not(.cwa-z) { transform: translate(-50%, -50%) scale(1.06); }
:where(.cwa-video__play svg):not(.cwa-z) { width: 44px; height: 44px; }

/* Explainer video slot (placeholder until filmed). */
:where(.cwa-video--slot):not(.cwa-z) { border-radius: var(--cwa-radius-card); background: var(--cwa-navy); aspect-ratio: 16 / 9; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 24px; text-align: center; }
:where(.cwa-video__label):not(.cwa-z) { color: #FFFFFF; font-weight: 700; font-size: 20px; }
:where(.cwa-video__note):not(.cwa-z) { color: var(--cwa-on-dark); font-size: 14px; font-weight: 700; }

/* =========================================================================
   Small pieces: pills, brand strips, steps, checklist, FAQ, reviews
   ========================================================================= */
:where(.cwa-pills):not(ul.cwa-z) { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
:where(.cwa-pills li):not(.cwa-z) { padding: 9px 16px; border-radius: 999px; font-weight: 600; line-height: 1.5; }
:where(.cwa-pills--tint li):not(.cwa-z) { background: var(--cwa-tint); }
:where(.cwa-pills--white li):not(.cwa-z) { background: #FFFFFF; color: var(--cwa-navy); font-weight: 700; font-size: 16px; }
:where(.cwa-pills--glass li):not(.cwa-z) { background: rgba(255, 255, 255, .14); color: #FFFFFF; font-weight: 700; padding: 10px 18px; }

:where(.cwa-strip):not(.cwa-z) { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 32px; }
:where(.cwa-agents .cwa-strip):not(.cwa-z) { gap: 10px 36px; }
:where(.cwa-strip__label):not(.cwa-z) { font-size: 15px; line-height: 1.5; font-weight: 700; color: var(--cwa-grey); text-transform: uppercase; letter-spacing: .1em; }
:where(.cwa-strip__name):not(.cwa-z) { font-family: var(--cwa-heading); font-size: 28px; font-weight: 800; text-transform: uppercase; color: var(--cwa-blue); line-height: 1.5; }

:where(.cwa-checklist):not(.cwa-z) { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
:where(.cwa-checklist li):not(.cwa-z) { flex: 1 1 260px; background: var(--cwa-blue); color: #FFFFFF; border-radius: 12px; padding: 14px 18px; font-weight: 600; display: flex; gap: 12px; align-items: center; }
:where(.cwa-checklist svg):not(.cwa-z) { flex: 0 0 auto; }

:where(.cwa-faq):not(.cwa-z) { border-top: 1px solid var(--cwa-border); }
:where(.cwa-faq details):not(.cwa-z) { border-bottom: 1px solid var(--cwa-border); padding: 20px 0; }
:where(.cwa-faq summary):not(.cwa-z) { font-size: 21px; font-weight: 700; color: var(--cwa-blue); cursor: pointer; line-height: 1.5; }
:where(.cwa-faq summary:hover):not(.cwa-z) { color: var(--cwa-navy); }
:where(.cwa-faq p):not(.cwa-z) { margin: 12px 0 0; color: var(--cwa-grey); max-width: 800px; padding: 0; }
:where(.cwa-faq details[open] p):not(.cwa-z) { animation: cwa-fade-down .3s var(--cwa-ease); }

:where(.cwa-review__head):not(.cwa-z) { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
:where(.cwa-reviews .cwa-review__head):not(.cwa-z) { margin-bottom: 16px; }
:where(.cwa-avatar):not(.cwa-z) { flex: 0 0 auto; width: 52px; height: 52px; border-radius: 50%; font-family: var(--cwa-heading); font-size: 28px; font-weight: 800; display: flex; align-items: center; justify-content: center; color: var(--cwa-navy); }
:where(.cwa-avatar--green):not(.cwa-z) { background: var(--cwa-green); }
:where(.cwa-avatar--star):not(.cwa-z) { background: var(--cwa-star); }
:where(.cwa-avatar--red):not(.cwa-z) { background: #D9453B; color: #FFFFFF; }
:where(.cwa-review__who):not(.cwa-z) { display: flex; flex-direction: column; line-height: 1.5; }
:where(.cwa-review__name):not(.cwa-z) { font-weight: 700; color: var(--cwa-text); }
:where(.cwa-review__src):not(.cwa-z) { font-size: 14px; color: var(--cwa-grey); }
:where(.cwa-stars):not(.cwa-z) { display: flex; gap: 3px; }
:where(.cwa-review):not(.cwa-z) { margin: 0; quotes: none; }
:where(.cwa-review-count):not(.cwa-z) { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
:where(.cwa-review-count__num):not(.cwa-z) { font-family: var(--cwa-heading); font-size: 96px; font-weight: 800; line-height: .9; color: var(--cwa-star); }
:where(.cwa-review-count__label):not(.cwa-z) { font-family: var(--cwa-heading); font-size: 30px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: #FFFFFF; }

:where(.cwa-list):not(.cwa-z) { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
:where(.cwa-partner .cwa-list li):not(.cwa-z) { padding: 0; }
:where(.cwa-cil-logo img):not(.cwa-z) { width: 130px; height: 130px; object-fit: contain; }

/* =========================================================================
   Home search and Used caravans filters (dynamic components)
   ========================================================================= */
:where(.cwa-field):not(.cwa-z) { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
:where(.cwa-field label, .cwa-sort label):not(.cwa-z) { font-size: 15px; line-height: 1.5; font-weight: 700; color: var(--cwa-navy); }
:where(.cwa-field select, .cwa-sort select):not(.cwa-z)
{
	height: 50px; padding: 0 40px 0 14px; font: inherit; color: var(--cwa-text); background-color: #FFFFFF;
	border: 1px solid var(--cwa-field-border); border-radius: var(--cwa-radius-button); width: 100%;
	appearance: none; -webkit-appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%2316478C' stroke-width='2'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 14px center; cursor: pointer;
}
:where(.cwa-field select:focus-visible, .cwa-sort select:focus-visible):not(.cwa-z) { outline: 3px solid var(--cwa-navy); outline-offset: 2px; }

:where(.cwa-contents):not(.cwa-z) { display: contents; }
:where(.cwa-search):not(.cwa-z) { display: flex; flex-direction: column; gap: 18px; }
:where(.cwa-search__fields):not(.cwa-z) { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px; }
:where(.cwa-search__fields .cwa-field):not(.cwa-z) { flex: 1 1 190px; }
:where(.cwa-search__fields select):not(.cwa-z) { height: 52px; }
:where(.cwa-search__submit, .cwa-filters__submit):not(.cwa-z)
{
	flex: 0 0 auto; height: 52px; padding: 0 30px; border: 0; border-radius: var(--cwa-radius-button); cursor: pointer;
	background: var(--cwa-navy); color: #FFFFFF; font-family: var(--cwa-heading); font-size: 21px; font-weight: 800;
	text-transform: uppercase; letter-spacing: .04em; transition: background-color .2s ease, transform .2s ease;
}
:where(.cwa-search__submit:hover, .cwa-filters__submit:hover):not(.cwa-z) { background: var(--cwa-blue); }
:where(.cwa-search__popular):not(.cwa-z) { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--cwa-navy); }
:where(.cwa-search__label):not(.cwa-z) { font-weight: 700; margin-right: 4px; }
:where(.cwa-pill):not(.cwa-z) { text-decoration: none; background: #FFFFFF; color: var(--cwa-navy); font-weight: 700; padding: 11px 18px; border-radius: 999px; line-height: 1.5; transition: background-color .2s ease, color .2s ease; }
:where(.cwa-pill:hover):not(.cwa-z) { background: var(--cwa-navy); color: #FFFFFF; }
:where(.cwa-pill--blue):not(.cwa-z) { background: var(--cwa-blue); color: #FFFFFF; }

:where(.cwa-filters):not(.cwa-z) { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px; color: var(--cwa-navy); }
:where(.cwa-field--make):not(.cwa-z) { flex: 1 1 180px; }
:where(.cwa-field--type):not(.cwa-z) { flex: 1 1 160px; }
:where(.cwa-field--price, .cwa-field--budget):not(.cwa-z) { flex: 1 1 150px; }
:where(.cwa-check):not(.cwa-z) { flex: 0 0 auto; display: flex; align-items: center; gap: 10px; height: 50px; font-weight: 700; cursor: pointer; }
:where(.cwa-check input):not(.cwa-z) { width: 22px; height: 22px; accent-color: var(--cwa-navy); }
:where(.cwa-filters__submit):not(.cwa-z) { height: 50px; padding: 0 28px; }
/* "Hide sold vans" and the button stay together in the row (as one item, the way the design wraps). */
:where(.cwa-filters__end):not(.cwa-z) { flex: 0 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
@media (max-width: 767px)
{
	:where(.cwa-filters__end):not(.cwa-z) { flex: 1 1 100%; }
}
/* No match: the grid row above is hidden, so the box sits as close to the heading as the cards do. */
:where(.cwa-stock:has(.cwa-empty) .cwa-empty):not(.cwa-z) { margin-top: -32px; }

:where(.cwa-stock-head):not(.cwa-z) { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
:where(.cwa-stock-head__count):not(.cwa-z) { font-weight: 700; }
:where(.cwa-sort):not(.cwa-z) { display: flex; align-items: center; gap: 14px; }
:where(.cwa-sort label):not(.cwa-z) { color: var(--cwa-grey); }
:where(.cwa-sort select):not(.cwa-z) { height: 44px; width: auto; }

:where(.cwa-stock-more):not(.cwa-z) { text-align: center; }
:where(.cwa-stock__more):not(.cwa-z) { display: inline-block; text-decoration: none; background: var(--cwa-blue); color: #FFFFFF; font-family: var(--cwa-heading); font-size: 22px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; line-height: 1.5; padding: 16px 30px; border-radius: var(--cwa-radius-button); transition: background-color .2s ease, color .2s ease; }
:where(.cwa-stock__more:hover):not(.cwa-z) { background: var(--cwa-navy); color: #FFFFFF; }
:where(.cwa-stock__more[aria-busy="true"]):not(.cwa-z) { opacity: .6; pointer-events: none; }
/* No match (includes/divi-dynamic.php cwa_render_stock_empty): a full-width card in the caravan
   card style; the hidden placeholder card above it keeps the page structure the same. Browsers
   without :has() show that one card above the message. */
:where(.cwa-stock:has(.cwa-empty) .cwa-stock__grid):not(.cwa-z) { display: none; }
:where(.cwa-empty):not(.cwa-z)
{
	display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center;
	background: #FFFFFF; border: 1px solid var(--cwa-border); border-radius: var(--cwa-radius-card);
	padding: clamp(28px, 4vw, 48px) clamp(20px, 4vw, 48px);
}
:where(.cwa-empty__title):not(.cwa-z) { margin: 0; padding: 0; font-family: var(--cwa-heading); font-size: var(--gvid-cwa-card-title, 34px); font-weight: 800; text-transform: uppercase; color: var(--cwa-blue); line-height: 1.05; }
:where(.cwa-empty__text):not(.cwa-z) { margin: 0; padding: 0; max-width: 60ch; color: var(--cwa-text); line-height: 1.5; }
:where(.cwa-empty__chips):not(ul.cwa-z) { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
:where(.cwa-empty__chips li):not(.cwa-z) { list-style: none; padding: 0; }
:where(.cwa-chip):not(.cwa-z)
{
	display: inline-flex; align-items: center; gap: 10px; min-height: 44px; box-sizing: border-box; padding: 6px 8px 6px 16px;
	border-radius: 999px; background: var(--cwa-tint); border: 1px solid var(--cwa-border); color: var(--cwa-navy);
	font-weight: 700; line-height: 1.2; text-decoration: none;
}
:where(.cwa-chip__x):not(.cwa-z) { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: #FFFFFF; font-size: 20px; line-height: 1; }
:where(.cwa-chip:hover):not(.cwa-z) { background: var(--cwa-navy); border-color: var(--cwa-navy); color: #FFFFFF; }
:where(.cwa-chip:hover .cwa-chip__x):not(.cwa-z) { color: var(--cwa-navy); }
:where(.cwa-empty__actions):not(.cwa-z) { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 4px; }
:where(.cwa-empty__actions .cwa-btn-sm):not(.cwa-z) { padding: 0 24px; }
:where(.cwa-empty__call):not(.cwa-z) { margin: 0; padding: 0; color: var(--cwa-grey); }
:where(.cwa-empty__call a):not(.cwa-z) { font-weight: 700; color: var(--cwa-blue); white-space: nowrap; }
:where(.cwa-empty__latest):not(.cwa-z) { margin-top: 36px; text-align: left; }
:where(.cwa-empty__latest-title):not(.cwa-z) { margin: 0 0 16px; padding: 0; font-family: var(--cwa-heading); font-size: 26px; font-weight: 800; text-transform: uppercase; color: var(--cwa-blue); }
:where(.cwa-mini-list):not(ul.cwa-z) { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--gvid-cwa-gap-cards, 20px); }
:where(.cwa-mini):not(.cwa-z) { list-style: none; padding: 0; background: #FFFFFF; border: 1px solid var(--cwa-border); border-radius: var(--cwa-radius-card); overflow: hidden; }
:where(.cwa-mini__link):not(.cwa-z) { display: flex; flex-direction: column; height: 100%; color: var(--cwa-text); text-decoration: none; }
:where(.cwa-mini__photo):not(.cwa-z) { display: block; height: 170px; background: var(--cwa-photo-tint); overflow: hidden; }
:where(.cwa-mini__img):not(.cwa-z) { display: block; width: 100%; height: 100%; object-fit: cover; }
:where(.cwa-mini__body):not(.cwa-z) { flex: 1 1 auto; display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 20px; }
/* Prices line up along the bottom of the cards, whatever the title length. */
:where(.cwa-mini__price):not(.cwa-z) { margin-top: auto; padding-top: 4px; }
:where(.cwa-mini__title):not(.cwa-z) { font-size: 18px; font-weight: 700; line-height: 1.25; }
:where(.cwa-mini__link:hover .cwa-mini__title):not(.cwa-z) { text-decoration: underline; text-underline-offset: 3px; }
:where(.cwa-mini__specs):not(.cwa-z) { font-size: 15px; color: var(--cwa-grey); line-height: 1.5; }
:where(.cwa-mini__price):not(.cwa-z) { font-family: var(--cwa-heading); font-size: 30px; font-weight: 800; color: var(--cwa-blue); line-height: 1.1; }

/* Link cards (home tiles, About tiles, buyers guide): the title is a real link for keyboards and
   crawlers (Divi's "click anywhere" link is JavaScript only); its focus ring goes round the card. */
:where(.cwa-card-link):not(.cwa-z) { color: inherit; text-decoration: none; }
/* Same specificity as the site-wide focus rule (0,2,0) and later in the file: the card shows the ring, not the title. */
:where(.cwa-card-link):focus-visible:not(.cwa-z) { outline: none; }
/* Play buttons sit on photos: a white ring with a navy edge shows on light and dark parts alike. */
:where(.cwa-video__play):focus-visible:not(.cwa-z) { outline: 3px solid #FFFFFF; outline-offset: 3px; box-shadow: 0 0 0 9px var(--cwa-navy); }
/* Gravity Forms selects: the same 3 px navy ring as the other fields. */
.cwa-gform :where(select:focus-visible):not(.cwa-z) { outline: 3px solid var(--cwa-navy); outline-offset: 1px; }
:where(.cwa-tile-card, .cwa-link-card, .cwa-guide):has(.cwa-card-link:focus-visible) { outline: 3px solid var(--cwa-navy); outline-offset: 4px; }/* While new results load (js/site.js): the current ones fade to half. */
:where(.cwa-stock > *):not(.cwa-z) { transition: opacity .15s ease; }
:where(.cwa-stock.is-loading > *):not(.cwa-z) { opacity: .5; pointer-events: none; }
:where(.cwa-sr-only):not(.cwa-z) { position: absolute; width: 1px; height: 1px; margin: 0; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* =========================================================================
   Caravan cards (Divi Loop Builder groups)
   ========================================================================= */
:where(.cwa-card):not(.cwa-z) { height: 100%; }
:where(.cwa-card__media):not(.cwa-z) { position: relative; }
:where(.cwa-card__photo):not(.cwa-z) { display: block; height: 190px; background: var(--cwa-photo-tint); overflow: hidden; }
:where(.cwa-card__media--tall .cwa-card__photo):not(.cwa-z) { height: 200px; }
:where(.cwa-card__img):not(.cwa-z) { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--cwa-ease); }
:where(.cwa-card:hover .cwa-card__img):not(.cwa-z) { transform: scale(1.04); }
:where(.cwa-card__nophoto):not(.cwa-z) { display: flex; height: 100%; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; color: var(--cwa-grey); }
:where(.cwa-tag):not(.cwa-z) { position: absolute; top: 14px; left: 14px; z-index: 1; background: var(--cwa-green); color: var(--cwa-navy); font-family: var(--cwa-heading); font-size: 16px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; padding: 4px 12px; border-radius: 6px; line-height: 1.4; }
:where(.cwa-tag--sold):not(.cwa-z) { background: var(--cwa-navy); color: #FFFFFF; }
:where(.cwa-card__title a):not(.cwa-z) { text-decoration: none; }
:where(.cwa-card__title a:hover):not(.cwa-z) { text-decoration: underline; text-underline-offset: 3px; }
/* Card buttons: always the same height and shape. Side by side with equal widths; their text never
   wraps; when the card is too narrow for both they stack, full width, still the same height.
   The query container is the buttons' wrapper (not the card: a query container gets layout
   containment, and the card is a subgrid, see tools/build/theme-builder.php). */
:where(.cwa-card__actions-wrap):not(.cwa-z) { container-type: inline-size; padding-top: 14px; }
:where(.cwa-card__actions):not(.cwa-z) { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: center; }
:where(.cwa-btn-sm):not(.cwa-z) { display: flex; align-items: center; justify-content: center; box-sizing: border-box; min-height: 52px; padding: 0 12px; border: 2px solid transparent; white-space: nowrap; text-decoration: none; text-align: center; font-weight: 700; border-radius: var(--cwa-radius-button); line-height: 1.2; }
/* Hover fades only where there is hover. On phones the colours otherwise "animated" in while
   the stylesheets arrived (Lighthouse: non-composited animations, staging with LiteSpeed). */
@media (hover: hover) and (pointer: fine)
{
	:where(.cwa-btn-sm):not(.cwa-z) { transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
}
:where(.cwa-btn-sm--primary):not(.cwa-z) { background: var(--cwa-blue); border-color: var(--cwa-blue); color: #FFFFFF; }
:where(.cwa-btn-sm--primary:hover):not(.cwa-z) { background: var(--cwa-navy); border-color: var(--cwa-navy); color: #FFFFFF; }
:where(.cwa-btn-sm--outline):not(.cwa-z) { color: var(--cwa-blue); border-color: var(--cwa-blue); }
:where(.cwa-btn-sm--outline:hover):not(.cwa-z) { background: var(--cwa-blue); color: #FFFFFF; }
:where(.cwa-btn-sm--full):not(.cwa-z) { grid-column: 1 / -1; padding: 0 16px; }
:where(.cwa-card__sold):not(.cwa-z) { font-weight: 700; color: var(--cwa-grey); font-size: 15px; line-height: 1.3; }
@container (max-width: 250px)
{
	:where(.cwa-card__actions):not(.cwa-z) { grid-template-columns: 1fr; }
}
/* Browsers without container queries (older Safari): stack below the card width where both no longer fit. */
@supports not (container-type: inline-size)
{
	@media (min-width: 981px) and (max-width: 1080px)
	{
		:where(.cwa-card__actions):not(.cwa-z) { grid-template-columns: 1fr; }
	}
}
:where(.cwa-card__finance p:empty):not(.cwa-z) { display: none; }
/* No finance figure (no rate set): the empty line takes no room between price and buttons. */
:where(.cwa-card__finance:has(p:empty), .cwa-card__finance:not(:has(p))):not(.cwa-z) { display: none; }

/* Home buy / sell tiles: van cut-out contained in the coloured area. */
:where(.cwa-tile-card__van img):not(.cwa-z) { display: block; max-width: 100%; max-height: 272px; width: auto; margin: 0 auto; object-fit: contain; }

/* =========================================================================
   Single listing
   ========================================================================= */
:where(.cwa-gallery):not(.cwa-z) { display: flex; flex-direction: column; gap: 12px; }
:where(.cwa-gallery__stage):not(.cwa-z) { position: relative; }
:where(.cwa-gallery__stage .cwa-tag):not(.cwa-z) { top: 18px; left: 18px; font-size: 18px; padding: 5px 14px; }
:where(.cwa-gallery__main):not(.cwa-z) { display: block; width: 100%; height: 520px; padding: 0; border: 0; border-radius: var(--cwa-radius-card); overflow: hidden; background: var(--cwa-photo-tint); cursor: zoom-in; }
:where(.cwa-gallery__img):not(.cwa-z) { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--cwa-ease); }
:where(.cwa-gallery__main:hover .cwa-gallery__img):not(.cwa-z) { transform: scale(1.02); }
:where(.cwa-gallery--empty .cwa-gallery__main):not(.cwa-z) { display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--cwa-grey); position: relative; cursor: default; }
:where(.cwa-gallery__thumbs):not(.cwa-z) { display: flex; gap: 12px; }
:where(.cwa-gallery__thumb):not(.cwa-z) { position: relative; flex: 1 1 0; min-width: 0; height: 96px; padding: 0; border: 0; border-radius: var(--cwa-radius-button); overflow: hidden; background: var(--cwa-photo-tint); cursor: pointer; outline-offset: 2px; }
:where(.cwa-gallery__thumb img):not(.cwa-z) { display: block; width: 100%; height: 100%; object-fit: cover; transition: opacity .2s ease; }
:where(.cwa-gallery__thumb:hover img):not(.cwa-z) { opacity: .85; }
:where(.cwa-gallery__thumb[aria-current="true"]):not(.cwa-z) { box-shadow: 0 0 0 3px var(--cwa-green); }
:where(.cwa-gallery__thumb--more span):not(.cwa-z) { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(12, 42, 84, .62); color: #FFFFFF; font-size: 15px; font-weight: 700; white-space: nowrap; }

:where(.cwa-cil):not(.cwa-z) { display: flex; align-items: center; gap: 16px; text-decoration: none; border: 1px solid var(--cwa-border); border-radius: 14px; padding: 14px 16px; color: var(--cwa-text); background: #FFFFFF; transition: border-color .2s ease, box-shadow .2s ease; }
:where(.cwa-cil:hover):not(.cwa-z) { border-color: var(--cwa-blue); box-shadow: 0 8px 20px rgba(12, 42, 84, .12); }
:where(.cwa-cil img):not(.cwa-z) { flex: 0 0 auto; width: 96px; height: 96px; object-fit: contain; }
:where(.cwa-cil__sub):not(.cwa-z) { color: var(--cwa-grey); }

:where(.cwa-sold-banner):not(.cwa-z) { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 16px; padding: 14px 18px; border-radius: 12px; background: var(--cwa-tint); border-left: 6px solid var(--cwa-navy); font-weight: 600; color: var(--cwa-text); line-height: 1.4; }
:where(.cwa-sold-banner__tag):not(.cwa-z) { background: var(--cwa-navy); color: #FFFFFF; font-family: var(--cwa-heading); font-size: 16px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; padding: 4px 12px; border-radius: 6px; }
:where(.cwa-sold-banner a):not(.cwa-z) { font-weight: 700; color: var(--cwa-blue); }
:where(.cwa-price):not(.cwa-z) { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
:where(.cwa-price__amount):not(.cwa-z) { font-family: var(--cwa-heading); font-size: 72px; font-weight: 800; color: var(--cwa-blue); line-height: .9; }
:where(.cwa-price__note):not(.cwa-z) { font-weight: 700; color: var(--cwa-grey); }

:where(.cwa-keyspecs):not(.cwa-z) { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
:where(.cwa-keyspecs__item):not(.cwa-z) { flex: 1 1 130px; min-width: 0; background: var(--cwa-tint); border-radius: 12px; padding: 12px 14px; }
:where(.cwa-keyspecs dt):not(.cwa-z) { display: block; font-size: 14px; font-weight: 600; color: var(--cwa-grey); }
:where(.cwa-keyspecs dd):not(.cwa-z) { margin: 0; font-size: 19px; font-weight: 700; }

:where(.cwa-btn-block):not(.cwa-z) { display: block; width: 100%; text-align: center; }

:where(.cwa-finance):not(.cwa-z) { border: 2px solid var(--cwa-green); border-radius: 14px; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
:where(.cwa-finance__top):not(.cwa-z) { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
:where(.cwa-finance__title):not(.cwa-z) { font-family: var(--cwa-heading); font-size: 24px; font-weight: 800; text-transform: uppercase; color: var(--cwa-blue); line-height: 1; }
:where(.cwa-finance__toggle, .cwa-finance__terms):not(.cwa-z) { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
:where(.cwa-finance button):not(.cwa-z) { border: 2px solid var(--cwa-blue); border-radius: 999px; padding: 8px 16px; min-height: 44px; font: inherit; font-weight: 700; cursor: pointer; background: #FFFFFF; color: var(--cwa-blue); transition: background-color .2s ease, color .2s ease; }
:where(.cwa-finance button[aria-pressed="true"]):not(.cwa-z) { background: var(--cwa-blue); color: #FFFFFF; }
:where(.cwa-finance__figure):not(.cwa-z) { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
:where(.cwa-finance__amount):not(.cwa-z) { font-family: var(--cwa-heading); font-size: 60px; font-weight: 800; color: var(--cwa-blue); line-height: .9; }
:where(.cwa-finance__per):not(.cwa-z) { font-size: 19px; font-weight: 700; }
:where(.cwa-finance__label):not(.cwa-z) { font-size: 15px; font-weight: 700; color: var(--cwa-grey); margin-right: 4px; }
:where(.cwa-finance__note):not(.cwa-z) { margin: 0; font-size: 14px; color: var(--cwa-grey); }
:where(.cwa-finance__quote):not(.cwa-z) { text-decoration: none; text-align: center; background: var(--cwa-blue); color: #FFFFFF; font-weight: 700; padding: 14px 16px; border-radius: var(--cwa-radius-button); transition: background-color .2s ease; }
:where(.cwa-finance__quote:hover):not(.cwa-z) { background: var(--cwa-navy); color: #FFFFFF; }
:where(.cwa-finance__fixed):not(.cwa-z) { font-weight: 700; color: var(--cwa-blue); }
:where(.cwa-finance__disclaimer):not(.cwa-z) { font-size: 13px; color: var(--cwa-grey); }
:where(.cwa-finance__disclaimer summary):not(.cwa-z) { cursor: pointer; font-weight: 700; padding: 12px 0; }
:where(.cwa-finance__disclaimer p):not(.cwa-z) { margin: 0 0 8px; padding: 0; }

:where(.cwa-highlights):not(.cwa-z) { display: flex; flex-wrap: wrap; gap: 14px 40px; align-items: center; }
:where(.cwa-highlights__label):not(.cwa-z) { font-family: var(--cwa-heading); font-size: 26px; font-weight: 800; text-transform: uppercase; color: var(--cwa-green); }
:where(.cwa-highlights__list):not(.cwa-z) { display: contents; list-style: none; margin: 0; padding: 0; }
:where(.cwa-highlights__list li):not(.cwa-z) { list-style: none; font-family: var(--cwa-heading); font-size: 26px; font-weight: 700; text-transform: uppercase; color: #FFFFFF; padding: 0; }
:where(.cwa-highlights-band:has(.cwa-component:empty)):not(.cwa-z) { display: none; }

:where(.cwa-spec-table):not(.cwa-z) { margin: 0; border-top: 1px solid var(--cwa-border); }
:where(.cwa-spec-table div):not(.cwa-z) { display: flex; justify-content: space-between; gap: 24px; padding: 13px 0; border-bottom: 1px solid var(--cwa-border); }
:where(.cwa-spec-table dt):not(.cwa-z) { color: var(--cwa-grey); }
:where(.cwa-spec-table dd):not(.cwa-z) { margin: 0; font-weight: 700; text-align: right; }

/* Features: one card per category, 2 columns from 768 px (1 on phones). Cards align to the top so
   opening one does not stretch its neighbour; an odd last card stays in the left column. */
/* Equal heights: with JS off a row's cards stretch to match (everything is open anyway); with JS
   (.is-ready) cards align to the top and site.js gives every card the tallest closed card's height
   as its min-height, so only an opened card grows. The button sits at the bottom of its card. */
:where(.cwa-features):not(.cwa-z) { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: stretch; }
:where(.cwa-features.is-ready):not(.cwa-z) { align-items: start; }
@media (min-width: 768px) { :where(.cwa-features):not(.cwa-z) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
:where(.cwa-features__card):not(.cwa-z) { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--cwa-border); border-radius: var(--cwa-radius-card); padding: 24px; }
:where(.cwa-features__card > :has(> .cwa-features__toggle)):not(.cwa-z):not(.cwa-z) { margin-top: auto; padding: 0; }
:where(.cwa-features__title):not(.cwa-z) { margin: 0 0 10px; padding: 0; font-family: var(--cwa-heading); font-size: 26px; font-weight: 800; text-transform: uppercase; color: var(--cwa-blue); }
:where(.cwa-features__card ul):not(.cwa-z):not(.cwa-z) { margin: 0; padding: 0 0 0 20px; display: flex; /* beats Divi's .et_pb_text ul padding */ flex-direction: column; gap: 6px; color: var(--cwa-text); }
:where(.cwa-features__card li):not(.cwa-z) { padding: 0; }
:where(.cwa-features__rest):not(.cwa-z):not(.cwa-z) { margin-top: 6px; }
/* "Show 3 more" / "Show less": a text button with a 44 px tap height. */
:where(.cwa-features__toggle):not(.cwa-z) { display: inline-flex; align-items: center; min-height: 44px; margin: 8px 0 -10px; padding: 0; border: 0; background: none; font: inherit; font-weight: 700; color: var(--cwa-blue); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
:where(.cwa-features__toggle:hover):not(.cwa-z) { color: var(--cwa-navy); }
:where(.cwa-features__toggle:focus-visible):not(.cwa-z) { outline: 2px solid var(--cwa-navy); outline-offset: 2px; border-radius: 4px; }
/* After the rules above (same specificity). The button shows only once site.js is ready (a class, not
   [hidden]: Divi 5.20 runs this markup through wp_kses_post, which drops the hidden attribute).
   With JS off every item shows and there is no button. */
:where(.cwa-features__rest[hidden], .cwa-features__toggle:not(.is-ready)):not(.cwa-z):not(.cwa-z) { display: none; }
@media (prefers-reduced-motion: no-preference) {
	:where(.cwa-features__rest.cwa-is-opening):not(.cwa-z) { animation: cwa-features-in .2s ease-out; }
}
@keyframes cwa-features-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
:where(.cwa-form-title):not(.cwa-z) { margin: 0; padding: 0; font-family: var(--cwa-heading); font-size: var(--gvid-cwa-card-title, 34px); font-weight: 800; text-transform: uppercase; color: var(--cwa-blue); line-height: 1; }
:where(.cwa-form-sub):not(.cwa-z) { margin: 16px 0 0; color: var(--cwa-grey); }

/* Lightbox */
:where(.cwa-noscroll, .cwa-noscroll body):not(.cwa-z) { overflow: hidden; overscroll-behavior: none; }
:where(.cwa-lightbox):not(.cwa-z) { position: fixed; inset: 0; z-index: 100000; background: rgba(6, 18, 38, .94); display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; animation: cwa-fade .2s ease; }
:where(.cwa-lightbox__figure):not(.cwa-z) { margin: 0; grid-column: 2; display: flex; flex-direction: column; align-items: center; gap: 12px; }
:where(.cwa-lightbox__figure img):not(.cwa-z) { max-width: 100%; max-height: calc(100vh - 120px); object-fit: contain; border-radius: 8px; }
:where(.cwa-lightbox__count):not(.cwa-z) { color: #FFFFFF; font-weight: 700; }
:where(.cwa-lightbox button):not(.cwa-z) { background: rgba(255, 255, 255, .12); color: #FFFFFF; border: 0; border-radius: 50%; width: 52px; height: 52px; font-size: 34px; line-height: 1; cursor: pointer; justify-self: center; }
:where(.cwa-lightbox button:hover, .cwa-lightbox button:focus-visible):not(.cwa-z) { background: var(--cwa-green); color: var(--cwa-navy); }
:where(.cwa-lightbox__close):not(.cwa-z) { position: absolute; top: 16px; right: 16px; }
:where(.cwa-lightbox__prev):not(.cwa-z) { grid-column: 1; }
:where(.cwa-lightbox__next):not(.cwa-z) { grid-column: 3; }

/* =========================================================================
   Contact page
   ========================================================================= */
:where(.cwa-hours):not(.cwa-z) { margin: 0; border-top: 1px solid var(--cwa-border); }
:where(.cwa-hours div):not(.cwa-z) { display: flex; justify-content: space-between; gap: 24px; padding: 12px 0; border-bottom: 1px solid var(--cwa-border); }
:where(.cwa-hours dd):not(.cwa-z) { margin: 0; font-weight: 700; }
:where(.cwa-strong-link):not(.cwa-z) { font-weight: 700; }
:where(.cwa-bigphone):not(.cwa-z) { text-decoration: none; white-space: nowrap; transition: opacity .2s ease; }
:where(.cwa-bigphone:hover):not(.cwa-z) { opacity: .85; }

/* Map (Contact): Google's embed, responsive 16:9 (4:3 on tablets and phones). Loads directly
   (loading="lazy" keeps it off the first load). */
:where(.cwa-map):not(.cwa-z) { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--cwa-radius-card); background: var(--cwa-photo-tint); overflow: hidden; }
:where(.cwa-map iframe):not(.cwa-z) { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 980px)
{
	:where(.cwa-map):not(.cwa-z) { aspect-ratio: 4 / 3; }
}

/* =========================================================================
   Gravity Forms (Divi cannot style GF fields). Orbital theme via its CSS
   variables, so nothing fights the plugin.
   ========================================================================= */
.cwa-gform :where(.gform-theme--orbital, .gform_wrapper):not(.cwa-z)
{
	--gf-font-family-base: var(--cwa-body);
	/* No GF fades: its stylesheets load without blocking (includes/forms.php), and its 0.15 s
	   transitions then "animated" every field from unstyled to styled while the page loaded. */
	--gf-transition-duration: 0s;
	--gf-color-primary: var(--cwa-navy);
	--gf-color-in-ctrl: #FFFFFF;
	--gf-color-in-ctrl-contrast: var(--cwa-text);
	--gf-color-in-ctrl-dark: var(--cwa-text);
	--gf-color-out-ctrl-dark: var(--cwa-text);
	--gf-color-danger: #B3261E;
	--gf-radius: 10px;
	--gf-ctrl-size: 50px;
	--gf-ctrl-radius: 10px;
	--gf-ctrl-font-size: 17px;
	--gf-ctrl-padding-x: 14px;
	--gf-ctrl-bg-color: #FFFFFF;
	--gf-ctrl-border-color: var(--cwa-field-border);
	--gf-ctrl-border-width: 1px;
	--gf-ctrl-border-color-focus: var(--cwa-blue);
	/* Keyboard focus: solid navy (GF's own ring was a 65 % green, 1.7:1 on white, QA 25 Nov 2026). */
	--gf-ctrl-outline-color-focus: var(--cwa-navy);
	--gf-ctrl-outline-width-focus: 3px;
	--gf-ctrl-btn-shadow-focus: 0 0 0 3px #FFFFFF, 0 0 0 6px var(--cwa-navy);
	--gf-ctrl-shadow: none;
	--gf-ctrl-accent-color: var(--cwa-navy);
	--gf-ctrl-label-color-primary: var(--cwa-text);
	--gf-ctrl-label-font-size-primary: 15px;
	--gf-ctrl-label-font-weight-primary: 700;
	--gf-ctrl-desc-color: var(--cwa-grey);
	--gf-ctrl-desc-font-size: 15px;
	--gf-ctrl-btn-size: 54px;
	--gf-ctrl-btn-radius: 10px;
	--gf-ctrl-btn-padding-x: 30px;
	--gf-ctrl-btn-font-family: var(--cwa-heading);
	--gf-ctrl-btn-font-size: 22px;
	--gf-ctrl-btn-font-weight: 800;
	--gf-ctrl-btn-text-transform: uppercase;
	--gf-ctrl-btn-letter-spacing: .04em;
	--gf-ctrl-btn-bg-color-primary: var(--cwa-green);
	/* Hover: darker green, navy text (a navy hover vanished on the navy bands). */
	--gf-ctrl-btn-bg-color-hover-primary: var(--cwa-green-hover);
	--gf-ctrl-btn-color-primary: var(--cwa-navy);
	--gf-ctrl-btn-color-hover-primary: var(--cwa-navy);
	--gf-ctrl-file-zone-border-style: dashed;
	--gf-ctrl-file-zone-radius: 12px;
	--gf-ctrl-file-zone-padding-y: 16px;
	--gf-ctrl-file-zone-padding-x: 18px;
	--gf-ctrl-file-zone-color: var(--cwa-grey);
	--gf-ctrl-file-zone-icon-color: var(--cwa-blue);
	--gf-form-gap-y: 14px;
	--gf-form-gap-x: 14px;
	--gf-field-row-gap: 14px;
	--gf-label-space-primary: 6px;
}
:where(.cwa-gform--btn-navy .gform-theme--orbital, .cwa-gform--btn-navy .gform_wrapper):not(.cwa-z) { --gf-ctrl-btn-bg-color-primary: var(--cwa-navy); --gf-ctrl-btn-color-primary: #FFFFFF; --gf-ctrl-btn-bg-color-hover-primary: var(--cwa-blue); --gf-ctrl-btn-color-hover-primary: #FFFFFF; }

/* Gravity Forms internals (not Divi Visual Builder settings): selectors are .cwa-gform :where(...) so they
   beat GF's own reset (.gform-theme--framework :where(...) { revert }), which loads after this file.
   The heading above each form is a Divi Heading module; GF's own title is not shown. */
.cwa-gform :where(.gform_heading):not(.cwa-z) { display: none; }
.cwa-gform :where(.gform_footer):not(.cwa-z) { margin-top: 16px; padding: 0; }
.cwa-gform :where(.gform_footer .gform_button):not(.cwa-z) { width: 100%; flex: 1 1 100%; justify-content: center; text-align: center; }
.cwa-gform :where(.gform_footer .gform_button:focus-visible):not(.cwa-z) { outline: 3px solid var(--cwa-navy); outline-offset: 3px; box-shadow: 0 0 0 3px #FFFFFF; }
/* Size, line height and colours of the submit button: the Divi Gravity Forms module's own button
   settings (tools/build/lib.php gform(): smaller with tight lines on phones, at least 54 px high). */
/* Required fields are marked by "(optional)" on the others, as designed; the GF marker stays for screen readers. */
.cwa-gform :where(.gfield_required):not(.cwa-z) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cwa-gform :where(.gfield_label, .gform-field-label):not(.cwa-z) { line-height: 1.5; }
/* Compact photo drop zone (design: icon, text and button in one row). */
.cwa-gform :where(.gform_fileupload_multifile .gform_drop_area):not(.cwa-z)
{
	display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; text-align: left;
	background: var(--cwa-tint); border: 2px dashed var(--cwa-field-border); border-radius: 12px; padding: 16px 18px;
}
.cwa-gform :where(.gform_drop_area .gform_drop_instructions):not(.cwa-z) { margin: 0; font-size: 15px; color: var(--cwa-grey); }
.cwa-gform :where(.gform_drop_area::before):not(.cwa-z) { font-size: 30px; margin: 0; color: var(--cwa-blue); }
.cwa-gform :where(.gform_drop_area .gform_button_select_files):not(.cwa-z) { background: #FFFFFF; color: var(--cwa-blue); border: 2px solid var(--cwa-blue); font-family: var(--cwa-body); font-size: 15px; font-weight: 700; text-transform: none; letter-spacing: 0; padding: 6px 14px; border-radius: 8px; min-height: 0; }
.cwa-gform :where(.gform_drop_area .gform_button_select_files:hover):not(.cwa-z) { background: var(--cwa-blue); color: #FFFFFF; }
.cwa-gform :where(.gform_fileupload_rules):not(.cwa-z) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cwa-gform :where(.gfield_description):not(.cwa-z) { padding-top: 6px; font-size: 15px; }
/* Message boxes: 3 rows as designed (4 on the Contact page). */
body .cwa-gform .gfield :where(textarea):not(.cwa-z) { block-size: 103px; min-block-size: 103px; resize: vertical; }
body .cwa-gform .cwa-form--contact .gfield :where(textarea):not(.cwa-z) { block-size: 128px; }
.cwa-gform :where(.ginput_container_consent):not(.cwa-z) { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
:where(.cwa-form-confirmation):not(.cwa-z) { margin: 0; padding: 18px 20px; background: var(--cwa-tint); border-left: 6px solid var(--cwa-green); border-radius: 12px; font-size: 19px; font-weight: 600; color: var(--cwa-text); }
:where(.cwa-form-error):not(.cwa-z) { font-size: 17px; }

/* =========================================================================
   Motion: gentle reveals for our own components (Divi animates modules),
   and a calm page for anyone who prefers reduced motion.
   ========================================================================= */
@keyframes cwa-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes cwa-fade-down { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* Page hero H1 (the LCP element on most pages): the same slide-in as Divi's animation, but in CSS,
   so it starts with the first paint. Divi's version waits for Divi's footer JavaScript, which held
   the LCP back by ~2.5 s on a phone (PageSpeed "element render delay"). Starts at 1 % opacity:
   an element at opacity 0 does not count as painted for LCP. */
@keyframes cwa-hero-in { from { opacity: .01; transform: translateY(6%); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference)
{
	:where(.cwa-hero-in):not(.cwa-z) { animation: cwa-hero-in .8s var(--cwa-ease) both; }
}

:where(.cwa-js-reveal .cwa-reveal):not(.cwa-z) { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--cwa-ease), transform .6s var(--cwa-ease); }
:where(.cwa-js-reveal .cwa-reveal.is-visible):not(.cwa-z) { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce)
{
	:where(.cwa-lift, .cwa-card__img, .cwa-gallery__img, .cwa-video__play, .cwa-totop, .cwa-stock > *):not(.cwa-z) { transition: none; }
	:where(.cwa-lift:hover, .cwa-lift:focus-within):not(.cwa-z) { transform: none; }
	:where(.cwa-card:hover .cwa-card__img, .cwa-gallery__main:hover .cwa-gallery__img):not(.cwa-z) { transform: none; }
	:where(.cwa-js-reveal .cwa-reveal):not(.cwa-z) { opacity: 1; transform: none; }
}

/* =========================================================================
   Responsive (Divi breakpoints: tablet <= 980 px, phone <= 767 px)
   ========================================================================= */
@media (max-width: 980px)
{
	:where(.cwa-hero-media):not(.cwa-z) { height: 360px; }
	:where(.cwa-gallery__main):not(.cwa-z) { height: 420px; }
	:where(.cwa-price__amount):not(.cwa-z) { font-size: 60px; }
}

@media (max-width: 767px)
{
	/* Room for the call bar, set once here: the bar's measured height (js/site.js, includes the safe
	   area) or the same estimate without JS. The footer's own 16 px sits above it. */
	:where(body):not(.cwa-z) { padding-bottom: var(--cwa-mobilebar-h, calc(72px + env(safe-area-inset-bottom, 0px))); }
	:where(.cwa-totop):not(.cwa-z) { bottom: calc(var(--cwa-mobilebar-h, calc(72px + env(safe-area-inset-bottom, 0px))) + 12px); }
	:where(.cwa-hero-media):not(.cwa-z) { height: 280px; margin: -16px 16px 0 -4px; }
	:where(.cwa-blob img):not(.cwa-z) { height: 280px; width: calc(100% - 16px); }
	:where(.cwa-blob--shadow img):not(.cwa-z) { box-shadow: 14px 14px 0 0 var(--cwa-green); }
	:where(.cwa-photo--420 img, .cwa-photo--440 img):not(.cwa-z) { height: 280px; }
	:where(.cwa-gallery__main):not(.cwa-z) { height: 280px; }
	:where(.cwa-gallery__thumb):not(.cwa-z) { height: 64px; }
	:where(.cwa-strip__name):not(.cwa-z) { font-size: 24px; }
	:where(.cwa-review-count__num):not(.cwa-z) { font-size: 72px; }
	:where(.cwa-search__submit, .cwa-filters__submit):not(.cwa-z) { width: 100%; }
	:where(.cwa-price__amount):not(.cwa-z) { font-size: 52px; }
	:where(.cwa-finance__amount):not(.cwa-z) { font-size: 48px; }
	:where(.cwa-lightbox):not(.cwa-z) { grid-template-columns: 44px 1fr 44px; }
	:where(.cwa-lightbox button):not(.cwa-z) { width: 40px; height: 40px; font-size: 26px; }
}


/* Homepage hero: keep the three hero buttons on one line from 1280px wide.
   Exception to the rules at the top: the Divi button presets set padding and
   font-size with !important, so this has to as well. Below 1280px they wrap as before. */
@media (min-width: 1280px) {
	body.home #page-container .et_pb_section .cwa-buttons { flex-wrap: nowrap !important; }
	body.home #page-container .et_pb_section .cwa-buttons .cwa-btn { padding-left: 18px !important; padding-right: 18px !important; font-size: min(21px, calc(4px + .84vw)) !important; white-space: nowrap; }
}

/* Warranty box on caravan pages: text left, National Warranty logo right (client 2 Dec 2026). */
.cwa-warranty-box.et_pb_group {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) auto;
	column-gap: 24px;
	row-gap: 8px;
	align-items: center;
}
.cwa-warranty-box > .et_pb_module { grid-column: 1; margin: 0 !important; }
.cwa-warranty-box > .cwa-warranty-logo.et_pb_module {
	grid-column: 2;
	grid-row: 1 / span 2;
	width: 130px !important;
	max-width: 130px !important;
}
@media (max-width: 480px) {
	.cwa-warranty-box.et_pb_group { column-gap: 14px; }
	.cwa-warranty-box > .cwa-warranty-logo.et_pb_module { grid-row: 1; width: 90px !important; max-width: 90px !important; }
	.cwa-warranty-box > .et_pb_module:nth-child(2) { grid-column: 1 / -1; }
}

/* Sold vans: bright diagonal "Sold to a happy buyer!" banner across the photo (cards and the listing gallery). */
:where(.cwa-card__media, .cwa-gallery__stage):has(.cwa-tag--sold) { overflow: hidden; }
:where(.cwa-tag--sold):not(.cwa-z) { top: 50%; left: 50%; right: auto; width: 140%; box-sizing: border-box; transform: translate(-50%, -50%) rotate(-14deg); background: var(--cwa-green); color: var(--cwa-navy); text-align: center; white-space: nowrap; font-size: clamp(15px, 4.2vw, 20px); letter-spacing: .04em; padding: 8px 0; border-radius: 0; border-top: 3px solid var(--cwa-navy); border-bottom: 3px solid var(--cwa-navy); box-shadow: 0 6px 18px rgba(0, 0, 0, .35); pointer-events: none; }

/* Sold caravan pages (body class from divi-dynamic.php): no Enquire/Call buttons and no enquiry section for this van. */
.cwa-is-sold .cwa-listing-actions,
.cwa-is-sold .et_pb_section:has(#enquire) { display: none !important; }

/* Warranty box on caravan pages is one link to the warranty page (link added in functions.php); hover matches the CIL box. */
.cwa-warranty-box.et_pb_group { position: relative; border: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.cwa-warranty-box__link { position: absolute; inset: 0; z-index: 2; border-radius: inherit; }
.cwa-warranty-box.et_pb_group:hover,
.cwa-warranty-box.et_pb_group:focus-within { border-color: var(--cwa-blue); box-shadow: 0 8px 20px rgba(12, 42, 84, .12); }
.cwa-warranty-box__link:focus-visible { outline: 3px solid var(--cwa-navy); outline-offset: 2px; }
