.hf-chat-widget {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.85rem;
  font-family: "Roboto", system-ui, sans-serif;
}

.hf-chat-bubble {
  width: min(320px, calc(100vw - 2.5rem));
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1rem 1rem 0.9rem;
  box-shadow: 0 12px 32px rgba(23, 40, 69, 0.18);
  position: relative;
  animation: hfChatBubbleIn 0.35s ease;
}

.hf-chat-bubble.is-hidden {
  display: none;
}

@keyframes hfChatBubbleIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.hf-chat-bubble-close {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  width: 28px;
  height: 28px;
  border: none;
  background: #f1f5f9;
  color: #64748b;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.75rem;
  transition: background 0.2s, color 0.2s;
}

.hf-chat-bubble-close:hover {
  background: #e2e8f0;
  color: #172845;
}

.hf-chat-bubble-head {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.55rem;
  padding-right: 1.75rem;
}

.hf-chat-bubble-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #1cb670;
  box-shadow: 0 0 0 3px rgba(28, 182, 112, 0.2);
  flex-shrink: 0;
}

.hf-chat-bubble-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #172845;
  letter-spacing: 0.01em;
}

.hf-chat-bubble-text {
  margin: 0 0 0.85rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #475569;
}

.hf-chat-bubble-action {
  width: 100%;
  border: none;
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  background: linear-gradient(135deg, #172845 0%, #1a4a8a 100%);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.hf-chat-bubble-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(23, 40, 69, 0.25);
  background: linear-gradient(135deg, #1a4a8a 0%, #172845 100%);
}

.hf-chat-launcher {
  border: none;
  border-radius: 999px;
  padding: 0.7rem 1.15rem 0.7rem 0.85rem;
  background: linear-gradient(135deg, #172845 0%, #1c2d4c 100%);
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(23, 40, 69, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}

.hf-chat-launcher:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(23, 40, 69, 0.4);
}

.hf-chat-launcher-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(239, 191, 0, 0.15);
  color: #efbf00;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.hf-chat-launcher-text {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.hf-chat-launcher-status {
  position: absolute;
  top: 6px;
  right: 10px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #1cb670;
  border: 2px solid #172845;
}

.hf-chat-launcher.is-active .hf-chat-launcher-icon {
  background: rgba(239, 191, 0, 0.25);
}

@media (max-width: 991px) {
  .hf-chat-widget {
    display: none !important;
  }
}

/* Hide default Tawk bubble — branded launcher / mobile bar opens chat */
.widget-visible {
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

body.hf-tawk-open .widget-visible {
  opacity: 1 !important;
  pointer-events: auto !important;
  visibility: visible !important;
}

@media (max-width: 991px) {
  body.hf-has-mobile-cta .widget-visible {
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
  }

  body.hf-has-mobile-cta.hf-tawk-open .widget-visible {
    opacity: 1 !important;
    pointer-events: auto !important;
    visibility: visible !important;
    bottom: 0 !important;
    z-index: 999999 !important;
  }
}
