/* Beehome Chat Widget */
#beehome-chat {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

#bh-chat-launcher {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 0;
  background: #fde047;
  color: #111827;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  z-index: 2147483500;
  transition: transform .18s ease, box-shadow .18s ease;
}
#bh-chat-launcher:hover {
  transform: scale(1.06);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.22);
}
#bh-chat-launcher.bh-chat-active {
  transform: rotate(90deg);
}

#bh-chat-panel {
  position: fixed;
  right: 20px;
  bottom: 88px;
  width: 340px;
  max-width: calc(100vw - 40px);
  max-height: calc(100vh - 120px);
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22);
  z-index: 2147483490;
  overflow: hidden;
  opacity: 0;
  transform: translateY(16px) scale(0.96);
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
  display: flex;
  flex-direction: column;
}
#bh-chat-panel.bh-chat-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

#bh-chat-panel .bh-chat-header {
  background: #111827;
  color: #ffffff;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
#bh-chat-panel .bh-chat-title strong {
  font-size: 1rem;
  display: block;
  line-height: 1.2;
}
#bh-chat-panel .bh-chat-sub {
  font-size: 0.85rem;
  color: #d1d5db;
  margin-top: 2px;
  line-height: 1.3;
}
#bh-chat-panel .bh-chat-close {
  background: transparent;
  border: 0;
  color: #ffffff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
  opacity: 0.7;
}
#bh-chat-panel .bh-chat-close:hover { opacity: 1; }

#bh-chat-panel .bh-chat-body {
  padding: 16px;
  overflow-y: auto;
  flex: 1;
}

#bh-chat-panel .bh-chat-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  background: #25d366;
  color: #ffffff;
  transition: filter .15s ease;
}
#bh-chat-panel .bh-chat-cta:hover { filter: brightness(1.06); }
#bh-chat-panel .bh-chat-cta[data-unconfigured="true"] {
  background: #9ca3af;
}

#bh-chat-panel .bh-chat-sep {
  text-align: center;
  color: #9ca3af;
  font-size: 0.85rem;
  margin: 14px 0;
  position: relative;
}
#bh-chat-panel .bh-chat-sep::before,
#bh-chat-panel .bh-chat-sep::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 40%;
  border-top: 1px solid #e5e7eb;
}
#bh-chat-panel .bh-chat-sep::before { left: 0; }
#bh-chat-panel .bh-chat-sep::after { right: 0; }

#bh-chat-panel .bh-chat-offhours {
  background: #fef3c7;
  color: #92400e;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  margin-bottom: 12px;
  border: 1px solid #fde68a;
}

#bh-chat-panel .bh-chat-formwrap .hs-input,
#bh-chat-panel .bh-chat-formwrap .hs-button {
  width: 100%;
  padding: 8px 10px;
  font-size: 0.9rem;
  border-radius: 6px;
  border: 1px solid #d1d5db;
}
#bh-chat-panel .bh-chat-formwrap .hs-button {
  background: #111827;
  color: #ffffff;
  border: 0;
  cursor: pointer;
  font-weight: 600;
}
#bh-chat-panel .bh-chat-formwrap .hs-form-label {
  font-size: 0.85rem;
  margin-bottom: 2px;
}
#bh-chat-panel .bh-chat-formwrap .hs-form-field { margin-bottom: 10px; }
