.bgc {
  --bgc-primary: #6a7e6e;
  --bgc-accent: #ff9b84;
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9999;
  font-family: 'Montserrat', sans-serif;
}

.bgc-launcher {
  width: 60px;
  height: 60px;
  border: 0;
  border-radius: 50%;
  background: var(--bgc-primary);
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}
.bgc-launcher:hover { transform: scale(1.06); }
.bgc-open .bgc-launcher { display: none; }

.bgc-panel {
  width: 370px;
  height: 560px;
  max-height: calc(100vh - 40px);
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}
.bgc-panel[hidden] { display: none; }

.bgc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--bgc-primary);
  color: #fff;
}
.bgc-header strong { display: block; font-size: 15px; }
.bgc-header span { font-size: 12px; opacity: 0.85; }
.bgc-close { background: none; border: 0; color: #fff; font-size: 20px; cursor: pointer; }

.bgc-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  background: #f6f7f6;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bgc-msg {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.45;
  word-wrap: break-word;
}
.bgc-bot { align-self: flex-start; background: #fff; color: #333; border-bottom-left-radius: 4px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08); }
.bgc-user { align-self: flex-end; background: var(--bgc-primary); color: #fff; border-bottom-right-radius: 4px; }

.bgc-options { display: flex; flex-wrap: wrap; gap: 6px; }
.bgc-options button {
  padding: 8px 12px;
  border: 1.5px solid var(--bgc-primary);
  border-radius: 20px;
  background: #fff;
  color: var(--bgc-primary);
  font: 500 13px 'Montserrat', sans-serif;
  cursor: pointer;
}
.bgc-options button:hover { background: var(--bgc-primary); color: #fff; }

.bgc-summary { list-style: none; margin: 8px 0 0; padding: 0; }
.bgc-summary li { padding: 3px 0; border-bottom: 1px solid #eee; }
.bgc-summary span { display: block; font-size: 11px; color: #888; text-transform: uppercase; }

.bgc-wa,
.bgc-mail {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: 20px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.bgc-wa { background: #25d366; }
.bgc-mail { background: var(--bgc-primary); }

.bgc-input { display: flex; gap: 8px; padding: 10px; border-top: 1px solid #eee; background: #fff; }
.bgc-input input { flex: 1; padding: 10px 12px; border: 1px solid #ddd; border-radius: 20px; font: 14px 'Montserrat', sans-serif; outline: none; }
.bgc-input input:focus { border-color: var(--bgc-primary); }
.bgc-input button { width: 40px; border: 0; border-radius: 50%; background: var(--bgc-accent); color: #fff; cursor: pointer; }

.bgc-typing { display: inline-flex; gap: 4px; }
.bgc-typing i { width: 7px; height: 7px; border-radius: 50%; background: #aaa; animation: bgc-dot 1s infinite; }
.bgc-typing i:nth-child(2) { animation-delay: 0.15s; }
.bgc-typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes bgc-dot { 0%, 60%, 100% { opacity: 0.3; } 30% { opacity: 1; } }

@media (max-width: 480px) {
  .bgc { right: 12px; bottom: 12px; }
  .bgc-open { inset: 0; }
  .bgc-panel { width: 100vw; height: 100dvh; max-height: none; border-radius: 0; }
}
