/* ==========================================================================
   DCE V2 — site.css
   Tokens, base, buttons, header, footer, dialogs. Loaded on every page.
   Every V2 class is prefixed dx- so it never collides with V1's theme.css,
   which still styles the non-catalog pages.
   ========================================================================== */

:root {
  /* Brand — taken from the logo and V1 palette, used with restraint */
  --dx-navy: #17335f;
  --dx-navy-deep: #0f2444;
  --dx-blue: #1d4f9e;        /* links, focus, selected controls */
  --dx-blue-tint: #e9eff8;
  --dx-red: #a8321f;         /* the one primary action */
  --dx-red-deep: #892615;

  /* Neutrals */
  --dx-ink: #15181c;
  --dx-ink-2: #4b5159;       /* secondary text — 7.9:1 on white */
  --dx-ink-3: #686e77;       /* tertiary text — 5.1:1 on white */
  --dx-line: #d6d9de;
  --dx-line-2: #e8eaed;
  --dx-bg: #ffffff;
  --dx-bg-2: #f5f4f0;        /* warm paper, a lighter cousin of V1's cream */
  --dx-well: #f0efeb;        /* behind photos */
  --dx-ok: #1e6b3a;
  --dx-ok-bg: #edf5ef;
  --dx-used: #7a4a00;
  --dx-used-bg: #fbf1dc;

  --dx-display: var(--wp--preset--font-family--display, 'Barlow Condensed', 'Arial Narrow', sans-serif);
  --dx-body: var(--wp--preset--font-family--body, 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif);

  --dx-r: 3px;
  --dx-wrap: 1360px;
  --dx-gutter: clamp(16px, 4vw, 40px);
  --dx-target: 40px;
  --dx-focus: 3px solid var(--dx-blue);
}
@media (pointer: coarse) {
  :root { --dx-target: 44px; }
}

/* ---------- Base (V2 pages only — V1 pages keep theme.css) ---------- */
body.dx-page {
  margin: 0;
  background: var(--dx-bg);
  color: var(--dx-ink);
  font-family: var(--dx-body);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.dx-page *, body.dx-page *::before, body.dx-page *::after,
.dx-header, .dx-header *, .dx-topbar, .dx-topbar *, .dx-footer, .dx-footer *, .dx-dialog, .dx-dialog * { box-sizing: border-box; }
body.dx-page .wp-site-blocks { padding: 0; }
body.dx-page .wp-site-blocks > * { margin-block: 0; }
body.dx-page :where(h1, h2, h3, h4) { margin: 0; font-family: var(--dx-display); font-weight: 600; line-height: 1.1; letter-spacing: 0; text-transform: none; color: var(--dx-ink); text-wrap: balance; }
:where(body.dx-page) p { margin: 0 0 1em; }
:where(body.dx-page) :is(ul, ol) { margin: 0; padding: 0; list-style: none; }
:where(body.dx-page) a:where(:not(.dx-btn)) { color: var(--dx-blue); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
:where(body.dx-page) a:where(:not(.dx-btn)):hover { color: var(--dx-navy-deep); }
:where(body.dx-page) img { max-width: 100%; height: auto; }
:where(body.dx-page) :is(dl, dd, figure) { margin: 0; }
:where(body.dx-page) table { border-collapse: collapse; width: 100%; }
html:has(body.dx-page) { scroll-behavior: auto; scroll-padding-top: 4.5rem; }

.dx-wrap { width: 100%; max-width: var(--dx-wrap); margin-inline: auto; padding-inline: var(--dx-gutter); }
.dx-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.dx-icon { flex: none; display: inline-block; vertical-align: middle; }

.dx-page :focus-visible, .dx-dialog :focus-visible, .dx-footer :focus-visible { outline: var(--dx-focus); outline-offset: 2px; border-radius: 2px; }
.dx-header :focus-visible, .dx-topbar :focus-visible, .dx-footer :focus-visible { outline: 3px solid #ffd27a; outline-offset: 2px; }

/* ---------- Buttons ---------- */
.dx-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: var(--dx-target); padding: 0.5rem 1rem;
  font: 600 1rem/1.2 var(--dx-body); letter-spacing: 0; text-transform: none; text-decoration: none;
  color: var(--dx-navy); background: #fff;
  border: 1.5px solid var(--dx-navy); border-radius: var(--dx-r);
  cursor: pointer; box-shadow: none; touch-action: manipulation;
}
.dx-btn:hover { background: var(--dx-blue-tint); color: var(--dx-navy-deep); }
.dx-btn--primary { background: var(--dx-red); border-color: var(--dx-red); color: #fff; }
.dx-btn--primary:hover { background: var(--dx-red-deep); border-color: var(--dx-red-deep); color: #fff; }
.dx-btn--quiet { border-color: transparent; background: transparent; text-decoration: underline; text-underline-offset: 0.18em; padding-inline: 0.5rem; }
.dx-btn--quiet:hover { background: var(--dx-blue-tint); }
.dx-btn--lg { min-height: 52px; padding-inline: 1.25rem; font-size: 1.0625rem; }
.dx-btn.is-block { display: flex; width: 100%; }

.dx-iconbtn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0;
  color: inherit; background: transparent; border: 0; border-radius: var(--dx-r); cursor: pointer; touch-action: manipulation;
}
.dx-iconbtn:hover { background: rgb(0 0 0 / 0.07); }
.dx-iconbtn--solid { background: #fff; color: var(--dx-ink); border: 1px solid var(--dx-line); }
.dx-iconbtn--solid:hover { background: var(--dx-bg-2); }
.dx-iconbtn[disabled] { opacity: 0.35; cursor: default; }

/* ---------- Top bar ---------- */
.dx-topbar { background: var(--dx-navy-deep); color: #d5dceb; position: relative; font: 400 0.8125rem/1.3 var(--dx-body); }
.dx-topbar__in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 34px; }
.dx-topbar p { margin: 0; color: inherit; font: inherit; }
.dx-topbar__sep { margin-inline: 0.5rem; opacity: 0.6; }
.dx-topbar a { display: inline-flex; align-items: center; gap: 0.35rem; color: #fff; font-weight: 600; text-decoration: none; white-space: nowrap; min-height: 34px; }
.dx-topbar a:hover { color: #fff; text-decoration: underline; }
.dx-topbar__stores { font-weight: 400 !important; color: #d5dceb !important; text-decoration: underline !important; text-decoration-color: rgb(255 255 255 / 0.4) !important; text-underline-offset: 0.2em; }
.dx-topbar__stores:hover { color: #fff !important; text-decoration-color: #fff !important; }
@media (max-width: 640px) {
  .dx-topbar__hours, .dx-topbar__sep { display: none; }
}

/* ---------- Header ---------- */
.dx-header { background: var(--dx-navy); color: #fff; font-family: var(--dx-body); position: relative; z-index: 50; }
.dx-header__in { display: flex; align-items: center; gap: clamp(0.75rem, 2vw, 2rem); min-height: 72px; }
.dx-header__in > * { flex-shrink: 0; }
.dx-logo { display: block; line-height: 0; }
.dx-logo img { display: block; width: auto; height: 48px; max-width: none; }
.dx-nav { margin-inline-start: auto; }
.dx-header.is-wide .dx-nav { margin-inline: 0 auto; }

.dx-menubtn {
  display: inline-flex; align-items: center; gap: 0.4rem; min-height: 44px; padding: 0 0.75rem;
  color: #fff; background: transparent; border: 1.5px solid rgb(255 255 255 / 0.55); border-radius: var(--dx-r);
  font: 600 1rem/1 var(--dx-body); cursor: pointer;
}
.dx-menubtn:hover { background: rgb(255 255 255 / 0.1); }

/* Collapsed (default): the menu is a popover sheet on the right edge */
.dx-menu { list-style: none; margin: 0; padding: 0; }
.dx-menu[popover], .dx-menu.dx-nopopover {
  position: fixed; inset: 0 0 0 auto; margin: 0;
  inline-size: min(88vw, 23rem); block-size: 100dvh; max-block-size: 100dvh;
  padding: 0.75rem 1rem calc(1rem + env(safe-area-inset-bottom, 0px));
  overflow: auto; overscroll-behavior: contain;
  background: #fff; color: var(--dx-ink); border: 0; border-inline-start: 1px solid var(--dx-line);
  box-shadow: -12px 0 32px rgb(15 36 68 / 0.18);
}
.dx-menu.dx-nopopover:not(.is-open) { display: none; }
.dx-menu[popover]::backdrop { background: rgb(15 36 68 / 0.45); }
.dx-menu__item { position: relative; display: flex; flex-wrap: wrap; align-items: center; border-bottom: 1px solid var(--dx-line-2); margin: 0; padding: 0; }
.dx-menu__item > a {
  flex: 1; display: flex; align-items: center; min-height: 48px; padding: 0.25rem 0;
  color: var(--dx-ink); text-decoration: none; font: 600 1.25rem/1.2 var(--dx-display); letter-spacing: 0.01em; text-transform: none;
}
.dx-menu__item > a:hover { color: var(--dx-blue); }
.dx-menu__item > a[aria-current="page"] { color: var(--dx-blue); }
.dx-subbtn { display: inline-grid; place-items: center; width: 48px; height: 48px; padding: 0; background: transparent; border: 0; color: inherit; cursor: pointer; border-radius: var(--dx-r); }
.dx-subbtn .dx-icon { transition: rotate 0.15s; }
.dx-subbtn[aria-expanded="true"] .dx-icon { rotate: 180deg; }
.dx-sub { list-style: none; flex-basis: 100%; margin: 0 0 0.5rem; padding: 0 0 0 0.75rem; border-inline-start: 2px solid var(--dx-line); display: none; }
.dx-subbtn[aria-expanded="true"] + .dx-sub { display: block; }
.dx-sub .dx-menu__item { border: 0; }
.dx-sub .dx-menu__item > a { min-height: 44px; font: 400 1rem/1.3 var(--dx-body); }

/* Wide: the same list sits inline in the header (class set by site.js when it fits) */
.dx-header.is-wide .dx-menubtn { display: none; }
.dx-header.is-wide .dx-menu {
  position: static; display: flex; align-items: center; gap: 0.125rem;
  inline-size: auto; block-size: auto; max-block-size: none; padding: 0; overflow: visible;
  background: transparent; color: #fff; border: 0; box-shadow: none;
}
.dx-header.is-wide .dx-menu > .dx-menu__item { border: 0; flex-wrap: nowrap; }
.dx-header.is-wide .dx-menu > .dx-menu__item > a {
  flex: none; min-height: 72px; padding: 0 0.55rem; color: #fff; white-space: nowrap;
  font: 600 1.0625rem/1 var(--dx-display); letter-spacing: 0.03em; text-transform: uppercase;
  border-block: 3px solid transparent;
}
.dx-header.is-wide .dx-menu > .dx-menu__item.has-sub > a { padding-inline-end: 0.15rem; }
.dx-header.is-wide .dx-menu > .dx-menu__item > a:hover { color: #fff; border-bottom-color: rgb(255 255 255 / 0.55); }
.dx-header.is-wide .dx-menu > .dx-menu__item > a[aria-current="page"],
.dx-header.is-wide .dx-menu > .dx-menu__item.is-ancestor > a { border-bottom-color: #fff; }
.dx-header.is-wide .dx-subbtn { width: 24px; height: 44px; color: #fff; margin-inline-end: 0.25rem; }
.dx-header.is-wide .dx-sub {
  position: absolute; inset-block-start: 100%; inset-inline-start: 0; z-index: 5;
  min-inline-size: 16rem; margin: 0; padding: 0.5rem;
  background: #fff; color: var(--dx-ink); border: 1px solid var(--dx-line); border-top: 3px solid var(--dx-red);
  box-shadow: 0 12px 28px rgb(15 36 68 / 0.16);
}
.dx-header.is-wide .dx-sub .dx-menu__item > a { padding: 0 0.75rem; min-height: 40px; white-space: nowrap; border-radius: 2px; }
.dx-header.is-wide .dx-sub .dx-menu__item > a:hover { background: var(--dx-blue-tint); color: var(--dx-navy-deep); }
@media (hover: hover) {
  .dx-header.is-wide .dx-menu__item.has-sub:hover > .dx-sub { display: block; }
}
.dx-header.is-wide .dx-menu__all { display: none; }
.dx-menu__all > a { font-weight: 600 !important; }
.dx-header.is-measuring * { transition: none !important; }

/* Stacked: a long menu takes its own full-width row under the logo (desktop never gets a menu button) */
.dx-header.is-stacked .dx-header__in { flex-wrap: wrap; row-gap: 0; }
.dx-header.is-stacked .dx-header__tools { margin-inline-start: auto; }
.dx-header.is-stacked .dx-nav { order: 3; flex: 0 0 100%; margin: 0; border-top: 1px solid rgb(255 255 255 / 0.16); }
.dx-header.is-stacked .dx-menu { flex-wrap: wrap; margin-inline: -0.55rem; }
.dx-header.is-stacked .dx-menu > .dx-menu__item > a { min-height: 48px; }
.dx-header.is-stacked .dx-logo img { height: 44px; }
.dx-header.is-stacked .dx-header__in { min-height: 0; padding-top: 0.6rem; }
.dx-header.is-stacked .dx-header__in > .dx-logo, .dx-header.is-stacked .dx-header__in > .dx-header__tools { margin-bottom: 0.6rem; }

.dx-header__tools { display: flex; align-items: center; gap: 0.75rem; }
.dx-hsearch { display: flex; align-items: center; background: rgb(255 255 255 / 0.12); border: 1px solid rgb(255 255 255 / 0.35); border-radius: var(--dx-r); }
.dx-hsearch:focus-within { background: #fff; border-color: #fff; }
.dx-hsearch input {
  inline-size: 10rem; min-height: 42px; padding: 0 0.25rem 0 0.75rem; border: 0; background: transparent; color: #fff;
  font: 400 1rem/1 var(--dx-body); outline-offset: -2px;
}
.dx-hsearch input::placeholder { color: rgb(255 255 255 / 0.8); opacity: 1; }
.dx-hsearch:focus-within input { color: var(--dx-ink); }
.dx-hsearch:focus-within input::placeholder { color: var(--dx-ink-3); }
.dx-hsearch button { display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 0; background: transparent; color: #fff; cursor: pointer; }
.dx-hsearch:focus-within button { color: var(--dx-navy); }
.dx-header__call { min-height: 44px; white-space: nowrap; }
/* Compact: the search field folds to its icon and opens on focus */
.dx-header.is-compact .dx-hsearch { position: relative; }
.dx-header.is-compact .dx-hsearch input { position: absolute; inset-inline-end: 100%; inline-size: 0; padding: 0; opacity: 0; }
.dx-header.is-compact .dx-hsearch:focus-within input { inline-size: 14rem; padding: 0 0.75rem; opacity: 1; background: #fff; border-radius: var(--dx-r) 0 0 var(--dx-r); box-shadow: 0 0 0 1px #fff; }
.dx-header:not(.is-wide) .dx-hsearch { display: none; }
.dx-header:not(.is-wide) .dx-header__tools { order: 2; }
.dx-header:not(.is-wide) .dx-nav { order: 3; margin-inline-start: 0; }
.dx-header:not(.is-wide) .dx-header__tools { margin-inline-start: auto; }
@media (max-width: 520px) {
  .dx-header__in { min-height: 64px; gap: 0.5rem; }
  .dx-logo img { height: 40px; }
  .dx-header__call span, .dx-menubtn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .dx-header__call { width: 44px; padding: 0; }
  .dx-menubtn { width: 44px; padding: 0; justify-content: center; }
}

/* ---------- Footer ---------- */
/* Footer (5.0.18). From 760px one three-column grid: brand | Equipment | Dealership, then the stores under a hairline in
   the same three columns (subgrid), each store's name / address / phone / email on shared rows so they line up across.
   Under 760px: the brand, the two link lists side by side, then the stores stacked between hairlines.
   V1's theme.css also styles this footer (.site-footer): side padding on top of the wrap's gutter, and under 640px every
   h2 at 32-56px with !important, so the padding is reset here and the headings restate their size with !important. */
.dx-footer { --dx-fgap: clamp(1.5rem, 3.5vw, 3.5rem); background: var(--dx-navy-deep); color: #cfd6e4; font: 400 0.9375rem/1.5 var(--dx-body); margin-top: clamp(3rem, 6vw, 5rem); padding: clamp(2.5rem, 5vw, 3.5rem) 0 1.5rem; }
.dx-footer__top { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1.5rem; }
.dx-footer__brand, .dx-footer__stores { grid-column: 1 / -1; min-width: 0; }
.dx-footer__nav { min-width: 0; }
.dx-footer img { display: block; height: 56px; width: auto; margin-bottom: 1rem; }
.dx-footer p { margin: 0 0 0.5rem; color: inherit; max-width: 34ch; }
.dx-footer .dx-footer__hours { color: #fff; }
.dx-footer__hours span { display: inline-block; } /* a day group moves to the next line whole; one longer than the column still wraps */
.dx-footer h2 { margin: 0 0 0.5rem; color: #fff; font: 600 1.0625rem/1.2 var(--dx-display); font-size: 1.0625rem !important; line-height: 1.2 !important; letter-spacing: 0.08em; text-transform: uppercase; }
.dx-footer ul { list-style: none; margin: 0; padding: 0; }
.dx-footer a { color: #fff; text-decoration: none; }
.dx-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 0.2em; }
.dx-footer .dx-footer__nav a { display: inline-flex; align-items: center; min-height: var(--dx-target); color: #dbe3f0; }
.dx-footer .dx-footer__nav a:hover, .dx-footer .dx-footer__nav a[aria-current="page"] { color: #fff; text-decoration: underline; text-underline-offset: 0.2em; }
.dx-footer .dx-footer__stores { margin: 0; padding: 1.75rem 0 0; border-top: 1px solid rgb(255 255 255 / 0.16); } /* V1 pads every section 56-96px */
.dx-footer__store { display: grid; align-content: start; justify-items: start; gap: 0.2rem; min-width: 0; }
/* Phones: the stores stacked between hairlines, phone and email side by side; the email moves under the phone whenever
   the two don't fit on one line (a wrapping row, so a long address never breaks mid-word beside the number). */
@media (max-width: 759.98px) {
  .dx-footer__store { display: flex; flex-wrap: wrap; align-items: center; gap: 0.2rem 1.25rem; padding-block: 0.9rem; }
  .dx-footer__store:first-child { padding-top: 0.25rem; }
  .dx-footer__store + .dx-footer__store { border-top: 1px solid rgb(255 255 255 / 0.1); }
  .dx-footer__name, .dx-footer__addr { flex: 0 0 100%; }
}
.dx-footer .dx-footer__name { margin: 0; max-width: none; color: #fff; font-weight: 600; font-size: 1rem; }
.dx-footer .dx-footer__addr { margin: 0; font-style: normal; }
.dx-footer .dx-footer__addr a { display: inline-block; color: #cfd6e4; }
.dx-footer .dx-footer__addr a:hover { color: #fff; }
.dx-footer .dx-footer__phone { display: inline-flex; align-items: center; min-height: 32px; color: #fff; font: 600 1.25rem/1.2 var(--dx-display); letter-spacing: 0.02em; font-variant-numeric: tabular-nums; }
.dx-footer .dx-footer__email { display: inline-flex; align-items: center; min-height: 28px; max-width: 100%; color: #cfd6e4; font-size: 0.875rem; overflow-wrap: anywhere; text-decoration: underline; text-decoration-color: rgb(255 255 255 / 0.35); text-underline-offset: 0.2em; }
.dx-footer .dx-footer__email:hover { color: #fff; text-decoration-color: currentColor; }
@media (pointer: coarse) {
  .dx-footer .dx-footer__addr a, .dx-footer .dx-footer__phone, .dx-footer .dx-footer__email { display: inline-flex; align-items: center; min-height: 44px; }
}
@media (min-width: 760px) {
  .dx-footer__top { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--dx-fgap); }
  .dx-footer__brand { grid-column: auto; }
  /* The stores take the footer's own columns; the second declaration wins where subgrid is supported. */
  .dx-footer__stores { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-columns: subgrid; column-gap: var(--dx-fgap); }
  .dx-footer__stores > h2, .dx-footer__storelist { grid-column: 1 / -1; }
  .dx-footer__storelist { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-columns: subgrid; grid-auto-rows: auto; gap: 0.3rem var(--dx-fgap); }
  .dx-footer__store { grid-row: span 4; grid-template-rows: repeat(4, auto); grid-template-rows: subgrid; gap: 0.3rem; padding: 0; border: 0 !important; }
  .dx-footer__store:nth-child(n+4) { padding-top: 1.5rem; }
  .dx-footer__name { grid-row: 1; }
  .dx-footer__addr { grid-row: 2; }
  .dx-footer__phone { grid-row: 3; }
  .dx-footer__email { grid-row: 4; }
}
.dx-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgb(255 255 255 / 0.18); font-size: 0.8125rem; }
.dx-footer__bottom p { max-width: none; margin: 0; }
.dce-version-stamp { opacity: 0.6; margin-inline-start: 0.75rem; }

/* ---------- Dialogs ---------- */
dialog.dx-dialog, dialog.dx-sheet, dialog.dx-lightbox { color: var(--dx-ink); font-family: var(--dx-body); border: 0; padding: 0; }
dialog.dx-dialog:modal, dialog.dx-sheet:modal, dialog.dx-lightbox:modal { overscroll-behavior: contain; }
dialog.dx-dialog::backdrop, dialog.dx-sheet::backdrop, dialog.dx-lightbox::backdrop { background: rgb(15 36 68 / 0.55); overflow: hidden; overscroll-behavior: contain; }

dialog.dx-dialog {
  inline-size: min(100vw - 2rem, 30rem); max-block-size: min(100dvh - 2rem, 46rem);
  background: #fff; border-radius: var(--dx-r); box-shadow: 0 24px 60px rgb(15 36 68 / 0.3);
}
dialog.dx-dialog--form { inline-size: min(100vw - 2rem, 36rem); }
.dx-dialog__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.75rem 0.75rem 0.75rem 1.25rem; border-bottom: 1px solid var(--dx-line-2); position: sticky; top: 0; background: #fff; z-index: 1; }
.dx-dialog__head h2 { margin: 0; font: 600 1.5rem/1.1 var(--dx-display); letter-spacing: 0; text-transform: none; color: var(--dx-ink); }
.dx-dialog__lede { margin: 0; padding: 0.75rem 1.25rem 0; color: var(--dx-ink-2); font-size: 0.9375rem; }
.dx-dialog__body { padding: 1rem 1.25rem 1.25rem; }
.dx-dialog__foot { margin: 0; padding: 0.75rem 1.25rem 1rem; color: var(--dx-ink-2); font-size: 0.875rem; border-top: 1px solid var(--dx-line-2); }
.dce-inq__fallback { margin: 0 0 0.75rem; color: var(--dx-ink-2); }
/* Reply-time line above the inquiry form (quote.php): in the dialog and on /contact/ (V1 page styles, hence !important margin). */
.dce-inq__promise { margin: 0 0 1rem !important; padding: 0.55rem 0.75rem; font: 600 1rem/1.35 var(--dx-body); color: var(--dx-ok); background: var(--dx-ok-bg); border-left: 3px solid var(--dx-ok); border-radius: 0 var(--dx-r) var(--dx-r) 0; }
@media (max-width: 560px) {
  dialog.dx-dialog { inline-size: 100vw; max-inline-size: 100vw; margin: auto 0 0; border-radius: var(--dx-r) var(--dx-r) 0 0; max-block-size: 92dvh; padding-bottom: env(safe-area-inset-bottom, 0px); }
  /* The quote window may use all but the top 2.5rem of a phone screen (a strip of the page stays visible above it). */
  dialog.dx-dialog--form { max-block-size: calc(100dvh - 2.5rem); }
}
/* Quote window, 5.0.15: tighter spacing so the whole form, Submit included, fits on one screen (an iPhone with Safari's bars
   showing, about 390 x 664, and a 1280 x 650 laptop window). Boxes stay 44px tall and their text 16px (iPhone doesn't zoom). */
dialog.dx-dialog--form .dx-dialog__head { padding-block: 0.375rem; }
.dx-dialog__titles { flex: 1 1 0%; min-width: 0; }
/* A long About line wraps instead of squeezing the close button below 44px. */
dialog.dx-dialog--form .dx-dialog__head > .dx-iconbtn { flex: none; }
.dx-dialog__re { margin: 0.125rem 0 0; font-size: 0.875rem; line-height: 1.3; color: var(--dx-ink-2); overflow-wrap: anywhere; }
.dx-dialog__re strong { color: var(--dx-ink); }
dialog.dx-dialog--form .dx-dialog__lede { padding-top: 0.5rem; }
dialog.dx-dialog--form .dx-dialog__body { padding: 0.75rem 1.25rem 0.875rem; }
/* One line down to a 360px phone. */
dialog.dx-dialog--form .dce-inq__promise { margin-bottom: 0.625rem !important; padding: 0.3rem 0.55rem; font-size: 0.875rem; line-height: 1.3; }

.dx-calllist { list-style: none; margin: 0; padding: 0.25rem 1.25rem 0.5rem; }
.dx-dialog__body .dx-calllist { padding-inline: 0; }
.dx-calllist li { border-bottom: 1px solid var(--dx-line-2); margin: 0; }
.dx-calllist li:last-child { border-bottom: 0; }
.dx-calllist a:not(.dx-calllist__mail) { display: grid; grid-template-columns: 1fr auto; gap: 0 1rem; align-items: center; padding: 0.75rem 0; min-height: 56px; color: var(--dx-ink); text-decoration: none; }
.dx-calllist__name { font-weight: 600; grid-column: 1; }
.dx-calllist__city { grid-column: 1; color: var(--dx-ink-2); font-size: 0.875rem; }
.dx-calllist__tel { grid-column: 2; grid-row: 1 / span 2; display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 700; color: var(--dx-blue); white-space: nowrap; font-variant-numeric: tabular-nums; }
.dx-calllist a:hover .dx-calllist__tel { text-decoration: underline; }
.dx-calllist__mail { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 32px; margin: -0.25rem 0 0.6rem; font-size: 0.9375rem; color: var(--dx-blue); }

/* Fluent Forms inside the dialog — light touch so it reads as part of the site */
.dx-dialog .fluentform .ff-el-group { margin-bottom: 0.5rem; }
.dx-dialog .fluentform .ff_submit_btn_wrapper { margin-bottom: 0; }
.dx-dialog .fluentform label { font-weight: 600; font-size: 0.9375rem; color: var(--dx-ink); }
.dx-dialog .fluentform .ff-el-input--label { margin-bottom: 0.15rem; line-height: 1.25; }
.dx-dialog .fluentform .ff-el-input--label label { line-height: 1.25; }
/* First and last name side by side on phones too (Fluent stacks its columns below 768px). */
.dx-dialog .fluentform .ff-name-field-wrapper .ff-t-container { display: flex; gap: 0.75rem; }
.dx-dialog .fluentform .ff-name-field-wrapper .ff-t-cell { flex: 1 1 0; min-width: 0; width: auto; }
.dx-dialog .fluentform input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
.dx-dialog .fluentform select, .dx-dialog .fluentform textarea {
  width: 100%; min-height: 44px; padding: 0.5rem 0.75rem; font: 400 1rem/1.4 var(--dx-body);
  color: var(--dx-ink); background: #fff; border: 1.5px solid var(--dx-ink-3); border-radius: var(--dx-r);
}
/* Three lines (Fluent's rows="5" made it 130px); it can still be dragged taller. */
.dx-dialog .fluentform textarea { min-height: 44px; height: calc(3 * 1.4em + 1rem + 3px); resize: vertical; }
/* Phone field (Fluent Pro's intl-tel-input): the country-flag button covers the left 46px of the box, so the number starts
   after it with the same 0.75rem gap as the other fields. The selector repeats the rule above (plus .iti--allow-dropdown)
   so it outranks that rule's padding; the library's own 52px loses to it. */
.dx-dialog .fluentform .iti--allow-dropdown input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]) { padding-left: calc(46px + 0.75rem); }
.dx-dialog .fluentform .ff-btn-submit { min-height: 48px; width: 100%; background: var(--dx-red); border: 0; border-radius: var(--dx-r); color: #fff; font: 600 1.0625rem/1 var(--dx-body); cursor: pointer; }
.dx-dialog .fluentform .ff-btn-submit:hover { background: var(--dx-red-deep); }

/* V1 inquiry trigger used on a few legacy pages */
.dce-inq-btn.is-block { display: flex; width: 100%; }

@media (prefers-reduced-motion: reduce) {
  .dx-header *, .dx-page *, .dx-dialog * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) {
  .dx-btn, .dx-iconbtn--solid, .dx-menubtn { border: 1px solid ButtonText; }
}

/* Top bar: keep the two links on one line down to the narrowest phones */
.dx-topbar p { display: flex; align-items: center; min-width: 0; }
.dx-topbar__in { gap: 0.5rem; }
@media (max-width: 380px) {
  .dx-topbar { font-size: 0.75rem; }
  .dx-topbar__stores .dx-icon { display: none; }
}

/* Wildlife page: V1 gives this one inquiry button a white face; keep its label readable on it */
.dce-wildlife .dce-wl-fit .dce-inq-btn { color: var(--dx-navy); border-color: #fff; }
.dce-wildlife .dce-wl-fit .dce-inq-btn:hover { background: var(--dx-blue-tint); color: var(--dx-navy-deep); }

/* Phone menu: a header row with a close button (hidden when the menu is inline on desktop) */
.dx-menu__top { position: sticky; top: -0.75rem; z-index: 2; display: flex; align-items: center; justify-content: space-between; margin: -0.75rem -1rem 0.25rem; padding: 0.5rem 0.5rem 0.5rem 1rem; background: #fff; border-bottom: 1px solid var(--dx-line); font: 600 0.8125rem/1 var(--dx-body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--dx-ink-2); }
.dx-menu__x { width: 48px; height: 48px; color: var(--dx-ink); }
.dx-header.is-wide .dx-menu__top { display: none; }
