/* v1.35.30 — WhatsApp Channel growth surfaces. */
.hb-wa-channel-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: #eaf8f2;
  color: #087b78;
}
.hb-wa-channel-icon svg {
  width: 23px;
  height: 23px;
  fill: currentColor;
}

.hb-wa-channel-sticky[hidden],
.hb-wa-channel-modal[hidden] { display: none !important; }

.hb-wa-channel-sticky {
  position: fixed;
  z-index: 96;
  left: 50%;
  bottom: 16px;
  width: min(760px, calc(100% - 32px));
  transform: translateX(-50%);
}
.hb-wa-channel-sticky__inner {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  min-height: 70px;
  padding: 10px 10px 10px 14px;
  border: 1px solid #dce8e4;
  border-radius: 18px;
  background: rgba(255,255,255,.98);
  box-shadow: 0 16px 44px rgba(24,49,45,.16);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.hb-wa-channel-sticky__copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.hb-wa-channel-sticky__copy strong {
  color: #173b39;
  font-size: 14px;
  line-height: 1.3;
  font-weight: 800;
}
.hb-wa-channel-sticky__copy span {
  color: #677773;
  font-size: 12px;
  line-height: 1.35;
}
.hb-wa-channel-sticky__cta,
.hb-wa-channel-modal__cta,
.hb-order-whatsapp-channel__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 17px;
  border: 0;
  border-radius: 11px;
  background: #087b78;
  color: #fff !important;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none !important;
  white-space: nowrap;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.hb-wa-channel-sticky__cta:hover,
.hb-wa-channel-modal__cta:hover,
.hb-order-whatsapp-channel__cta:hover {
  background: #075f61;
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(7,95,97,.18);
}
.hb-wa-channel-sticky__close {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #7b8986;
  font-size: 23px;
  line-height: 1;
}
.hb-wa-channel-sticky__close:hover { background: #f1f5f3; color: #304441; }

.hb-wa-channel-modal {
  position: fixed;
  z-index: 140;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
}
.hb-wa-channel-modal__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: rgba(12,27,25,.48);
  cursor: default;
}
.hb-wa-channel-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  padding: 28px;
  border: 1px solid #e2ebe8;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 26px 70px rgba(12,31,28,.24);
  text-align: center;
}
.hb-wa-channel-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #f4f7f6;
  color: #65736f;
  font-size: 24px;
  line-height: 1;
}
.hb-wa-channel-modal__icon { margin: 0 auto 14px; width: 50px; height: 50px; border-radius: 15px; }
.hb-wa-channel-modal__icon svg { width: 27px; height: 27px; }
.hb-wa-channel-modal__eyebrow {
  display: block;
  margin-bottom: 6px;
  color: #087b78;
  font-size: 11px;
  line-height: 1.3;
  font-weight: 850;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.hb-wa-channel-modal h2 {
  margin: 0;
  color: #183e3b;
  font-size: 24px;
  line-height: 1.18;
  letter-spacing: -.02em;
}
.hb-wa-channel-modal p {
  margin: 11px auto 0;
  max-width: 360px;
  color: #667570;
  font-size: 14px;
  line-height: 1.55;
}
.hb-wa-channel-modal__benefits {
  display: grid;
  gap: 8px;
  margin: 18px 0;
  padding: 0;
  list-style: none;
  text-align: left;
}
.hb-wa-channel-modal__benefits li {
  position: relative;
  padding-left: 25px;
  color: #324b47;
  font-size: 13px;
  font-weight: 700;
}
.hb-wa-channel-modal__benefits li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #eaf8f2;
  color: #087b78;
  font-size: 11px;
  font-weight: 900;
}
.hb-wa-channel-modal__cta { width: 100%; min-height: 48px; font-size: 14px; }
.hb-wa-channel-modal__later {
  margin-top: 10px;
  padding: 7px 10px;
  border: 0;
  background: transparent;
  color: #7b8986;
  font-size: 12px;
  font-weight: 700;
}
.hb-wa-channel-modal__later:hover { color: #38504c; }
body.hb-wa-channel-modal-open { overflow: hidden; }

/* Thank-you page dedicated CTA — intentionally separate from operational support. */
.hb-order-whatsapp-channel {
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  align-items: center;
  gap: 16px;
  margin: 18px 0;
  padding: 18px 20px !important;
  border-color: #dcebe6 !important;
  background: linear-gradient(135deg, #fbfefd 0%, #f4fbf7 100%) !important;
}
.hb-order-whatsapp-channel__copy { min-width: 0; }
.hb-order-whatsapp-channel__copy > span {
  display: block;
  margin-bottom: 2px;
  color: #087b78;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.hb-order-whatsapp-channel__copy h2 {
  margin: 0 !important;
  color: #173b39;
  font-size: 18px !important;
  line-height: 1.25 !important;
}
.hb-order-whatsapp-channel__copy p {
  margin: 5px 0 0 !important;
  color: #65736f;
  font-size: 12.5px;
  line-height: 1.45;
}

@media (max-width: 760px) {
  .hb-wa-channel-sticky {
    left: 12px;
    right: 12px;
    bottom: max(10px, env(safe-area-inset-bottom));
    width: auto;
    transform: none;
  }
  .hb-wa-channel-sticky__inner {
    grid-template-columns: 38px minmax(0,1fr) 30px;
    gap: 9px;
    min-height: 0;
    padding: 10px;
    border-radius: 16px;
  }
  .hb-wa-channel-sticky .hb-wa-channel-icon { width: 38px; height: 38px; border-radius: 12px; }
  .hb-wa-channel-sticky .hb-wa-channel-icon svg { width: 21px; height: 21px; }
  .hb-wa-channel-sticky__copy strong { font-size: 13px; }
  .hb-wa-channel-sticky__copy span { font-size: 10.5px; }
  .hb-wa-channel-sticky__cta {
    grid-column: 2 / 4;
    width: 100%;
    min-height: 40px;
    margin-top: 1px;
  }
  .hb-wa-channel-sticky__close {
    grid-column: 3;
    grid-row: 1;
    width: 30px;
    height: 30px;
  }

  .hb-wa-channel-modal { align-items: end; padding: 12px; }
  .hb-wa-channel-modal__dialog {
    width: 100%;
    padding: 24px 20px 20px;
    border-radius: 20px;
    text-align: left;
  }
  .hb-wa-channel-modal__icon { margin: 0 0 13px; }
  .hb-wa-channel-modal h2 { padding-right: 28px; font-size: 21px; }
  .hb-wa-channel-modal p { max-width: none; margin-left: 0; }

  .hb-order-whatsapp-channel {
    grid-template-columns: 42px minmax(0,1fr) !important;
    gap: 10px !important;
    padding: 15px !important;
  }
  .hb-order-whatsapp-channel__icon { width: 42px; height: 42px; }
  .hb-order-whatsapp-channel__copy h2 { font-size: 16px !important; }
  .hb-order-whatsapp-channel__copy p { font-size: 12px; }
  .hb-order-whatsapp-channel__cta {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hb-wa-channel-sticky__cta,
  .hb-wa-channel-modal__cta,
  .hb-order-whatsapp-channel__cta { transition: none; }
}

/* v1.35.35 — Minimal WhatsApp popup: one-line benefit + single CTA. */
.hb-wa-channel-modal__dialog {
  width: min(680px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 18px 58px 18px 22px;
  border-radius: 18px;
  text-align: left;
}
.hb-wa-channel-modal__message {
  margin: 0 !important;
  max-width: none !important;
  color: #183e3b !important;
  font-size: 17px !important;
  line-height: 1.35 !important;
  font-weight: 800 !important;
  white-space: nowrap;
}
.hb-wa-channel-modal__cta {
  width: auto;
  min-width: 174px;
  min-height: 44px;
  padding: 0 18px;
  font-size: 13px;
}
@media (max-width: 760px) {
  .hb-wa-channel-modal__dialog {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 22px 20px 18px;
    border-radius: 18px;
    text-align: center;
  }
  .hb-wa-channel-modal__message {
    padding: 0 28px 0 0;
    font-size: 16px !important;
    white-space: normal;
  }
  .hb-wa-channel-modal__cta {
    width: 100%;
    min-width: 0;
    min-height: 44px;
  }
}


/* v1.35.36 — Readable minimal WhatsApp popup. */
.hb-wa-channel-modal__dialog {
  width: min(820px, calc(100vw - 40px)) !important;
  max-width: 820px !important;
  grid-template-columns: minmax(0, 1fr) max-content !important;
  gap: 16px !important;
  padding: 16px 52px 16px 22px !important;
  border-radius: 18px !important;
  overflow: visible !important;
}
.hb-wa-channel-modal__message {
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #183e3b !important;
  font-size: 16px !important;
  line-height: 1.35 !important;
  font-weight: 800 !important;
  letter-spacing: -.01em !important;
  white-space: nowrap !important;
  overflow: visible !important;
}
.hb-wa-channel-modal__cta {
  width: auto !important;
  min-width: 126px !important;
  min-height: 42px !important;
  padding: 0 18px !important;
  border-radius: 11px !important;
  font-size: 13px !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}
.hb-wa-channel-modal__close {
  top: 50% !important;
  right: 13px !important;
  transform: translateY(-50%) !important;
  width: 28px !important;
  min-width: 28px !important;
  height: 28px !important;
  min-height: 28px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  outline: 0 !important;
  border-radius: 8px !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #6f7c79 !important;
  font-size: 21px !important;
  line-height: 28px !important;
}
.hb-wa-channel-modal__close:hover {
  background: #f2f6f4 !important;
  color: #183e3b !important;
}
.hb-wa-channel-modal__close:focus-visible {
  outline: 2px solid #087b78 !important;
  outline-offset: 2px !important;
}
@media (max-width: 860px) {
  .hb-wa-channel-modal__dialog {
    width: min(520px, calc(100vw - 28px)) !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    padding: 22px 20px 18px !important;
    text-align: center !important;
  }
  .hb-wa-channel-modal__message {
    padding: 0 26px !important;
    font-size: 16px !important;
    white-space: normal !important;
  }
  .hb-wa-channel-modal__cta {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 44px !important;
  }
  .hb-wa-channel-modal__close {
    top: 10px !important;
    right: 10px !important;
    transform: none !important;
  }
}


/* v1.35.37 — Non-blocking sticky channel invitation.
   The page remains fully scrollable/clickable while the invitation is visible. */
body.hb-wa-channel-modal-open {
  overflow: visible !important;
}
.hb-wa-channel-modal {
  position: fixed !important;
  z-index: 140 !important;
  inset: auto auto 18px 50% !important;
  display: block !important;
  width: min(760px, calc(100% - 32px)) !important;
  padding: 0 !important;
  transform: translateX(-50%) !important;
  pointer-events: none !important;
}
.hb-wa-channel-modal[hidden] {
  display: none !important;
}
.hb-wa-channel-modal__backdrop {
  display: none !important;
}
.hb-wa-channel-modal__dialog {
  position: relative !important;
  z-index: 1 !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  pointer-events: auto !important;
  box-shadow: 0 14px 38px rgba(12,31,28,.18) !important;
}

@media (max-width: 860px) {
  .hb-wa-channel-modal {
    left: 12px !important;
    right: 12px !important;
    bottom: max(12px, env(safe-area-inset-bottom)) !important;
    width: auto !important;
    transform: none !important;
  }
  .hb-wa-channel-modal__dialog {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    padding: 18px 44px 16px 18px !important;
    border-radius: 16px !important;
    text-align: left !important;
  }
  .hb-wa-channel-modal__message {
    padding: 0 !important;
    white-space: normal !important;
    font-size: 15px !important;
  }
  .hb-wa-channel-modal__cta {
    width: 100% !important;
    min-width: 0 !important;
  }
}


/* v1.35.39 — Mobile popup: one-line message, CTA below, compact non-blocking card. */
@media (max-width: 600px) {
  .hb-wa-channel-modal {
    left: 8px !important;
    right: 8px !important;
    bottom: max(10px, env(safe-area-inset-bottom)) !important;
  }
  .hb-wa-channel-modal__dialog {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 9px !important;
    padding: 12px 38px 12px 12px !important;
    border-radius: 14px !important;
    text-align: center !important;
  }
  .hb-wa-channel-modal__message {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #173f3a !important;
    font-size: clamp(8.4px, 2.35vw, 9.8px) !important;
    line-height: 1.25 !important;
    font-weight: 800 !important;
    letter-spacing: -0.025em !important;
    white-space: nowrap !important;
    overflow: visible !important;
    text-align: center !important;
  }
  .hb-wa-channel-modal__cta {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 40px !important;
    padding: 0 14px !important;
    border-radius: 11px !important;
    font-size: 13px !important;
    line-height: 1 !important;
  }
  .hb-wa-channel-modal__close {
    top: 8px !important;
    right: 8px !important;
    width: 26px !important;
    height: 26px !important;
  }
}


/* v1.35.41 — Desktop WhatsApp invitation readability fix. */
@media (min-width: 981px) {
  .hb-wa-channel-modal {
    width: min(1080px, calc(100vw - 32px)) !important;
  }
  .hb-wa-channel-modal__dialog {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) max-content !important;
    align-items: center !important;
    gap: 18px !important;
    padding: 14px 48px 14px 24px !important;
  }
  .hb-wa-channel-modal__message {
    min-width: 0 !important;
    max-width: none !important;
    padding: 0 !important;
    font-size: clamp(14px, 1.35vw, 16px) !important;
    line-height: 1.3 !important;
    white-space: nowrap !important;
    overflow: visible !important;
    text-overflow: clip !important;
  }
  .hb-wa-channel-modal__cta {
    min-width: 132px !important;
    min-height: 42px !important;
    padding: 0 16px !important;
    font-size: 13px !important;
    flex: 0 0 auto !important;
  }
  .hb-wa-channel-modal__close {
    right: 12px !important;
  }
}

/* Medium screens use a safe stacked layout rather than clipping the message. */
@media (min-width: 601px) and (max-width: 980px) {
  .hb-wa-channel-modal {
    width: min(620px, calc(100vw - 28px)) !important;
  }
  .hb-wa-channel-modal__dialog {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    padding: 16px 42px 16px 18px !important;
    text-align: center !important;
  }
  .hb-wa-channel-modal__message {
    padding: 0 !important;
    font-size: 14px !important;
    line-height: 1.35 !important;
    white-space: normal !important;
  }
  .hb-wa-channel-modal__cta {
    width: 100% !important;
    min-width: 0 !important;
  }
}


/* v1.35.54 — Keep the WhatsApp invitation away from bottom AI/chat widgets on mobile. */
@media (max-width: 600px) {
  .hb-wa-channel-modal {
    top: clamp(96px, 18vh, 150px) !important;
    bottom: auto !important;
    left: 8px !important;
    right: 8px !important;
  }
  .hb-wa-channel-modal__dialog {
    box-shadow: 0 14px 38px rgba(12,31,28,.16) !important;
  }
}

/* Small tablets also keep the invitation above the lower chat/assistant zone. */
@media (min-width: 601px) and (max-width: 860px) {
  .hb-wa-channel-modal {
    top: clamp(104px, 16vh, 150px) !important;
    bottom: auto !important;
  }
}

/* v1.35.63 — Replace the old channel-only popup with the WhatsApp lead-capture form. */
.hb-wa-channel-modal--lead {
  width: min(470px, calc(100vw - 32px)) !important;
}
.hb-wa-channel-modal--lead .hb-wa-channel-modal__dialog--lead {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  max-height: calc(100vh - 40px) !important;
  margin: 0 !important;
  padding: 22px 22px 20px !important;
  border: 1px solid #dce8e4 !important;
  border-radius: 18px !important;
  background: #fff !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  text-align: left !important;
  box-shadow: 0 18px 48px rgba(12,31,28,.18) !important;
}
.hb-wa-channel-modal--lead .hb-wa-channel-modal__lead-form {
  min-width: 0;
  padding-right: 28px;
}
.hb-wa-channel-modal--lead .hb-wa-subscribe {
  width: 100%;
  max-width: none;
  gap: 12px;
}
.hb-wa-channel-modal--lead .hb-wa-subscribe__intro {
  padding-right: 4px;
}
.hb-wa-channel-modal--lead .hb-wa-subscribe__intro strong {
  font-size: 17px;
  line-height: 1.3;
}
.hb-wa-channel-modal--lead .hb-wa-subscribe__intro p {
  font-size: 12.5px;
}
.hb-wa-channel-modal--lead .hb-wa-subscribe__row {
  grid-template-columns: minmax(0,1fr) auto;
}
.hb-wa-channel-modal--lead .hb-wa-subscribe__phone {
  min-height: 46px;
}
.hb-wa-channel-modal--lead .hb-wa-subscribe__submit {
  min-width: 116px;
  min-height: 46px;
}
.hb-wa-channel-modal--lead .hb-wa-subscribe__success {
  margin-top: 2px;
}
.hb-wa-channel-modal--lead .hb-wa-channel-modal__close {
  top: 9px !important;
  right: 9px !important;
  transform: none !important;
  z-index: 3 !important;
}
@media (max-width: 600px) {
  .hb-wa-channel-modal--lead {
    top: clamp(84px, 13vh, 118px) !important;
    left: 8px !important;
    right: 8px !important;
    width: auto !important;
  }
  .hb-wa-channel-modal--lead .hb-wa-channel-modal__dialog--lead {
    max-height: calc(100vh - 112px) !important;
    padding: 18px 16px 16px !important;
    border-radius: 16px !important;
  }
  .hb-wa-channel-modal--lead .hb-wa-channel-modal__lead-form {
    padding-right: 22px;
  }
  .hb-wa-channel-modal--lead .hb-wa-subscribe__intro strong {
    font-size: 15px;
  }
  .hb-wa-channel-modal--lead .hb-wa-subscribe__intro p {
    font-size: 11.5px;
  }
  .hb-wa-channel-modal--lead .hb-wa-subscribe__row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .hb-wa-channel-modal--lead .hb-wa-subscribe__submit {
    width: 100%;
    min-width: 0;
  }
  .hb-wa-channel-modal--lead .hb-wa-subscribe__consent {
    font-size: 10px;
  }
  .hb-wa-channel-modal--lead .hb-wa-subscribe__meta {
    gap: 8px;
  }
}

