/*
 * J.J. Jardina buyer funnel presentation.
 * Visual source of truth: the approved cream/gold contact mock.
 * All selectors are namespaced; no existing page, form, heading, or SEO content is replaced.
 */
.jj-buyer-module,
.jj-buyer-home-cta,
.jj-product-cta,
.jj-global-funnel,
.jj-contact-form-section,
#jj-jardina-direct-chat {
  --jj-buyer-green: #173d2c;
  --jj-buyer-gold: #bd9454;
  --jj-buyer-cream: #f6f1e9;
  --jj-buyer-ink: #17231c;
  --jj-buyer-muted: #5c6b62;
  --jj-buyer-line: #d9dfd9;
  --jj-buyer-white: #fff;
  box-sizing: border-box;
  font-size: 16px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 400;
}

.jj-buyer-module *,
.jj-buyer-home-cta *,
.jj-product-cta *,
.jj-global-funnel *,
.jj-contact-form-section *,
#jj-jardina-direct-chat * {
  box-sizing: border-box;
}

/* Footer-rendered source and theme-change fallback. Known headers receive the
 * request action inside their existing desktop/mobile navigation instead. */
.jj-global-funnel {
  display: none;
  width: 100%;
  color: var(--jj-buyer-green);
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid #dfe5e0;
  box-shadow: 0 5px 18px rgba(15, 46, 33, 0.08);
}

.jj-global-funnel.jj-global-funnel-mounted {
  display: block;
}

.jj-global-funnel.jj-global-funnel-integrated {
  display: none;
}

.jj-global-funnel-inner {
  display: flex;
  gap: 0.65em;
  align-items: center;
  justify-content: flex-end;
  width: min(1140px, calc(100% - 48px));
  min-height: 64px;
  margin: 0 auto;
}

.jj-global-funnel-link,
.jj-global-funnel-action {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 1em;
  border-radius: 3px;
  color: var(--jj-buyer-green);
  font-size: 0.82em;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}

.jj-global-funnel-link {
  margin-right: auto;
  padding-left: 0;
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

.jj-global-funnel-request {
  background: var(--jj-buyer-white);
  border: 1px solid var(--jj-buyer-green);
}

.jj-global-funnel-request:hover,
.jj-global-funnel-request:focus-visible {
  color: var(--jj-buyer-white);
  background: var(--jj-buyer-green);
}

.jj-global-funnel a:focus-visible {
  outline: 3px solid #e5b46d;
  outline-offset: 2px;
}

/* Existing-header integration: match the approved mock without editing the
 * Elementor header template or replacing its navigation/menu behavior. */
@media (min-width: 1025px) {
  #masthead.jj-funnel-integrated .jj-funnel-desktop {
    border-width: 0 0 1px;
    border-color: #dfe5e0;
  }

  #masthead .jj-funnel-desktop > .elementor-container {
    width: calc(100% - 48px);
    max-width: 1140px;
    min-height: 88px;
    align-items: center;
    gap: 24px;
  }

  #masthead .jj-funnel-desktop .jj-funnel-logo-column {
    flex: 0 0 200px;
    width: 200px;
  }

  #masthead .jj-funnel-desktop .jj-funnel-logo-column .elementor-widget-wrap {
    padding: 8px 0;
  }

  #masthead .jj-funnel-desktop .jj-funnel-logo-column img {
    width: 200px;
    height: auto;
  }

  #masthead .jj-funnel-desktop .jj-funnel-menu-column {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
  }

  #masthead .jj-funnel-desktop .jj-funnel-menu-column .elementor-widget-wrap {
    padding: 0;
  }

  #masthead .jj-funnel-desktop nav.elementor-nav-menu--main > ul {
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
  }

  #masthead .jj-funnel-desktop nav.elementor-nav-menu--main > ul > li > a.elementor-item {
    padding: 12px 10px;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    text-transform: none;
    white-space: nowrap;
  }

  #masthead .jj-funnel-desktop nav.elementor-nav-menu--main > ul > li > a .sub-arrow {
    padding-left: 6px;
  }
}

@media (min-width: 1025px) and (max-width: 1199px) {
  #masthead .jj-funnel-desktop > .elementor-container {
    width: calc(100% - 32px);
    gap: 14px;
  }

  #masthead .jj-funnel-desktop .jj-funnel-logo-column {
    flex-basis: 170px;
    width: 170px;
  }

  #masthead .jj-funnel-desktop .jj-funnel-logo-column img {
    width: 170px;
  }

  #masthead .jj-funnel-desktop nav.elementor-nav-menu--main > ul > li > a.elementor-item {
    padding-right: 6px;
    padding-left: 6px;
    font-size: 12px;
  }
}

#masthead .jj-header-action-item {
  display: flex;
  align-items: center;
  margin-left: 8px;
}

#masthead .jj-header-action-item > a.jj-header-action {
  display: inline-flex;
  min-height: 43px;
  align-items: center;
  justify-content: center;
  padding: 0 14px !important;
  border-radius: 3px;
  font-family: Arial, sans-serif !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  text-align: center;
  text-decoration: none !important;
  text-transform: none !important;
  white-space: nowrap;
}

#masthead .jj-header-action-item > a.jj-header-action::before,
#masthead .jj-header-action-item > a.jj-header-action::after {
  display: none !important;
}

#masthead .jj-header-action-item--request > a.jj-header-action {
  color: #173d2c !important;
  background: #fff !important;
  border: 1px solid #173d2c !important;
}

#masthead .jj-header-action-item--request > a.jj-header-action:hover,
#masthead .jj-header-action-item--request > a.jj-header-action:focus-visible {
  color: #fff !important;
  background: #173d2c !important;
}

#masthead .jj-header-action:focus-visible {
  outline: 3px solid #e5b46d !important;
  outline-offset: 2px;
}

@media (min-width: 1025px) and (max-width: 1199px) {
  #masthead .jj-header-action-item > a.jj-header-action {
    padding-right: 10px !important;
    padding-left: 10px !important;
    font-size: 12px !important;
  }
}

/* Contact-page conversion section: a direct child of the Elementor page root. */
.jj-buyer-module {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: min(1140px, calc(100% - 48px));
  margin: 40px auto 48px;
  padding: 46px 50px;
  color: var(--jj-buyer-ink);
  background: var(--jj-buyer-cream);
  border-left: 6px solid var(--jj-buyer-gold);
  border-radius: 4px;
}

.jj-buyer-module::after {
  position: absolute;
  z-index: -1;
  top: 50%;
  right: 32px;
  color: rgba(23, 61, 44, 0.055);
  content: "JJ";
  font: 700 clamp(8em, 19vw, 15em) / 1 Georgia, "Times New Roman", serif;
  letter-spacing: -0.12em;
  transform: translateY(-53%);
}

.jj-buyer-eyebrow,
.jj-buyer-capabilities {
  margin: 0 0 0.8em;
  color: var(--jj-buyer-gold);
  font-size: 0.78em;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.jj-buyer-title,
.jj-buyer-home-title {
  margin: 0;
  color: var(--jj-buyer-green);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  line-height: 1.08;
}

.jj-buyer-title {
  max-width: 960px;
  font-size: clamp(36px, 3.5vw, 48px);
  text-wrap: balance;
}

.jj-buyer-home-title {
  font-size: clamp(2em, 4vw, 3.25em);
}

.jj-buyer-summary,
.jj-buyer-home-summary {
  max-width: 720px;
  margin: 20px 0;
  color: #405148;
  font-size: clamp(1em, 1.5vw, 1.08em);
  line-height: 1.55;
}

.jj-buyer-capabilities {
  margin: 22px 0 24px;
  color: var(--jj-buyer-green);
  font-size: 13px;
  letter-spacing: 0.015em;
  text-transform: none;
}

.jj-buyer-capabilities span {
  padding: 0 0.5em;
  color: var(--jj-buyer-gold);
}

.jj-buyer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75em;
  align-items: center;
}

.jj-buyer-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 1.55em;
  border: 1px solid var(--jj-buyer-green);
  border-radius: 3px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease;
}

.jj-buyer-button-primary {
  color: var(--jj-buyer-green);
  background: var(--jj-buyer-white);
}

.jj-buyer-button-primary:hover,
.jj-buyer-button-primary:focus-visible {
  color: var(--jj-buyer-white);
  background: var(--jj-buyer-green);
}

.jj-buyer-button:focus-visible,
.jj-buyer-form-link:focus-visible,
#jj-jardina-direct-chat :focus-visible {
  outline: 3px solid #e5b46d;
  outline-offset: 3px;
}

.jj-buyer-form-link {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  padding: 0 1em;
  color: var(--jj-buyer-green);
  font-weight: 750;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}

.jj-buyer-anchor {
  display: block;
  height: 0;
  scroll-margin-top: 6em;
}

/* The original CF7 form, restyled rather than rebuilt. Its backend stays in WordPress. */
#jj-contact-form-section {
  width: min(1140px, calc(100% - 48px));
  margin: 0 auto 72px;
  padding: 42px 0 0;
  border-top: 1px solid var(--jj-buyer-line);
  scroll-margin-top: 100px;
}

#jj-contact-form-section > .elementor-container {
  width: 100%;
  max-width: none;
}

#jj-contact-form-section .jj-contact-form-column {
  width: 100%;
}

#jj-contact-form-section .jj-contact-form-column > .elementor-widget-wrap {
  display: block;
  padding: 0;
  background: transparent;
}

#jj-contact-form-section .jj-contact-decorative-column,
#jj-contact-form-section .jj-contact-original-title-widget {
  display: none;
}

.jj-form-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  margin: 0 0 26px;
}

#jj-contact-form-section h1.jj-contact-page-title {
  margin: 0 0 10px;
  color: var(--jj-buyer-gold);
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: 0.16em;
}

#jj-contact-form-section .jj-form-title {
  margin: 0 0 10px;
  color: var(--jj-buyer-green);
  font: 400 clamp(30px, 3vw, 42px) / 1.1 Georgia, "Times New Roman", serif;
}

.jj-form-summary {
  margin: 0;
  color: var(--jj-buyer-muted);
  font-size: 16px;
  line-height: 1.55;
}

.jj-form-phone {
  display: grid;
  gap: 4px;
  padding: 16px 20px;
  color: var(--jj-buyer-green);
  background: #eef3ef;
  border: 1px solid #d6dfd8;
  border-radius: 3px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

.jj-form-phone a {
  color: inherit;
  font-weight: 750;
  text-underline-offset: 3px;
}

#jj-contact-form-section .jj-contact-form-widget {
  width: 100%;
  margin: 0;
}

#jj-contact-form-section .wpcf7 form.jj-preserved-contact-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px 24px;
  margin: 0;
  padding: 30px 32px;
  color: var(--jj-buyer-ink);
  background: #fafbfa;
  border: 1px solid var(--jj-buyer-line);
  border-radius: 4px;
}

#jj-contact-form-section .wpcf7 form::before,
#jj-contact-form-section .wpcf7 form::after {
  display: none;
  content: none;
}

.jj-contact-form-section .wpcf7 form > .hidden-fields-container,
.jj-contact-form-section .jj-form-field > br {
  display: none;
}

#jj-contact-form-section .wpcf7 form > p {
  margin: 0;
}

.jj-contact-form-section .jj-form-field {
  display: grid;
  gap: 8px;
  align-content: start;
}

#jj-contact-form-section .jj-form-field label {
  margin: 0;
  color: #34483c;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.jj-contact-form-section .jj-form-field label > span {
  margin-right: 3px;
  color: #687a6d;
}

.jj-contact-form-section .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

#jj-contact-form-section .wpcf7 .jj-form-field input,
#jj-contact-form-section .wpcf7 .jj-form-field textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  min-height: 48px;
  margin: 0;
  padding: 12px 14px;
  color: var(--jj-buyer-ink);
  background: #fff;
  border: 1px solid #bdc8c0;
  border-radius: 3px;
  box-shadow: none;
  font: inherit;
  line-height: 1.5;
}

#jj-contact-form-section .wpcf7 .jj-form-field textarea {
  min-height: 150px;
  resize: vertical;
}

.jj-contact-form-section .jj-form-field-full,
.jj-contact-form-section .jj-form-submit-row,
.jj-contact-form-section .wpcf7-response-output {
  grid-column: 1 / -1;
}

#jj-contact-form-section .wpcf7 input[type="submit"] {
  width: auto;
  min-height: 48px;
  margin: 0;
  padding: 0 25px;
  color: #142a1f;
  background: var(--jj-buyer-gold);
  border: 1px solid var(--jj-buyer-gold);
  border-radius: 3px;
  box-shadow: none;
  font-family: inherit;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.2;
  cursor: pointer;
}

.jj-contact-form-section :is(input, textarea, a):focus-visible {
  outline: 3px solid #e5b46d;
  outline-offset: 3px;
}

#jj-contact-form-section .jj-contact-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  width: 100%;
  margin: 28px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--jj-buyer-line);
  color: var(--jj-buyer-muted);
  font-size: 14px;
  line-height: 1.65;
}

.jj-contact-details p {
  margin: 0;
}

@media (max-width: 860px) {
  .jj-form-heading {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .jj-form-phone {
    justify-self: start;
  }
}

@media (max-width: 570px) {
  #jj-contact-form-section {
    width: calc(100% - 32px);
    margin-bottom: 40px;
    padding-top: 30px;
  }

  #jj-contact-form-section .wpcf7 form.jj-preserved-contact-form {
    grid-template-columns: minmax(0, 1fr);
    padding: 24px 20px;
  }

  #jj-contact-form-section .jj-contact-details {
    display: block;
  }

  .jj-contact-details p + p {
    margin-top: 12px;
  }
}

/* The conversion section owns the entry point; suppress the redundant fixed launcher. */
#jj-jardina-direct-open {
  display: none;
}

/* A compact next step after the homepage product introduction, before the team. */
.jj-buyer-home-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 36px;
  align-items: center;
  width: min(1140px, calc(100% - 48px));
  margin: 40px auto;
  padding: 32px 40px;
  color: var(--jj-buyer-ink);
  background: var(--jj-buyer-cream);
  border-left: 6px solid var(--jj-buyer-gold);
  border-radius: 4px;
}

.jj-buyer-home-actions {
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
}

.jj-buyer-home-title {
  font-size: clamp(28px, 2.5vw, 36px);
  line-height: 1.12;
  margin: 0;
}

.jj-buyer-home-summary {
  font-size: 16px;
  margin: 14px 0 0;
}

/* Compact contextual route on every live product detail page. */
.jj-product-cta {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, auto);
  gap: 32px;
  align-items: center;
  overflow: hidden;
  width: min(1140px, calc(100% - 48px));
  margin: 40px auto 48px;
  padding: 36px 40px;
  color: var(--jj-buyer-white);
  background: var(--jj-buyer-green);
  border-left: 6px solid var(--jj-buyer-gold);
  border-radius: 4px;
}

.jj-product-cta::after {
  position: absolute;
  z-index: -1;
  right: -18px;
  bottom: -34px;
  color: rgba(255, 255, 255, 0.045);
  content: attr(data-jj-product);
  font: 700 clamp(4em, 10vw, 8em) / 1 Georgia, "Times New Roman", serif;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.jj-product-copy {
  position: relative;
  z-index: 1;
}

.jj-product-title {
  max-width: 700px;
  margin: 8px 0 12px;
  color: var(--jj-buyer-white);
  font: 400 clamp(30px, 3vw, 42px) / 1.08 Georgia, "Times New Roman", serif;
}

.jj-product-summary {
  max-width: 720px;
  margin: 0;
  color: #dfe8e1;
  font-size: clamp(1em, 1.5vw, 1.08em);
  line-height: 1.55;
}

.jj-product-actions {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.7em;
  min-width: 230px;
}

.jj-product-request {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  padding: 0 1.4em;
  color: var(--jj-buyer-green);
  background: var(--jj-buyer-white);
  border: 1px solid var(--jj-buyer-white);
  border-radius: 3px;
  font-weight: 850;
  text-align: center;
  text-decoration: none;
}

.jj-product-request:hover,
.jj-product-request:focus-visible {
  color: var(--jj-buyer-green);
  background: #eef3ef;
}

.jj-product-request:focus-visible {
  outline: 3px solid #e5b46d;
  outline-offset: 3px;
}

/* Production buyer-assistant drawer. */
#jj-jardina-direct-chat {
  --jj-chat-gap: 12px;
  --jj-chat-width: min(455px, calc(var(--jj-visible-width, 100vw) - 24px));
  --jj-chat-height: min(690px, calc(var(--jj-visible-height, 100dvh) - 24px));
  position: fixed;
  inset: auto;
  top: calc(var(--jj-visible-top, 0px) + var(--jj-visible-height, 100dvh) - var(--jj-chat-height) - var(--jj-chat-gap));
  left: calc(var(--jj-visible-left, 0px) + var(--jj-visible-width, 100vw) - var(--jj-chat-width) - var(--jj-chat-gap));
  width: var(--jj-chat-width);
  height: var(--jj-chat-height);
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  color: var(--jj-buyer-ink);
  background: var(--jj-buyer-white);
  border: 1px solid #9fb1a5;
  border-radius: 14px;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.45);
  font: 16px/1.45 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

#jj-jardina-direct-chat::backdrop {
  background: rgba(8, 25, 17, 0.48);
}

#jj-jardina-direct-chat .jj-shell {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--jj-buyer-white);
}

#jj-jardina-direct-chat .jj-shell > :not(.jj-log):not(.jj-quick-row) {
  flex-shrink: 0;
}

#jj-jardina-direct-chat .jj-header {
  display: flex;
  gap: 1em;
  align-items: center;
  justify-content: space-between;
  padding: 1em 1.1em;
  color: var(--jj-buyer-white);
  background: var(--jj-buyer-green);
}

#jj-jardina-direct-chat .jj-heading {
  min-width: 0;
}

#jj-jardina-direct-chat h2 {
  margin: 0;
  color: inherit;
  font-size: 1em;
  font-weight: 800;
  line-height: 1.3;
}

/* Programmatic announcement target, not a tabbable control. Buttons/inputs keep
 * their visible keyboard focus rings; the heading must not look like a field. */
#jj-jardina-direct-chat #jj-jardina-direct-title:focus {
  outline: none;
}

#jj-jardina-direct-chat .jj-subtitle {
  display: block;
  margin-top: 0.12em;
  color: #dce9df;
  font-size: 0.76em;
}

#jj-jardina-direct-chat button {
  font: inherit;
  cursor: pointer;
}

#jj-jardina-direct-chat .jj-close {
  flex: none;
  padding: 0.42em 0.7em;
  color: var(--jj-buyer-white);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 4px;
}

#jj-jardina-direct-chat .jj-log {
  display: flex;
  flex: 1;
  min-height: 0;
  overscroll-behavior: contain;
  flex-direction: column;
  gap: 0.75em;
  margin: 0;
  padding: 1.1em;
  overflow-y: auto;
  list-style: none;
  background: #f6f7f5;
}

#jj-jardina-direct-chat .jj-log li {
  max-width: 92%;
  padding: 0.8em 0.95em;
  overflow-wrap: anywhere;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  white-space: pre-wrap;
}

#jj-jardina-direct-chat .jj-log .jj-user {
  align-self: flex-end;
  color: var(--jj-buyer-green);
  background: #d6e5d9;
  border-bottom-right-radius: 2px;
}

#jj-jardina-direct-chat .jj-log .jj-agent {
  align-self: flex-start;
  color: #1d3327;
  background: #f7f3ea;
  border-bottom-left-radius: 2px;
}

#jj-jardina-direct-chat .jj-quick-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
  padding: 0 1.1em 0.75em;
  background: #f6f7f5;
}

/* In the product entry step, keep the two answers directly below their question. */
#jj-jardina-direct-chat[data-entry-step="true"] .jj-log {
  flex: 0 1 auto;
}

#jj-jardina-direct-chat[data-entry-step="true"] .jj-quick-row {
  flex: 1;
  align-content: flex-start;
  align-items: flex-start;
}

#jj-jardina-direct-chat .jj-quick {
  min-height: 44px;
  min-width: 88px;
  padding: 0.42em 0.7em;
  color: var(--jj-buyer-green);
  background: var(--jj-buyer-white);
  border: 1px solid #9db0a2;
  border-radius: 18px;
  font-size: 0.8em;
  cursor: pointer;
}

#jj-jardina-direct-chat .jj-quick:hover,
#jj-jardina-direct-chat .jj-quick:focus-visible {
  color: var(--jj-buyer-white);
  background: var(--jj-buyer-green);
  border-color: var(--jj-buyer-green);
}

#jj-jardina-direct-chat .jj-status {
  min-height: 1.25em;
  margin: 0;
  padding: 0.35em 1em 0;
  color: var(--jj-buyer-muted);
  font-size: 0.78em;
}

#jj-jardina-direct-chat .jj-status:empty {
  min-height: 0;
  padding-top: 0;
}

#jj-jardina-direct-chat .jj-use-form {
  display: block;
  min-height: 44px;
  margin-top: 8px;
  padding: 8px 14px;
  color: var(--jj-buyer-green);
  background: var(--jj-buyer-white);
  border: 1px solid #9db0a2;
  border-radius: 4px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

#jj-jardina-direct-chat form {
  display: flex;
  gap: 0.55em;
  padding: 0.75em 0.9em;
  border-top: 1px solid var(--jj-buyer-line);
}

#jj-jardina-direct-chat textarea {
  flex: 1;
  min-width: 0;
  min-height: 46px;
  max-height: 110px;
  padding: 0.7em;
  resize: vertical;
  border: 1px solid #b9c5bc;
  border-radius: 4px;
  font: inherit;
}

#jj-jardina-direct-chat .jj-send {
  padding: 0 0.95em;
  color: var(--jj-buyer-white);
  background: var(--jj-buyer-green);
  border: 0;
  border-radius: 4px;
  font-weight: 800;
}

#jj-jardina-direct-chat .jj-send:disabled,
#jj-jardina-direct-chat .jj-quick:disabled {
  cursor: wait;
  opacity: 0.5;
}

#jj-jardina-direct-chat .jj-chat-foot {
  margin: 0;
  padding: 0 0.85em 0.7em;
  color: #6a756e;
  font-size: 0.68em;
  line-height: 1.35;
  text-align: center;
}

#jj-jardina-direct-chat .jj-chat-foot a {
  color: var(--jj-buyer-green);
  font-weight: 700;
  text-underline-offset: 0.15em;
}

/* Keep conversation space when a phone keyboard occupies the lower screen. */
#jj-jardina-direct-chat[data-compact-viewport="true"] .jj-header {
  gap: 0.5em;
  padding: 0.5em 0.75em;
}

#jj-jardina-direct-chat[data-compact-viewport="true"] h2 {
  font-size: 0.875em;
}

#jj-jardina-direct-chat[data-compact-viewport="true"] .jj-subtitle {
  font-size: 0.68em;
}

#jj-jardina-direct-chat[data-compact-viewport="true"] .jj-chat-foot {
  padding-bottom: 0.4em;
  font-size: 0.65em;
  line-height: 1.25;
}

#jj-jardina-direct-chat[data-compact-viewport="true"] .jj-log {
  flex: 1;
  padding: 0.65em;
}

#jj-jardina-direct-chat[data-compact-viewport="true"] .jj-quick-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  flex: none;
  padding: 0 0.65em 0.4em;
}

#jj-jardina-direct-chat[data-compact-viewport="true"] .jj-quick {
  min-width: 0;
  padding: 0.35em 0.4em;
  font-size: 0.75em;
}

#jj-jardina-direct-chat[data-compact-viewport="true"] form {
  padding: 0.4em 0.65em;
}

#jj-jardina-direct-chat[data-compact-viewport="true"] textarea {
  height: 46px;
  min-height: 46px;
  max-height: 64px;
  font-size: 16px;
}

@media (max-width: 1024px) {
  #masthead .jj-header-action-item {
    width: auto;
    margin: 0;
    padding: 8px 16px 0;
  }

  #masthead .jj-header-action-item > a.jj-header-action {
    width: 100%;
    min-height: 48px;
    white-space: normal;
  }
}

@media (max-width: 767px) {
  #masthead .jj-funnel-mobile .jj-header-action-item {
    display: block;
    width: 100%;
  }

  #masthead .jj-funnel-mobile .jj-header-action-item:last-child {
    padding-bottom: 16px;
  }

  .jj-buyer-module,
  .jj-buyer-home-cta,
  .jj-product-cta {
    width: min(100% - 32px, 1140px);
  }

  .jj-buyer-home-cta,
  .jj-product-cta {
    grid-template-columns: 1fr;
  }

  .jj-buyer-home-cta {
    padding: 28px 24px;
    gap: 24px;
  }

  .jj-global-funnel-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5em;
    width: min(100% - 24px, 1140px);
    padding: 0.65em 0;
  }

  .jj-global-funnel-link {
    grid-column: 1 / -1;
    justify-self: center;
    margin: 0;
    padding: 0.35em 0;
  }

  .jj-global-funnel-action {
    min-height: 48px;
    padding: 0 0.7em;
    white-space: normal;
  }

  .jj-buyer-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .jj-buyer-button,
  .jj-buyer-form-link {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 570px) {
  .jj-buyer-module {
    margin: 24px auto 32px;
    padding: 30px 24px;
  }

  .jj-buyer-module::after {
    top: 32%;
    right: 8px;
    font-size: 9em;
  }

  .jj-buyer-title {
    font-size: clamp(30px, 8.2vw, 36px);
  }

  .jj-product-cta {
    padding: 2em 1.4em;
  }

  .jj-product-actions {
    width: 100%;
    min-width: 0;
  }

  .jj-buyer-capabilities {
    line-height: 1.9;
  }

  #jj-jardina-direct-chat {
    --jj-chat-gap: 6px;
    --jj-chat-width: calc(var(--jj-visible-width, 100vw) - 12px);
    --jj-chat-height: calc(var(--jj-visible-height, 100dvh) - 12px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .jj-buyer-button {
    transition: none;
  }
}
