/* Important declarations in this scoped layer take precedence over legacy unlayered rules. */
@layer bsf-final {
/* Final draft newsletter refinement. Triple footer ID wins over legacy footer styling.
   Native Contact Form 7 behavior is retained. */
body.bsf-site-shell #barista-home-footer#barista-home-footer#barista-home-footer .bs-newsletter {
  --bsf-news-ink: #2e4b3f;
  --bsf-news-muted: #526257;
  --bsf-news-line: #c8cbbd;
  box-sizing: border-box !important;
  display: grid !important;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr) !important;
  align-items: start !important;
  gap: 40px !important;
  width: calc(100% - 56px) !important;
  max-width: 1130px !important;
  min-height: 0 !important;
  margin: 24px auto 40px !important;
  padding: 38px 40px !important;
  border: 1px solid #dedbcf !important;
  border-radius: 3px !important;
  background: #f3eee5 !important;
  color: var(--bsf-news-ink) !important;
  box-shadow: none !important;
  text-align: start !important;
  direction: rtl !important;
}

body.bsf-site-shell #barista-home-footer#barista-home-footer#barista-home-footer .bs-newsletter *,
body.bsf-site-shell #barista-home-footer#barista-home-footer#barista-home-footer .bs-newsletter *::before,
body.bsf-site-shell #barista-home-footer#barista-home-footer#barista-home-footer .bs-newsletter *::after {
  box-sizing: border-box;
}

body.bsf-site-shell #barista-home-footer#barista-home-footer#barista-home-footer .bsf-newsletter-intro {
  min-width: 0 !important;
  padding: 2px 0 0 !important;
}

body.bsf-site-shell #barista-home-footer#barista-home-footer#barista-home-footer .bsf-newsletter-intro::before {
  content: "";
  display: block;
  width: 38px;
  height: 1px;
  margin-block-end: 16px;
  background: var(--bsf-news-ink);
}

body.bsf-site-shell #barista-home-footer#barista-home-footer#barista-home-footer .bs-newsletter .bsf-newsletter-kicker {
  margin: 0 0 11px !important;
  max-width: none !important;
  color: var(--bsf-news-muted) !important;
  font: 500 13px/1.5 BaristaAssistant, Assistant, Arial, sans-serif !important;
  letter-spacing: .025em !important;
}

body.bsf-site-shell #barista-home-footer#barista-home-footer#barista-home-footer .bs-newsletter #bs-newsletter-title {
  margin: 0 0 12px !important;
  padding: 0 !important;
  color: var(--bsf-news-ink) !important;
  font: 400 36px/1.2 BaristaAssistant, Assistant, Arial, sans-serif !important;
  letter-spacing: 0 !important;
}

body.bsf-site-shell #barista-home-footer#barista-home-footer#barista-home-footer .bs-newsletter .bsf-newsletter-description {
  max-width: 30ch !important;
  margin: 0 !important;
  color: var(--bsf-news-muted) !important;
  font: 400 17px/1.7 BaristaAssistant, Assistant, Arial, sans-serif !important;
}

body.bsf-site-shell #barista-home-footer#barista-home-footer#barista-home-footer .bs-newsletter :is(.bs-newsletter-form, .wpcf7, form, .bs-newsletter-fields, .bs-newsletter-fields > p, .bs-newsletter-consent, .bs-newsletter-consent > p) {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 0 !important;
}

body.bsf-site-shell #barista-home-footer#barista-home-footer#barista-home-footer .bs-newsletter .bs-newsletter-fields > p {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  align-items: start !important;
  gap: 14px !important;
}

body.bsf-site-shell #barista-home-footer#barista-home-footer#barista-home-footer .bs-newsletter .bs-newsletter-fields > p > br {
  display: none !important;
}

body.bsf-site-shell #barista-home-footer#barista-home-footer#barista-home-footer .bs-newsletter .bs-newsletter-fields label {
  position: static !important;
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  clip: auto !important;
  color: var(--bsf-news-ink) !important;
  font: 500 14px/1.5 BaristaAssistant, Assistant, Arial, sans-serif !important;
  text-align: start !important;
}

body.bsf-site-shell #barista-home-footer#barista-home-footer#barista-home-footer .bs-newsletter .bs-newsletter-fields .wpcf7-form-control-wrap {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
}

body.bsf-site-shell #barista-home-footer#barista-home-footer#barista-home-footer .bs-newsletter .bs-newsletter-fields input:is([type="text"], [type="email"]) {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: 50px !important;
  min-height: 50px !important;
  margin: 7px 0 0 !important;
  padding: 11px 14px !important;
  border: 1px solid #788879 !important;
  border-radius: 2px !important;
  background: #fcfaf5 !important;
  box-shadow: none !important;
  color: var(--bsf-news-ink) !important;
  font: 400 16px/1.5 BaristaAssistant, Assistant, Arial, sans-serif !important;
}

body.bsf-site-shell #barista-home-footer#barista-home-footer#barista-home-footer .bs-newsletter .bs-newsletter-fields input::placeholder {
  color: #677368 !important;
  opacity: 1 !important;
}

body.bsf-site-shell #barista-home-footer#barista-home-footer#barista-home-footer .bs-newsletter .bs-newsletter-fields input[type="email"] {
  direction: ltr !important;
  text-align: left !important;
}

body.bsf-site-shell #barista-home-footer#barista-home-footer#barista-home-footer .bs-newsletter .bs-newsletter-fields .wpcf7-submit {
  display: block !important;
  grid-column: 1 / -1 !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 50px !important;
  height: auto !important;
  margin: 1px 0 0 !important;
  padding: 12px 22px !important;
  border: 1px solid var(--bsf-news-ink) !important;
  border-radius: 2px !important;
  background: var(--bsf-news-ink) !important;
  box-shadow: none !important;
  color: #fffaf1 !important;
  font: 500 17px/1.5 BaristaAssistant, Assistant, Arial, sans-serif !important;
  letter-spacing: 0 !important;
  text-align: center !important;
  cursor: pointer;
}

body.bsf-site-shell #barista-home-footer#barista-home-footer#barista-home-footer .bs-newsletter .bs-newsletter-fields .wpcf7-submit:hover:not(:disabled) {
  border-color: #203a2f !important;
  background: #203a2f !important;
}

body.bsf-site-shell #barista-home-footer#barista-home-footer#barista-home-footer .bs-newsletter .wpcf7-submit:disabled {
  opacity: .64;
  cursor: not-allowed;
}

body.bsf-site-shell #barista-home-footer#barista-home-footer#barista-home-footer .bs-newsletter form.submitting .wpcf7-submit {
  opacity: .64;
  cursor: wait;
}

body.bsf-site-shell #barista-home-footer#barista-home-footer#barista-home-footer .bs-newsletter .bs-newsletter-consent {
  margin-top: 14px !important;
  color: var(--bsf-news-muted) !important;
  font: 400 14px/1.7 BaristaAssistant, Assistant, Arial, sans-serif !important;
}

body.bsf-site-shell #barista-home-footer#barista-home-footer#barista-home-footer .bs-newsletter .bs-newsletter-consent .wpcf7-list-item {
  display: block !important;
  margin: 0 !important;
}

body.bsf-site-shell #barista-home-footer#barista-home-footer#barista-home-footer .bs-newsletter .bs-newsletter-consent label {
  display: flex !important;
  align-items: flex-start !important;
  gap: 10px !important;
  min-height: 44px !important;
  margin: 0 !important;
  padding: 2px 0 !important;
  color: var(--bsf-news-muted) !important;
  font: 400 14px/1.7 BaristaAssistant, Assistant, Arial, sans-serif !important;
  cursor: pointer;
}

body.bsf-site-shell #barista-home-footer#barista-home-footer#barista-home-footer .bs-newsletter .bs-newsletter-consent input[type="checkbox"] {
  appearance: auto !important;
  -webkit-appearance: checkbox !important;
  flex: 0 0 22px !important;
  width: 22px !important;
  min-width: 22px !important;
  height: 22px !important;
  min-height: 22px !important;
  margin: 1px 0 0 !important;
  padding: 0 !important;
  accent-color: var(--bsf-news-ink);
  cursor: pointer;
}

body.bsf-site-shell #barista-home-footer#barista-home-footer#barista-home-footer .bs-newsletter .wpcf7-list-item-label {
  color: var(--bsf-news-muted) !important;
  font: inherit !important;
}

body.bsf-site-shell #barista-home-footer#barista-home-footer#barista-home-footer .bs-newsletter :is(.bs-newsletter-consent, .bsf-privacy) a {
  color: var(--bsf-news-ink) !important;
  font: inherit !important;
  text-decoration: underline !important;
  text-decoration-thickness: 1px !important;
  text-underline-offset: 3px !important;
}

body.bsf-site-shell #barista-home-footer#barista-home-footer#barista-home-footer .bs-newsletter .bsf-privacy {
  margin: 13px 0 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-top: 1px solid var(--bsf-news-line) !important;
  background: transparent !important;
  color: var(--bsf-news-muted) !important;
}

body.bsf-site-shell #barista-home-footer#barista-home-footer#barista-home-footer .bs-newsletter .bsf-privacy > summary {
  display: list-item !important;
  min-height: 44px !important;
  margin: 0 !important;
  padding: 12px 0 !important;
  list-style-position: inside !important;
  color: var(--bsf-news-ink) !important;
  font: 500 14px/1.5 BaristaAssistant, Assistant, Arial, sans-serif !important;
  cursor: pointer;
}

body.bsf-site-shell #barista-home-footer#barista-home-footer#barista-home-footer .bs-newsletter .bsf-privacy .barista-newsletter-privacy {
  margin: 0 0 8px !important;
  padding: 0 !important;
  color: var(--bsf-news-muted) !important;
  font: 400 14px/1.7 BaristaAssistant, Assistant, Arial, sans-serif !important;
  overflow-wrap: anywhere;
}

/* CF7 owns visibility and messages; only their visual presentation is adjusted. */
body.bsf-site-shell #barista-home-footer#barista-home-footer#barista-home-footer .bs-newsletter .wpcf7-not-valid-tip {
  margin-top: 6px !important;
  color: #8e352c !important;
  font: 400 14px/1.5 BaristaAssistant, Assistant, Arial, sans-serif !important;
}

body.bsf-site-shell #barista-home-footer#barista-home-footer#barista-home-footer .bs-newsletter .bs-newsletter-fields input[aria-invalid="true"] {
  border-color: #8e352c !important;
}

body.bsf-site-shell #barista-home-footer#barista-home-footer#barista-home-footer .bs-newsletter .wpcf7-response-output {
  margin: 14px 0 0 !important;
  padding: 12px 14px !important;
  border-width: 1px !important;
  border-radius: 2px !important;
  color: var(--bsf-news-ink) !important;
  font: 400 14px/1.7 BaristaAssistant, Assistant, Arial, sans-serif !important;
}

body.bsf-site-shell #barista-home-footer#barista-home-footer#barista-home-footer .bs-newsletter :is(input, button, a, summary):focus-visible {
  outline: 2px solid #203a2f !important;
  outline-offset: 3px !important;
}

@media (max-width: 960px) {
  body.bsf-site-shell #barista-home-footer#barista-home-footer#barista-home-footer .bs-newsletter {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 26px !important;
    padding: 32px !important;
    width: calc(100% - 40px) !important;
  }

  body.bsf-site-shell #barista-home-footer#barista-home-footer#barista-home-footer .bs-newsletter .bsf-newsletter-description {
    max-width: none !important;
  }
}

@media (max-width: 600px) {
  body.bsf-site-shell #barista-home-footer#barista-home-footer#barista-home-footer .bs-newsletter {
    width: calc(100% - 28px) !important;
    gap: 24px !important;
    margin: 18px auto 30px !important;
    padding: 28px 21px 18px !important;
  }

  body.bsf-site-shell #barista-home-footer#barista-home-footer#barista-home-footer .bs-newsletter #bs-newsletter-title {
    font-size: 30px !important;
    line-height: 1.24 !important;
    margin-bottom: 10px !important;
  }

  body.bsf-site-shell #barista-home-footer#barista-home-footer#barista-home-footer .bs-newsletter .bsf-newsletter-description {
    font-size: 16px !important;
    line-height: 1.65 !important;
  }

  body.bsf-site-shell #barista-home-footer#barista-home-footer#barista-home-footer .bs-newsletter .bs-newsletter-fields > p {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 15px !important;
  }

  body.bsf-site-shell #barista-home-footer#barista-home-footer#barista-home-footer .bs-newsletter .bs-newsletter-fields .wpcf7-submit {
    margin-top: 2px !important;
  }
}
}


/* Shared footer contact details use the approved sample alignment on every route. */
@layer bsf-final {
  body.bsf-site-shell #barista-home-footer {
    position: relative !important;
    inset: auto !important;
    clear: both;
  }
  body.bsf-site-shell #barista-home-footer .sf-footer-contact {
    text-align: center !important;
  }
  /* Keep the shared map on purchase/service pages; native details remain collapsible. */
  body.bsf-site-shell #barista-home-footer .sf-footer-group {
    display: block !important;
  }
  body.bsf-site-shell #barista-home-footer .sf-footer-contact-links {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 0 !important;
    width: max-content !important;
    max-width: 100% !important;
    margin: 0 auto 8px !important;
  }
  body.bsf-site-shell #barista-home-footer .sf-footer-contact-links > a {
    display: grid !important;
    grid-template-columns: 20px minmax(0, 1fr) !important;
    align-items: center !important;
    justify-content: start !important;
    gap: 10px !important;
    min-height: 44px !important;
    direction: ltr !important;
    text-align: left !important;
  }
  body.bsf-site-shell #barista-home-footer .sf-footer-contact-links > a svg {
    width: 20px !important;
    height: 20px !important;
    flex: 0 0 20px !important;
  }
  body.bsf-site-shell #barista-home-footer .sf-footer-contact-links > a span {
    min-width: 0;
    unicode-bidi: plaintext;
    overflow-wrap: anywhere;
  }
  body.bsf-site-shell #barista-home-footer .bsf-showroom {
    margin: 10px 0 6px !important;
    font-size: 13px !important;
    line-height: 1.6 !important;
  }
  body.bsf-site-shell #barista-home-footer .bsf-showroom strong {
    display: block;
    margin-bottom: 3px;
    font-size: 14px;
    font-weight: 500;
  }
  body.bsf-site-shell #barista-home-footer .bsf-showroom-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0 18px;
    margin: 2px 0 6px;
  }
  body.bsf-site-shell #barista-home-footer .bsf-showroom-actions a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    font-size: 13px;
    text-decoration: none;
  }
  body.bsf-site-shell .bsf-whatsapp-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
  }
  body.bsf-site-shell .bsf-contact-icon {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
  }
  body.bsf-site-shell #barista-home-footer .bsf-footer-importer {
    display: block;
    margin-top: 3px;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
    color: inherit;
  }
  /* A normal-flow form below the content; no dialog, sticky bar or auto-opening UI. */
  body.bsf-site-shell-focused #barista-home-footer#barista-home-footer#barista-home-footer .bs-newsletter {
    max-width: 960px !important;
    margin-block: 10px 28px !important;
    padding: 24px 28px !important;
    gap: 26px !important;
  }
  body.bsf-site-shell-focused #barista-home-footer#barista-home-footer#barista-home-footer .bs-newsletter #bs-newsletter-title {
    font-size: 25px !important;
  }
  body.bsf-site-shell-focused #barista-home-footer#barista-home-footer#barista-home-footer .bs-newsletter > div > p {
    font-size: 14px !important;
  }
  @media (max-width: 600px) {
    body.bsf-site-shell-focused #barista-home-footer#barista-home-footer#barista-home-footer .bs-newsletter {
      width: 100% !important;
      padding: 24px 18px !important;
      gap: 20px !important;
    }
  }
}

/* Override the previous checkout-only newsletter suppression in its own layer. */
@layer bscf-finish {
  body.bs-checkout-finish.bsf-site-shell #barista-home-footer#barista-home-footer .bs-newsletter {
    display: grid !important;
  }
}

