.sm-hvac-chat-page {
  --chat-ink: #111317;
  --chat-accent: #102033;
  --chat-surface: #fff;
  --chat-line: #dce3ea;
  --chat-muted: #667582;
  margin: 0;
  color: var(--chat-ink);
  background: #eef2f5;
}

.sm-hvac-chat-page *,
.sm-hvac-chat-page *::before,
.sm-hvac-chat-page *::after {
  box-sizing: border-box;
}

.sm-hvac-chat-page .sm-site-header + .sm-hvac-chat-stage {
  height: calc(100dvh - 156px);
  min-height: 590px;
  padding: 94px 26px 26px !important;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% -30%, rgba(16, 32, 51, .17), transparent 55%),
    linear-gradient(180deg, #f4f7f9, #e9eef2);
}

.sm-hvac-chat-window {
  width: min(940px, 100%);
  height: 100%;
  max-height: 700px;
  min-height: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(16, 32, 51, .13);
  border-radius: 14px;
  background: var(--chat-surface);
  box-shadow: 0 28px 80px rgba(16, 32, 51, .12), 0 2px 8px rgba(16, 32, 51, .05);
}

.sm-hvac-chat-header {
  min-height: 61px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--chat-line);
  background: rgba(255, 255, 255, .96);
}

.sm-hvac-chat-identity {
  display: flex;
  align-items: center;
  gap: 11px;
}

.sm-hvac-chat-identity strong,
.sm-hvac-chat-identity span {
  display: block;
}

.sm-hvac-chat-identity strong {
  color: var(--chat-accent);
  font-size: 13px;
}

.sm-hvac-chat-identity span {
  margin-top: 3px;
  color: #7a8792;
  font-size: 9px;
}

.sm-hvac-chat-status {
  padding: 5px 9px;
  border: 1px solid var(--chat-line);
  border-radius: 999px;
  color: #6e7d88;
  background: #f7f9fa;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.sm-hvac-chat-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  color: currentColor;
}

.sm-hvac-chat-conversation {
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #bcc8d1 transparent;
}

.sm-hvac-chat-welcome {
  width: min(680px, calc(100% - 40px));
  min-height: 100%;
  margin: 0 auto;
  padding: 28px 0 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.sm-hvac-chat-welcome > .sm-hvac-chat-icon {
  width: 34px;
  height: 34px;
  margin-bottom: 12px;
  color: var(--chat-accent);
}

.sm-hvac-chat-welcome h1 {
  max-width: 650px;
  margin: 0;
  color: var(--chat-accent);
  font-size: clamp(30px, 3.7vw, 38px);
  line-height: 1.08;
  letter-spacing: -.045em;
  overflow-wrap: normal;
  word-break: normal;
}

.sm-hvac-chat-welcome > p {
  max-width: 590px;
  margin: 14px 0 0;
  color: var(--chat-muted);
  font-size: 14px;
  line-height: 1.55;
}

.sm-hvac-chat-starters {
  width: 100%;
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.sm-hvac-chat-starters button {
  min-height: 52px;
  padding: 10px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--chat-line);
  border-radius: 9px;
  color: #374754;
  background: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.sm-hvac-chat-starters button:hover,
.sm-hvac-chat-starters button:focus-visible {
  transform: translateY(-1px);
  border-color: #bdcbd5;
  background: #f5f8fa;
}

.sm-hvac-chat-starters i {
  color: var(--chat-accent);
  font-size: 15px;
  font-style: normal;
}

.sm-hvac-chat-demo-message {
  width: min(700px, calc(100% - 40px));
  margin: auto;
  padding: 24px 0;
  display: grid;
  gap: 14px;
}

.sm-hvac-chat-demo-message article {
  max-width: 86%;
  padding: 13px 15px;
  border-radius: 13px 4px 13px 13px;
  color: #fff;
  background: var(--chat-accent);
  font-size: 13px;
  line-height: 1.55;
  justify-self: end;
  overflow-wrap: anywhere;
}

.sm-hvac-chat-demo-message p {
  max-width: 86%;
  margin: 0;
  padding: 13px 15px;
  border: 1px solid var(--chat-line);
  border-radius: 4px 13px 13px 13px;
  color: #52616d;
  background: #f8fafb;
  font-size: 12px;
  line-height: 1.5;
}

.sm-hvac-chat-composer-area {
  padding: 12px 20px 10px;
  border-top: 1px solid var(--chat-line);
  background: rgba(255, 255, 255, .98);
}

.sm-hvac-chat-composer {
  width: min(780px, 100%);
  min-height: 60px;
  margin: 0 auto;
  padding: 9px 9px 9px 15px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid #bdcbd5;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 7px 24px rgba(16, 32, 51, .07);
}

.sm-hvac-chat-composer:focus-within {
  border-color: #8ea1b0;
  box-shadow: 0 0 0 3px rgba(36, 56, 80, .08);
}

.sm-hvac-chat-composer textarea {
  min-width: 0;
  min-height: 29px;
  max-height: 90px;
  flex: 1;
  padding: 6px 2px;
  border: 0;
  outline: 0;
  resize: none;
  color: #263641;
  background: transparent;
  font: inherit;
  font-size: 12.5px;
  line-height: 1.4;
}

.sm-hvac-chat-composer textarea::placeholder {
  color: #8b98a3;
}

.sm-hvac-chat-composer button {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: var(--chat-accent);
  font-size: 17px;
  cursor: pointer;
}

.sm-hvac-chat-demo-note {
  max-width: 760px;
  margin: 7px auto 0;
  color: #8e9aa4;
  font-size: 8px;
  line-height: 1.35;
  text-align: center;
}

.sm-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1120px) {
  .sm-hvac-chat-page .sm-site-header + .sm-hvac-chat-stage {
    padding-top: 88px !important;
  }
}

@media (max-width: 720px) {
  .sm-hvac-chat-page .sm-site-header + .sm-hvac-chat-stage {
    height: 100dvh;
    min-height: 0;
    padding: 72px 8px 8px !important;
    place-items: stretch;
  }

  .sm-hvac-chat-window {
    width: 100%;
    height: 100%;
    max-height: none;
    border-radius: 12px;
    box-shadow: 0 12px 38px rgba(16, 32, 51, .08);
  }

  .sm-hvac-chat-header {
    min-height: 50px;
    padding: 0 14px;
  }

  .sm-hvac-chat-welcome {
    width: calc(100% - 24px);
    padding: 14px 0 10px;
    justify-content: flex-start;
  }

  .sm-hvac-chat-welcome > .sm-hvac-chat-icon {
    width: 26px;
    height: 26px;
    margin-bottom: 6px;
  }

  .sm-hvac-chat-welcome h1 {
    max-width: 340px;
    font-size: 26px;
    line-height: 1.05;
  }

  .sm-hvac-chat-welcome > p {
    max-width: 345px;
    margin-top: 8px;
    font-size: 11px;
    line-height: 1.4;
  }

  .sm-hvac-chat-starters {
    margin-top: 10px;
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .sm-hvac-chat-starters button {
    min-height: 40px;
    padding: 7px 11px;
    font-size: 10.5px;
  }

  .sm-hvac-chat-composer-area {
    padding: 6px 8px 5px;
  }

  .sm-hvac-chat-composer {
    min-height: 54px;
    padding: 7px 8px 7px 12px;
    border-radius: 16px;
  }

  .sm-hvac-chat-composer textarea {
    min-height: 32px;
    padding-block: 3px;
    font-size: 12px;
    line-height: 1.3;
  }

  .sm-hvac-chat-demo-message {
    width: calc(100% - 24px);
  }
}

@media (max-width: 720px) and (max-height: 700px) {
  .sm-hvac-chat-page .sm-site-header + .sm-hvac-chat-stage {
    padding-top: 70px !important;
    padding-bottom: 6px !important;
  }

  .sm-hvac-chat-welcome {
    padding: 8px 0 6px;
  }

  .sm-hvac-chat-welcome h1 {
    font-size: 23px;
  }

  .sm-hvac-chat-welcome > p {
    margin-top: 6px;
    font-size: 10.5px;
  }

  .sm-hvac-chat-starters {
    margin-top: 7px;
    gap: 4px;
  }

  .sm-hvac-chat-starters button {
    min-height: 37px;
    padding: 6px 10px;
    font-size: 10px;
  }

  .sm-hvac-chat-composer-area {
    padding-top: 5px;
    padding-bottom: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sm-hvac-chat-page *,
  .sm-hvac-chat-page *::before,
  .sm-hvac-chat-page *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
