.public-chatbot {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 2100;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}

.public-chatbot-panel {
  width: min(320px, calc(100vw - 2rem));
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.18);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.98);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
}

.public-chatbot.is-open .public-chatbot-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.public-chatbot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.95rem 1rem;
  background: linear-gradient(135deg, #082579, #2563eb);
  color: #fff;
}

.public-chatbot-header strong {
  font-size: 0.98rem;
  font-weight: 700;
}

.public-chatbot-header p {
  margin: 0.15rem 0 0;
  font-size: 0.78rem;
  opacity: 0.9;
}

.public-chatbot-close {
  border: 0;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.public-chatbot-close:hover {
  background: rgba(255, 255, 255, 0.22);
}

.public-chatbot-body {
  padding: 1rem;
}

.public-chatbot-intro {
  margin: 0 0 0.85rem;
  font-size: 0.88rem;
  color: #64748b;
}

.public-chatbot-action {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 0.95rem;
  border-radius: 14px;
  text-decoration: none !important;
  font-weight: 600;
  margin-bottom: 0.65rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.public-chatbot-action:last-child {
  margin-bottom: 0;
}

.public-chatbot-action:hover {
  transform: translateY(-1px);
  text-decoration: none !important;
}

.public-chatbot-action-icon {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.public-chatbot-action-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.public-chatbot-action-copy small {
  font-size: 0.72rem;
  font-weight: 500;
  opacity: 0.78;
}

.public-chatbot-action--whatsapp {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.public-chatbot-action--whatsapp .public-chatbot-action-icon {
  background: #22c55e;
  color: #fff;
}

.public-chatbot-action--whatsapp:hover {
  color: #065f46;
  box-shadow: 0 8px 20px rgba(34, 197, 94, 0.18);
}

.public-chatbot-action--call {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.public-chatbot-action--call .public-chatbot-action-icon {
  background: #2563eb;
  color: #fff;
}

.public-chatbot-action--call:hover {
  color: #1d4ed8;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.18);
}

.public-chatbot-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.85rem;
}

.public-chatbot-quick a {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #475569;
  font-size: 0.76rem;
  font-weight: 600;
  text-decoration: none !important;
}

.public-chatbot-quick a:hover {
  background: #eff6ff;
  color: #1d4ed8;
}

.public-chatbot-toggle {
  width: 3.5rem;
  height: 3.5rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #082579, #2563eb);
  color: #fff;
  box-shadow: 0 12px 28px rgba(8, 37, 121, 0.32);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.public-chatbot-toggle:hover {
  transform: scale(1.04);
  box-shadow: 0 14px 32px rgba(8, 37, 121, 0.38);
}

.public-chatbot.is-open .public-chatbot-toggle {
  background: #334155;
}

@media (max-width: 575.98px) {
  .public-chatbot {
    right: 0.85rem;
    bottom: 0.85rem;
  }
}
