.live-chat-launcher {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
  font-family: "DM Sans", system-ui, sans-serif;
}

.live-chat-launcher.hidden-panel .live-chat-panel {
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.98);
  pointer-events: none;
}

.live-chat-panel {
  width: min(360px, calc(100vw - 2rem));
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  overflow: hidden;
  transform: translateY(0) scale(1);
  opacity: 1;
  visibility: visible;
  transition: 0.2s ease;
}

.live-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: #111;
  color: #fff;
}

.live-chat-header-info {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.live-chat-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #a38339, #c9a227);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
}

.live-chat-title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
}

.live-chat-status {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0.1rem 0 0;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.75);
}

.live-chat-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25);
}

.live-chat-close {
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
}

.live-chat-body {
  padding: 1rem;
}

.live-chat-bubble {
  background: #f5f5f5;
  border-radius: 12px 12px 12px 4px;
  padding: 0.85rem 0.9rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: #333;
  margin-bottom: 1rem;
}

.live-chat-bubble strong {
  display: block;
  margin-bottom: 0.35rem;
  color: #111;
}

.live-chat-actions {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.live-chat-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.7rem 0.85rem;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
  text-align: center;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.live-chat-action-primary {
  background: #a38339;
  color: #fff;
}

.live-chat-action-primary:hover {
  background: #8f7030;
  color: #fff;
}

.live-chat-action-secondary {
  background: #fff;
  color: #111;
  border: 1px solid #ddd;
}

.live-chat-action-secondary:hover {
  background: #fafafa;
}

.live-chat-form label {
  display: grid;
  gap: 0.25rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: #444;
  margin-bottom: 0.55rem;
}

.live-chat-form input,
.live-chat-form textarea {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 0.55rem 0.65rem;
  font: inherit;
  font-size: 0.85rem;
}

.live-chat-form textarea {
  min-height: 72px;
  resize: vertical;
}

.live-chat-send {
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.65rem;
  border: none;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-weight: 700;
  font-size: 0.84rem;
  cursor: pointer;
}

.live-chat-send:hover {
  background: #333;
}

.live-chat-success {
  text-align: center;
  padding: 1rem 0.5rem;
  font-size: 0.88rem;
  color: #166534;
}

.live-chat-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.15rem;
  border: none;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

.live-chat-toggle:hover {
  background: #222;
}

.live-chat-toggle-icon {
  font-size: 1.15rem;
}

@media (max-width: 480px) {
  .live-chat-launcher {
    right: 1rem;
    bottom: 1rem;
  }

  .live-chat-toggle-label {
    display: none;
  }

  .live-chat-toggle {
    width: 56px;
    height: 56px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }
}
