.sales-chat { color: var(--ink, #213f35); font: inherit; }
.sales-chat-launcher {
  position: fixed; right: max(20px, env(safe-area-inset-right)); bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 40;
  display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 12px 20px 12px 15px;
  border: 1px solid #086064; border-radius: 18px; background: #087f83; color: #fff; cursor: pointer;
  box-shadow: 0 8px 28px #08606440; text-align: left;
}
.sales-chat-launcher:hover { background: #086064; }
.sales-chat-launcher svg { width: 28px; height: 28px; flex-shrink: 0; }
.sales-chat-launcher strong { display: block; font-size: .95rem; line-height: 1.4; }
.sales-chat-launcher small { display: block; font-size: .71rem; line-height: 1.5; color: #e6f5f0; }
.sales-chat-dialog {
  position: fixed; inset: auto max(20px, env(safe-area-inset-right)) calc(20px + env(safe-area-inset-bottom) + var(--sales-chat-keyboard, 0px)) auto;
  width: min(408px, calc(100vw - 28px)); height: min(660px, calc(var(--sales-chat-viewport, 100dvh) - 40px - env(safe-area-inset-bottom)));
  max-width: none; max-height: none; margin: 0; padding: 0; overflow: hidden; color: #213f35;
  background: #fffdf7; border: 1px solid #d7e5da; border-radius: 22px; box-shadow: 0 18px 65px #193e3540;
}
.sales-chat-dialog[open] { display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto auto auto; }
.sales-chat-dialog::backdrop { background: #183a3033; }
.sales-chat-header { display: flex; align-items: center; gap: 10px; padding: 18px 14px 15px 18px; background: #fff; }
.sales-chat-header img { flex: 0 0 40px; }
.sales-chat-header h2 { margin: 0; font-size: 1.05rem; letter-spacing: -.25px; line-height: 1.4; }
.sales-chat-header p { margin: 3px 0 0; color: #53685e; font-size: .68rem; line-height: 1.5; }
.sales-chat-close { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; margin-left: auto; border: 0; border-radius: 12px; background: #f0f5ec; color: #213f35; cursor: pointer; font-size: 1.6rem; }
.sales-chat-close:hover { background: #e0ecdc; }
.sales-chat-promise { margin: 0; padding: 9px 18px; background: #e9f3e5; color: #245541; text-align: center; font-size: .73rem; font-weight: 800; line-height: 1.5; }
.sales-chat-promise span { color: #087f83; margin-right: 4px; }
.sales-chat-conversation { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 18px 16px; display: flex; flex-direction: column; gap: 12px; scrollbar-width: thin; }
.sales-chat-message { flex-shrink: 0; width: fit-content; max-width: 100%; padding: 14px; background: #fff; border: 1px solid #e1e7da; border-radius: 17px 17px 17px 4px; }
.sales-chat-speaker { display: block; margin-bottom: 6px; color: #086064; font-size: .68rem; font-weight: 800; }
.sales-chat-message p { margin: 0; color: #314b40; font-size: .88rem; line-height: 1.7; overflow-wrap: anywhere; white-space: pre-wrap; }
.sales-chat-message h3 { margin: 0 0 7px; font-size: .86rem; line-height: 1.45; }
.sales-chat-message-user { align-self: flex-end; max-width: 90%; background: #087f83; border-color: #087f83; border-radius: 17px 17px 4px 17px; }
.sales-chat-message-user p { color: #fff; }
.sales-chat-message-user .sales-chat-speaker { color: #d7f2e7; }
.sales-chat-suggestions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 13px; }
.sales-chat-suggestions button { min-height: 44px; padding: 10px 12px; border: 1px solid #bad4c6; border-radius: 12px; background: #f6faf2; color: #245541; text-align: left; font-size: .75rem; font-weight: 700; line-height: 1.4; cursor: pointer; }
.sales-chat-suggestions button:hover { background: #e5f1de; border-color: #7da78e; }
.sales-chat-topics { padding: 0 16px; background: #fffdf7; border-top: 1px solid #e2e9dc; }
.sales-chat-topics summary { min-height: 44px; display: flex; align-items: center; gap: 8px; color: #086064; cursor: pointer; font-size: .76rem; font-weight: 800; list-style: none; }
.sales-chat-topics summary::-webkit-details-marker { display: none; }
.sales-chat-topics summary::before { content: "+"; font-size: 1.1rem; }
.sales-chat-topics[open] summary::before { content: "−"; }
.sales-chat-topic-list { max-height: min(190px, 30dvh); overflow-y: auto; overscroll-behavior: contain; padding: 0 0 10px; scrollbar-width: thin; }
.sales-chat-topic-list .sales-chat-suggestions { margin: 0; }
.sales-chat-topic-list button { flex: 1 0 45%; }
.sales-chat-form { display: flex; gap: 8px; padding: 10px 16px 12px; margin: 0; }
.sales-chat-form input { min-width: 0; flex: 1; min-height: 46px; padding: 10px 12px; background: #fff; color: #213f35; border: 1px solid #a9c4b7; border-radius: 12px; font-size: 16px; }
.sales-chat-form input::placeholder { color: #67776f; }
.sales-chat-form button { flex: 0 0 46px; display: grid; place-items: center; min-height: 46px; padding: 10px; background: #087f83; color: #fff; border: 0; border-radius: 12px; cursor: pointer; }
.sales-chat-form button:hover { background: #086064; }
.sales-chat-form svg { width: 23px; height: 23px; }
.sales-chat-footer { padding: 13px 16px 8px; background: #fff; border-top: 1px solid #e2e9dc; }
.sales-chat-primary { display: flex; align-items: center; justify-content: center; min-height: 46px; padding: 12px 8px; border-radius: 12px; background: #f4bf44; color: #293f24; font-size: .88rem; font-weight: 800; line-height: 1.4; text-align: center; }
.sales-chat-primary:hover { background: #edaf24; }
.sales-chat-primary-help { background: #087f83; color: #fff; }
.sales-chat-primary-help:hover { background: #086064; }
.sales-chat-price-note { margin: 7px 0 1px; color: #586c60; font-size: .66rem; text-align: center; line-height: 1.5; }
.sales-chat-footer nav { display: flex; justify-content: space-between; gap: 12px; }
.sales-chat-footer nav a { display: flex; align-items: center; min-height: 44px; font-size: .73rem; font-weight: 800; color: #086064; text-decoration: underline; text-underline-offset: 4px; }
.sales-chat :is(button, a, summary, input, [tabindex]):focus-visible { outline: 3px solid #087f83; outline-offset: 2px; }
.sales-chat-launcher:focus-visible { outline-color: #f4bf44; outline-offset: 4px; }
.sales-chat-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
body:has(.sales-chat) .site-footer { padding-bottom: 108px; }
@media (max-width: 600px) {
  .sales-chat-launcher { right: max(14px, env(safe-area-inset-right)); bottom: calc(14px + env(safe-area-inset-bottom)); min-height: 56px; padding: 10px 15px 10px 13px; }
  .sales-chat-dialog { right: max(14px, env(safe-area-inset-right)); bottom: calc(14px + env(safe-area-inset-bottom) + var(--sales-chat-keyboard, 0px)); height: min(660px, calc(var(--sales-chat-viewport, 100dvh) - 28px - env(safe-area-inset-bottom))); border-radius: 18px; }
  .sales-chat-header { padding: 14px 10px 12px 14px; }
  .sales-chat-header h2 { font-size: 1rem; }
  .sales-chat-header p { font-size: .65rem; }
  .sales-chat-conversation { padding: 14px 12px; }
  .sales-chat-message { padding: 12px; }
  .sales-chat-message p { font-size: .87rem; }
}
@media (max-height: 520px) {
  .sales-chat-header { padding: 6px 12px; }
  .sales-chat-header img { width: 32px; height: 32px; flex-basis: 32px; }
  .sales-chat-promise { padding: 4px 12px; }
  .sales-chat-footer { padding-top: 7px; padding-bottom: 2px; }
  .sales-chat-price-note { display: none; }
  .sales-chat-topics summary { min-height: 36px; }
  .sales-chat-form { padding-top: 6px; padding-bottom: 6px; }
  .sales-chat-footer nav a { min-height: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  .sales-chat, .sales-chat * { scroll-behavior: auto; }
}
