/* ==========================================================================
   LIBERTY SQUARE — all custom CSS for the Client View site (one file).
   Loaded once from functions.php (after Client View's own CSS).

   1. Header + mega menu ........ includes/lsf-header.php, js/lsf-header.js
   2. Shortcodes ................ [lsf_rooms] (+ [lsf_subcats] uses Divi's .subcat-grid CSS)
   3. Client View ............... buttons, page container, product cards + product page

   Add new rules to the matching section; don't create new CSS files.
   ========================================================================== */

/* ==========================================================================
   LIBERTY SQUARE CUSTOM HEADER
   Markup: includes/lsf-header.php  Behaviour: js/lsf-header.js
   Scoped to .lsf-header; #main-header.lsf-header beats Divi's #main-header rules.
   Keep the 1024px breakpoint in sync with matchMedia() in the JS.
   ========================================================================== */

:root {
  --lsf-header-bg: #0e0e0e;
  --lsf-header-text: #fff;
  --lsf-header-muted: #b9b9b9;
  --lsf-header-rule: #3a3a3a;
  --lsf-header-hover: #1f1f1f;
  --lsf-header-accent: #b87a27;
  --lsf-header-accent-hover: #9c6620;
  --lsf-header-field-bg: #ececec;
  --lsf-header-field-text: #222;
  --lsf-header-focus: #e3b36d;
  --lsf-header-font: Inter, "Helvetica Neue", Arial, sans-serif;
  --lsf-header-width: 1240px;
  --lsf-header-gutter: 32px;
  --lsf-header-main-height: 134px;
  --lsf-header-nav-height: 64px;
  --lsf-header-mobile-height: 150px;
  --lsf-header-control-height: 42px;
  --lsf-header-row-height: 40px;
  --lsf-header-admin-offset: 0px;
}

body.admin-bar {
  --lsf-header-admin-offset: 32px;
}

.lsf-header,
.lsf-header *,
.lsf-header *::before,
.lsf-header *::after {
  box-sizing: border-box;
}

#main-header.lsf-header {
  position: relative;
  top: auto;
  z-index: 99999;
  width: 100%;
  margin: 0;
  padding: 0;
  background: var(--lsf-header-bg);
  box-shadow: none;
  color: var(--lsf-header-text);
  font-family: var(--lsf-header-font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.35;
  text-align: left;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

.lsf-header [hidden] {
  display: none !important;
}

.lsf-header a {
  color: inherit;
  text-decoration: none;
}

.lsf-header ul,
.lsf-header li {
  margin: 0;
  padding: 0;
  list-style: none;
  line-height: inherit;
}

.lsf-header button,
.lsf-header input,
.lsf-header summary {
  font: inherit;
}

.lsf-header button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: inherit;
  cursor: pointer;
  line-height: 1;
  text-transform: none;
}

.lsf-header :where(a, button, input, summary):focus-visible {
  outline: 2px solid var(--lsf-header-focus);
  outline-offset: 3px;
}

.lsf-header :where(a, button, input, summary):focus:not(:focus-visible) {
  outline: none;
}

.lsf-header svg {
  display: block;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lsf-header .lsf-header__solid {
  fill: currentColor;
  stroke: none;
}

.lsf-header .lsf-header__cut {
  stroke: var(--lsf-header-bg);
  stroke-width: 2;
}

.lsf-header-spacer {
  display: none;
}

/* Top row: logo, search, contact, quote, hamburger. */
.lsf-header__main {
  display: grid;
  grid-template-columns: 116px minmax(200px, 470px) 1fr auto 40px;
  align-items: center;
  gap: 36px;
  max-width: var(--lsf-header-width);
  min-height: var(--lsf-header-main-height);
  margin-inline: auto;
  padding: 18px var(--lsf-header-gutter);
}

.lsf-header__brand {
  display: block;
}

.lsf-header__brand img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 92px;
  object-fit: contain;
  object-position: left center;
}

.lsf-header__contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* Lines left-aligned to each other, per the mockup. */
  justify-self: center;
  gap: 4px;
  font-size: 17px;
  letter-spacing: .02em;
  white-space: nowrap;
}

.lsf-header__contact a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.lsf-header__contact a:hover {
  color: var(--lsf-header-accent);
}

.lsf-header .lsf-header__quote {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: var(--lsf-header-control-height);
  padding: 6px 16px;
  border-radius: 3px;
  background: #efefef;
  color: #111;
  font-size: 15px;
  font-weight: 500;
  text-transform: uppercase;
  white-space: nowrap;
}

.lsf-header .lsf-header__quote:hover {
  background: #fff;
}

.lsf-header__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding-inline: 4px;
  border-radius: 9px;
  background: var(--lsf-header-accent);
  color: #fff;
  font-size: 11px;
  line-height: 1;
}

.lsf-header .lsf-header__toggle {
  width: 40px;
  height: 44px;
}

.lsf-header__toggle svg {
  stroke-width: 2.2;
}

.lsf-header .lsf-header__toggle:hover {
  color: var(--lsf-header-accent);
}

.lsf-header .lsf-header__close,
.lsf-header .lsf-header__utility-quote,
.lsf-header .lsf-header__utility-contact {
  display: none;
}

.lsf-header.is-menu-open .lsf-header__hamburger {
  display: none;
}

.lsf-header.is-menu-open .lsf-header__close {
  display: block;
}

/* Client View [vuer_search]. */
.lsf-header__search {
  min-width: 0;
  height: var(--lsf-header-control-height);
}

.lsf-header .lsf-header__search .vuer-search-shortcode,
.lsf-header .lsf-header__search .vuer-search,
.lsf-header .lsf-header__search .vuer-search__form,
.lsf-header .lsf-header__search .vuer-search__field {
  width: 100%;
  height: 100%;
  margin: 0;
}

.lsf-header .lsf-header__search .vuer-search__field {
  display: flex;
  align-items: stretch;
  border: 0;
  border-radius: 2px;
  background: var(--lsf-header-field-bg);
}

.lsf-header .lsf-header__search .vuer-search__input {
  flex: 1;
  width: 100%;
  min-width: 0;
  height: 100%;
  margin: 0;
  padding: 6px 18px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--lsf-header-field-text);
  font: inherit;
  font-size: 15px;
  line-height: normal;
}

.lsf-header .lsf-header__search .vuer-search__input::placeholder {
  color: #7a7a7a;
  text-transform: uppercase;
  opacity: 1;
}

.lsf-header .lsf-header__search .vuer-search__field:focus-within {
  outline: 2px solid var(--lsf-header-focus);
  outline-offset: 2px;
}

.lsf-header .lsf-header__search .vuer-search__input:focus {
  outline: 0;
}

.lsf-header .lsf-header__search .vuer-search__submit {
  position: static;
  width: var(--lsf-header-control-height);
  height: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #7a7a7a;
}

.lsf-header .lsf-header__search .vuer-search__submit:hover {
  color: #111;
}

.lsf-header .lsf-header__search .vuer-search__icon {
  width: 16px;
  height: 16px;
}

/* Suggestions stay light for readability over page content. */
.lsf-header .lsf-header__search .vuer-search__suggestions {
  max-height: min(60dvh, 420px);
  overflow-y: auto;
  border-radius: 0;
  background: #fff;
  color: #222;
}

/* Room bar. */
.lsf-header__navigation {
  position: relative;
  border-top: 1px solid var(--lsf-header-rule);
  border-bottom: 1px solid var(--lsf-header-rule);
}

.lsf-header__primary {
  max-width: var(--lsf-header-width);
  margin-inline: auto;
  padding-inline: var(--lsf-header-gutter);
}

.lsf-header .lsf-header__rooms {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
}

.lsf-header__row {
  display: flex;
  align-items: stretch;
}

.lsf-header__row > a {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  min-height: var(--lsf-header-row-height);
  padding: 6px 8px;
}

.lsf-header__room > .lsf-header__row > a {
  min-height: var(--lsf-header-nav-height);
  padding-inline: 0;
  font-size: 17px;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.lsf-header__room > .lsf-header__row > a:hover,
.lsf-header__room.is-open > .lsf-header__row > a {
  color: var(--lsf-header-accent);
}

.lsf-header .lsf-header__disclosure {
  width: 22px;
  min-height: var(--lsf-header-row-height);
}

.lsf-header__chevron {
  width: 12px;
  height: 12px;
}

.lsf-header__disclosure[aria-expanded="true"] .lsf-header__chevron,
.lsf-header__color-group[open] > summary .lsf-header__chevron {
  transform: rotate(180deg);
}

/* Menu Mockup: a tiny chevron raised to the top of each room name. */
@media (min-width: 1024px) and (hover: hover) and (pointer: fine) {
  .lsf-header__room > .lsf-header__row > .lsf-header__disclosure {
    align-items: flex-start;
    width: 14px;
    padding-top: calc(var(--lsf-header-nav-height) / 2 - 11px);
  }

  .lsf-header__room > .lsf-header__row .lsf-header__chevron {
    width: 9px;
    height: 9px;
    stroke-width: 2;
  }
}

/* Mega panel: full-bleed dark band under the room bar. Closed = display:none
   via [hidden], so it never leaves a hover/click target behind. */
.lsf-header__mega {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  max-height: calc(100dvh - var(--lsf-header-nav-height) - var(--lsf-header-admin-offset) - 16px);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--lsf-header-bg);
  border-top: 1px solid var(--lsf-header-rule);
}

.lsf-header__mega-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
  max-width: var(--lsf-header-width);
  margin-inline: auto;
  padding: 32px var(--lsf-header-gutter) 64px;
}

.lsf-header .lsf-header__category-links {
  columns: 2;
  column-gap: 48px;
  padding-left: 12px;
}

.lsf-header__category-links li {
  break-inside: avoid;
}

.lsf-header__category-links a {
  display: block;
  padding-block: 13px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .02em;
  line-height: 1.2;
  text-transform: uppercase;
}

.lsf-header__category-links a:hover,
.lsf-header__color-group a:hover {
  color: var(--lsf-header-accent);
}

.lsf-header__feature {
  position: relative;
  display: block;
  aspect-ratio: 1.62;
  overflow: hidden;
  border-radius: 6px;
  background: var(--lsf-header-hover);
}

.lsf-header__feature-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.lsf-header__feature:hover .lsf-header__feature-image {
  transform: scale(1.03);
}

.lsf-header__feature-cta {
  position: absolute;
  left: 32px;
  bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 10px;
  border-radius: 2px;
  background: var(--lsf-header-accent);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  text-transform: uppercase;
}

.lsf-header__feature:hover .lsf-header__feature-cta {
  background: var(--lsf-header-accent-hover);
}

/* Hamburger dropdown (desktop). */
.lsf-header__utility {
  position: absolute;
  top: var(--lsf-header-utility-top, 0px);
  right: max(24px, calc((100% - var(--lsf-header-width)) / 2 + 24px));
  z-index: 2;
  width: 300px;
  max-height: calc(100dvh - var(--lsf-header-main-height) - var(--lsf-header-admin-offset) - 16px);
  padding: 10px 24px 16px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--lsf-header-rule);
  background: var(--lsf-header-bg);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .35);
}

.lsf-header-js .lsf-header:not(.is-menu-open) .lsf-header__utility {
  display: none;
}

.lsf-header__utility-item + .lsf-header__utility-item {
  border-top: 1px solid var(--lsf-header-rule);
}

.lsf-header__utility-quote + .lsf-header__utility-item {
  border-top: 0;
}

.lsf-header__utility .lsf-header__row {
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .02em;
}

.lsf-header__utility .lsf-header__row > a:hover {
  color: var(--lsf-header-accent);
}

.lsf-header__colors {
  padding: 2px 8px 12px;
}

.lsf-header__color-group summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: var(--lsf-header-row-height);
  padding-block: 6px;
  cursor: pointer;
  list-style: none;
  color: var(--lsf-header-muted);
}

.lsf-header__color-group summary::-webkit-details-marker {
  display: none;
}

.lsf-header__color-group a {
  display: block;
  padding: 6px 0 6px 12px;
  font-size: 15px;
}

/* No-JS fallback. .lsf-header-js is set on <html> by an inline <head> script before
   first paint, so the closed state never waits on the deferred lsf-header.js. */
html:not(.lsf-header-js) .lsf-header .lsf-header__toggle,
html:not(.lsf-header-js) .lsf-header .lsf-header__disclosure,
html:not(.lsf-header-js) .lsf-header .lsf-header__mega {
  display: none;
}

html:not(.lsf-header-js) .lsf-header .lsf-header__room:hover .lsf-header__mega,
html:not(.lsf-header-js) .lsf-header .lsf-header__room:focus-within .lsf-header__mega {
  display: block !important; /* Beats the [hidden] rule the server renders. */
}

html:not(.lsf-header-js) .lsf-header .lsf-header__utility {
  position: static;
  width: min(100%, var(--lsf-header-width));
  max-height: none;
  margin-inline: auto;
  border: 0;
  box-shadow: none;
}

/* Bigger chevron targets on touch devices, including desktop-width tablets. */
@media (any-pointer: coarse) {
  .lsf-header .lsf-header__room > .lsf-header__row > .lsf-header__disclosure {
    width: 44px;
    min-height: 44px;
  }
}

/* Tighten the desktop bar before it collapses. */
@media (min-width: 1024px) and (max-width: 1240px) {
  .lsf-header {
    --lsf-header-gutter: 24px;
  }

  .lsf-header__main {
    gap: 24px;
  }

  .lsf-header__room > .lsf-header__row > a {
    font-size: 15px;
  }

  .lsf-header__contact {
    font-size: 15px;
  }
}

/* Mobile/tablet: logo/quote/menu row, full-width search, menu overlay. */
@media (max-width: 1023px) {
  :root {
    /* Logo row + rule + search row; the menu overlay and spacer use this. */
    --lsf-header-mobile-height: 165px;
  }

  html.lsf-header-menu-open {
    overflow: hidden;
  }

  .lsf-header {
    --lsf-header-gutter: 20px;
  }

  #main-header.lsf-header.is-menu-open {
    position: fixed;
    top: var(--lsf-header-admin-offset);
    left: 0;
  }

  .lsf-header.is-menu-open + .lsf-header-spacer {
    display: block;
    height: var(--lsf-header-mobile-height);
  }

  /* Mobile mockup: logo | stacked phone + email | Quote List | menu, then a
     full-width rule and the search bar (icon on the left). */
  .lsf-header__main {
    grid-template-columns: auto minmax(0, 1fr) auto 36px;
    grid-template-rows: 64px var(--lsf-header-control-height);
    gap: 29px 14px;
    min-height: var(--lsf-header-mobile-height);
    padding-block: 14px 16px;
  }

  .lsf-header__brand {
    grid-column: 1;
    grid-row: 1;
    width: 78px;
  }

  .lsf-header__brand img {
    max-height: 62px;
  }

  .lsf-header .lsf-header__contact {
    grid-column: 2;
    grid-row: 1;
    gap: 2px;
    font-size: 14px;
    letter-spacing: 0;
  }

  .lsf-header__contact a {
    gap: 6px;
  }

  .lsf-header .lsf-header__quote {
    grid-column: 3;
    grid-row: 1;
  }

  .lsf-header__toggle {
    grid-column: 4;
    grid-row: 1;
  }

  .lsf-header__search {
    position: relative;
    grid-column: 1 / -1;
    grid-row: 2;
  }

  /* Rule across the full header width between the two rows. */
  .lsf-header__search::before {
    content: "";
    position: absolute;
    top: -15px;
    left: calc(-1 * var(--lsf-header-gutter));
    right: calc(-1 * var(--lsf-header-gutter));
    border-top: 1px solid var(--lsf-header-rule);
  }

  .lsf-header .lsf-header__search .vuer-search__submit {
    order: -1;
  }

  .lsf-header .lsf-header__search .vuer-search__input {
    padding-left: 4px;
  }

  .lsf-header__navigation {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    min-height: calc(100dvh - var(--lsf-header-mobile-height) - var(--lsf-header-admin-offset));
    max-height: calc(100dvh - var(--lsf-header-mobile-height) - var(--lsf-header-admin-offset));
    padding: 0 var(--lsf-header-gutter) 40px;
    overflow-y: auto;
    overscroll-behavior: contain;
    border-bottom: 0;
    background: var(--lsf-header-bg);
  }

  .lsf-header-js .lsf-header:not(.is-menu-open) .lsf-header__navigation {
    display: none;
  }

  .lsf-header__primary {
    max-width: none;
    padding: 0;
  }

  .lsf-header .lsf-header__rooms {
    display: block;
  }

  .lsf-header__room,
  .lsf-header .lsf-header__utility-item {
    border: 0;
    border-bottom: 1px solid var(--lsf-header-rule);
  }

  .lsf-header .lsf-header__room > .lsf-header__row > a,
  .lsf-header .lsf-header__row > a {
    min-height: 48px;
    padding: 6px 4px;
    font-size: 16px;
  }

  .lsf-header .lsf-header__disclosure {
    width: 48px;
  }

  .lsf-header__mega {
    position: static;
    max-height: none;
    overflow: visible;
    border-top: 0;
  }

  .lsf-header__mega-inner {
    display: block;
    padding: 0 0 12px 16px;
  }

  .lsf-header .lsf-header__category-links {
    columns: 1;
    padding-left: 0;
  }

  .lsf-header__category-links a {
    padding-block: 10px;
    font-size: 15px;
  }

  .lsf-header .lsf-header__feature {
    display: none;
  }

  .lsf-header__utility {
    position: static;
    width: 100%;
    max-height: none;
    padding: 0;
    overflow: visible;
    border: 0;
    box-shadow: none;
  }

  .lsf-header .lsf-header__utility-quote,
  .lsf-header .lsf-header__utility-contact {
    display: list-item;
  }

  .lsf-header__colors {
    padding-left: 16px;
  }

  html:not(.lsf-header-js) .lsf-header .lsf-header__navigation {
    position: static;
    min-height: 0;
    max-height: none;
  }

  html:not(.lsf-header-js) .lsf-header .lsf-header__mega {
    display: block !important;
  }
}

@media (max-width: 782px) {
  body.admin-bar {
    --lsf-header-admin-offset: 46px;
  }
}

/* Phones: keep all four items on one row, as in the mobile mockup. */
@media (max-width: 480px) {
  .lsf-header {
    --lsf-header-gutter: 14px;
  }

  .lsf-header__main {
    column-gap: 9px;
  }

  .lsf-header__brand {
    width: 60px;
  }

  .lsf-header .lsf-header__contact {
    font-size: 11.5px;
  }

  .lsf-header__contact svg {
    width: 11px;
    height: 11px;
  }

  .lsf-header .lsf-header__quote {
    gap: 6px;
    padding-inline: 8px;
    font-size: 12px;
  }

  .lsf-header .lsf-header__toggle {
    width: 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lsf-header__feature-image {
    transition: none;
  }
}

@media print {
  .lsf-header .lsf-header__navigation,
  .lsf-header .lsf-header__search,
  .lsf-header .lsf-header__toggle,
  .lsf-header .lsf-header__quote {
    display: none;
  }
}

/* END LIBERTY SQUARE CUSTOM HEADER
   ========================================================================== */


/* ==========================================================================
   LIBERTY SQUARE SHORTCODES — [lsf_rooms]
   Markup: includes/lsf-shortcodes.php. [lsf_subcats] reuses the existing
   .subcat-grid rules from Divi's custom CSS.
   ========================================================================== */

.lsf-rooms {
  --lsf-rooms-accent: #b87a27;
  --lsf-rooms-text: #fff;
  --lsf-rooms-font: "Abhaya Libre", Georgia, "Times New Roman", serif;
  display: grid;
  grid-template-columns: repeat(var(--lsf-rooms-columns, 5), minmax(0, 1fr));
  gap: 30px 5.5%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lsf-rooms__item {
  margin: 0;
  padding: 0;
  list-style: none;
}

.lsf-rooms__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: var(--lsf-rooms-text);
  text-decoration: none;
}

.lsf-rooms__image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 6 / 5;
  object-fit: cover;
}

.lsf-rooms__label {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  min-height: 87px;
  padding: 16px 12px;
  background: var(--lsf-rooms-accent);
  color: var(--lsf-rooms-text);
  font-family: var(--lsf-rooms-font);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
}

/* Override the site-wide `a:hover { color: #333; text-decoration: underline }`
   (Divi custom CSS): a parent's underline can't be removed from the label, so it
   is cleared on the link and only the label's own white underline shows. */
.lsf-rooms__link:hover,
.lsf-rooms__link:focus {
  color: var(--lsf-rooms-text);
  text-decoration: none;
}

.lsf-rooms__link:hover .lsf-rooms__label,
.lsf-rooms__link:focus-visible .lsf-rooms__label {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.lsf-rooms__link:focus-visible {
  outline: 2px solid var(--lsf-rooms-accent);
  outline-offset: 3px;
}

@media (max-width: 980px) {
  .lsf-rooms {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .lsf-rooms {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* [lsf_subcats]: the old Divi custom CSS gives the grid `1fr 1fr` + a 4em gap below
   981px and the labels 25-30px !important padding, so on phones the padded labels
   force columns wider than the screen (right column runs off). Let columns shrink,
   tighten gap + labels on small screens. Desktop's 4 columns are unchanged. */
.subcat-grid-container .subcat-grid > .subcat-div {
  min-width: 0;
}

.subcat-grid-container .subcat-div .sub_cat_img_container img {
  width: 100%;
  height: auto;
}

@media (max-width: 981px) {
  .subcat-grid-container .subcat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 24px;
  }
}

@media (max-width: 480px) {
  .subcat-grid-container .subcat-grid {
    column-gap: 14px;
  }

  .subcat-grid-container .sub_cat_link {
    margin-bottom: 18px;
    padding: 12px 0;
  }

  .subcat-grid-container .sub_cat_link p {
    padding: 16px 8px !important;
    font-size: 15px;
    line-height: 1.3;
    overflow-wrap: anywhere;
  }
}

.lsf-shortcode-error {
  padding: 12px 16px;
  border-left: 4px solid #d63638;
  background: #fcf0f1;
  color: #1d2327;
}


/* ==========================================================================
   CLIENT VIEW (VUER) BUTTONS — per the Product Mockup
   Primary actions are solid copper with white uppercase text.
   Vuer wraps product/toast buttons in :where() (zero specificity), so plain
   class selectors win; the checkout submit is doubled to beat its scoped rule.
   ========================================================================== */

:root {
  --lsf-button-bg: #ad702f;
  --lsf-button-bg-hover: #94601f;
  --lsf-button-text: #fff;
  --lsf-button-font: Inter, "Helvetica Neue", Arial, sans-serif;

  /* Vuer's own checkout/order accents (focus rings, highlights). */
  --vuer-checkout-primary: var(--lsf-button-bg);
  --vuer-checkout-primary-contrast: #fff;
  --vuer-order-primary: var(--lsf-button-bg);
  --vuer-order-primary-contrast: #fff;
}

.product-add-to-cart,
.add-to-quote-toast__button,
.vue-plugin-checkout-submit.vue-plugin-checkout-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 58px;
  padding: 8px 24px;
  border: 0;
  border-radius: 3px;
  background: var(--lsf-button-bg);
  color: var(--lsf-button-text);
  font-family: var(--lsf-button-font);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: .02em;
  line-height: 1.3;
  text-decoration: none;
  text-transform: uppercase;
  opacity: 1;
  cursor: pointer;
  transition: background-color .2s;
}

.add-to-quote-toast__button,
.add-to-quote-toast__button:visited {
  min-height: 44px;
  color: var(--lsf-button-text);
}

:is(.product-add-to-cart, .add-to-quote-toast__button, .vue-plugin-checkout-submit.vue-plugin-checkout-submit):is(:hover, :focus-visible):not(:disabled, [aria-disabled="true"]) {
  background: var(--lsf-button-bg-hover);
  color: var(--lsf-button-text);
  opacity: 1;
}

:is(.product-add-to-cart, .add-to-quote-toast__button, .vue-plugin-checkout-submit.vue-plugin-checkout-submit):focus-visible {
  outline: 2px solid var(--lsf-button-bg);
  outline-offset: 2px;
}

:is(.product-add-to-cart, .add-to-quote-toast__button, .vue-plugin-checkout-submit.vue-plugin-checkout-submit):is(:disabled, [aria-disabled="true"]) {
  opacity: .5;
  cursor: not-allowed;
}

@media (prefers-reduced-motion: reduce) {
  .product-add-to-cart,
  .add-to-quote-toast__button,
  .vue-plugin-checkout-submit.vue-plugin-checkout-submit {
    transition: none;
  }
}

/* ==========================================================================
   CLIENT VIEW PAGE LAYOUT — match the old Divi/WooCommerce archive
   Divi's container is 80% wide, capped at 1600px, with 58px top padding.
   Vuer sets max-width inline from its Content Width setting, hence !important.
   ========================================================================== */

article#vue-plugin-app {
  box-sizing: border-box;
  width: 80%;
  max-width: 1600px !important;
  margin-inline: auto;
  padding-top: 58px;
  padding-bottom: 50px;
}

/* Product cards: image fills the card at 6:5 (ProductBarn images are 1200x1000,
   the old 600x500 thumbnail ratio), centered serif title below. */
#vue-plugin-app .vue-plugin-product-card__link {
  gap: 0;
  padding: 0;
}

#vue-plugin-app .vue-plugin-product-card__image-wrap {
  width: 100%;
  aspect-ratio: 6 / 5;
}

#vue-plugin-app .vue-plugin-product-card__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#vue-plugin-app .vue-plugin-product-card__design-center-icon {
  top: 10px;
  left: 10px;
  width: 38px;
  height: 38px;
}

#vue-plugin-app .vue-plugin-product-card__heading {
  margin-top: 9px;
}

#vue-plugin-app .vue-plugin-product-card__title {
  padding: 8px 0;
  font-size: 16px;
  line-height: 1.5;
}

#vue-plugin-app .vue-plugin-product-stack--products {
  gap: 48px 44px;
}

@media (max-width: 980px) {
  article#vue-plugin-app {
    padding-top: 40px;
  }
}

/* ==========================================================================
   CLIENT VIEW PRODUCT PAGE — match the old WooCommerce single product
   Desktop: gallery 668 / summary 438 of the 1152px container (58:38), 46px gap,
   controls full column width, breadcrumbs above both columns so the image and
   title share a top line, 4 thumbnails per row. Mobile keeps Vuer's layout.
   ========================================================================== */

@media (min-width: 981px) {
  article#vue-plugin-app.product-page {
    padding-top: 30px;
  }

  #vue-plugin-app .product-information {
    margin-top: 0;
  }

  #vue-plugin-app .product-desktop-sticky-boundary {
    position: relative;
    grid-template-columns: minmax(0, 668fr) minmax(0, 438fr);
    column-gap: 46px;
    padding-top: 40px;
  }

  #vue-plugin-app .product-desktop-sticky-boundary .product-breadcrumbs {
    position: absolute;
    top: 0;
    left: 0;
    margin: 0;
  }

  #vue-plugin-app .description-dropdown,
  #vue-plugin-app .product-variation-options,
  #vue-plugin-app .vue-plugin-product-notes,
  #vue-plugin-app .product-add-to-cart,
  #vue-plugin-app .add-to-quote-toast {
    max-width: none;
  }

  #vue-plugin-app .product-thumbnails {
    margin-top: 44px;
  }

  #vue-plugin-app .product-thumbnails ul {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px 44px;
  }

  #vue-plugin-app .product-thumbnails__button {
    width: 100%;
  }

  #vue-plugin-app .product-thumbnails__button img {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
  }
}

/* Product Mockup details: taller outlined dropdowns, copper "Add Note",
   round zoom badge on the main image, roomier gap above Add to Quote. */
#vue-plugin-app .product-dropdown__toggle {
  min-height: 56px;
  padding: 8px 56px 8px 32px;
  border: 1px solid #8c8c8c;
  border-radius: 3px;
  background-color: #fff;
  color: #111;
  font-family: var(--lsf-button-font);
  font-size: 15px;
  font-weight: 400;
}

#vue-plugin-app .product-variation-options {
  margin-top: 28px;
}

#vue-plugin-app .vue-plugin-product-notes {
  margin-top: 14px;
  padding-left: 16px;
}

#vue-plugin-app .vue-plugin-add-note-link {
  color: var(--lsf-button-bg);
  font-family: var(--lsf-button-font);
  font-size: 14px;
  font-weight: 400;
  text-decoration: underline;
  text-underline-offset: 3px;
}

#vue-plugin-app .vue-plugin-add-note-link:hover {
  color: var(--lsf-button-bg-hover);
}

#vue-plugin-app .product-cta {
  margin-top: 40px;
}

#vue-plugin-app .vuer-product-image-trigger {
  position: relative;
}

#vue-plugin-app .vuer-product-image-trigger::after {
  content: "";
  position: absolute;
  right: 24px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(173, 112, 47, .45);
  border-radius: 50%;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ad702f' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='13.5' cy='10.5' r='6'/%3E%3Cpath d='m9.2 14.8-5.2 5.2'/%3E%3C/svg%3E") center / 22px no-repeat;
  box-shadow: 0 3px 8px rgba(0, 0, 0, .25);
  pointer-events: none;
}

/* "Added to your quote" bar under Add to Quote: space it off the button and give it
   back the padded box Vuer intends (its :where() styles lose to the site's globals). */
#vue-plugin-app .add-to-quote-toast {
  align-items: center;
  gap: 16px;
  margin-top: 16px;
  padding: 12px 12px 12px 18px;
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 3px;
  background: #f5f5f5;
}
