/* BestHelpTool chat button — shown only on enabled paths (see chat-button.js) */

#bht-chat-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 58px;
  height: 58px;
  z-index: 2147483000;
  border: 0;
  padding: 0;
  border-radius: 50%;
  background: #0f766e;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .24);
  cursor: pointer;
  transition: background .18s ease, transform .18s ease;
}

#bht-chat-fab:hover,
#bht-chat-fab:focus-visible {
  background: #0d9488;
  transform: scale(1.06);
}

#bht-chat-fab svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

#bht-chat-fab .bht-chat-fab__dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid #0f766e;
}

.bht-chat-panel {
  position: fixed;
  right: 20px;
  bottom: 88px;
  width: min(320px, calc(100vw - 40px));
  z-index: 2147483000;
  background: #fff;
  color: #111827;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .2);
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.bht-chat-panel[hidden] {
  display: none;
}

.bht-chat-panel__head {
  background: #0f766e;
  color: #fff;
  padding: 12px 14px;
  font-size: .9rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bht-chat-panel__close {
  background: none;
  border: 0;
  color: #fff;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
}

.bht-chat-panel__body {
  padding: 14px;
  font-size: .85rem;
  line-height: 1.5;
  color: #374151;
}

.bht-chat-panel__body p {
  margin: 0 0 10px;
}

.bht-chat-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bht-chat-panel__actions a {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 8px;
  background: #f3f4f6;
  color: #111827;
  font-size: .8rem;
  font-weight: 600;
  text-decoration: none;
}

.bht-chat-panel__actions a:hover {
  background: #e5e7eb;
}

@media (max-width: 420px) {
  .bht-chat-panel {
    right: 12px;
    left: 12px;
    width: auto;
  }
}

@media print {
  #bht-chat-fab,
  .bht-chat-panel {
    display: none !important;
  }
}