/* Help bot — button-driven answer tree. Scoped to #help-bot-root so it cannot
   reach into the storefront's own styles. */
#help-bot-root { position: fixed; right: 18px; bottom: 18px; z-index: 9000; font-family: Inter, system-ui, sans-serif; }

.helpbot-launch {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .7rem 1.05rem; border-radius: 999px; border: 0;
  background: linear-gradient(140deg, #7C2BFF, #FF2D8E); color: #fff;
  font-size: .875rem; font-weight: 700; text-decoration: none; cursor: pointer;
  box-shadow: 0 10px 26px -10px rgba(124, 43, 255, .8);
  transition: transform .15s ease, box-shadow .15s ease;
}
.helpbot-launch:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(255, 45, 142, .85); }
#help-bot-root.is-open .helpbot-launch { opacity: 0; pointer-events: none; }

.helpbot-panel {
  position: absolute; right: 0; bottom: 0; width: min(370px, calc(100vw - 32px));
  max-height: min(560px, calc(100vh - 40px));
  display: none; flex-direction: column; overflow: hidden;
  background: #fff; color: #0F172A; border-radius: 18px;
  box-shadow: 0 24px 60px -18px rgba(15, 23, 42, .45);
}
.helpbot-panel.is-open { display: flex; }

.helpbot-head {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  padding: .85rem 1rem; background: linear-gradient(140deg, #7C2BFF, #FF2D8E); color: #fff;
}
.helpbot-title { font-size: .95rem; font-weight: 800; }
.helpbot-sub { font-size: .72rem; opacity: .85; margin-top: .1rem; }
.helpbot-head-actions { display: flex; gap: .25rem; }
.helpbot-icon {
  border: 0; background: rgba(255, 255, 255, .16); color: #fff;
  width: 28px; height: 28px; border-radius: 8px; cursor: pointer; font-size: .9rem; line-height: 1;
}
.helpbot-icon:hover { background: rgba(255, 255, 255, .28); }

.helpbot-log { flex: 1; overflow-y: auto; padding: .9rem; background: #FAF8FD; }
.helpbot-row { display: flex; margin-bottom: .5rem; }
.helpbot-row--bot { justify-content: flex-start; }
.helpbot-row--me { justify-content: flex-end; }
.helpbot-bubble {
  max-width: 88%; padding: .6rem .8rem; border-radius: 14px;
  font-size: .82rem; line-height: 1.5; background: #fff; border: 1px solid #EDE7F6;
}
.helpbot-row--me .helpbot-bubble { background: #7C2BFF; color: #fff; border-color: #7C2BFF; }

.helpbot-choices { display: flex; flex-wrap: wrap; gap: .4rem; margin: .35rem 0 .6rem; }
.helpbot-choice {
  border: 1px solid #E2D9F5; background: #fff; color: #4C1D95;
  padding: .45rem .7rem; border-radius: 999px; font-size: .78rem; font-weight: 600; cursor: pointer;
}
.helpbot-choice:hover { background: #7C2BFF; border-color: #7C2BFF; color: #fff; }

.helpbot-dots { display: inline-flex; gap: 3px; }
.helpbot-dots i { width: 5px; height: 5px; border-radius: 50%; background: #C4B5FD; animation: helpbot-dot 1s infinite; }
.helpbot-dots i:nth-child(2) { animation-delay: .15s; }
.helpbot-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes helpbot-dot { 0%, 60%, 100% { opacity: .3; } 30% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .helpbot-dots i { animation: none; opacity: .6; } }

.helpbot-form { background: #fff; border: 1px solid #EDE7F6; border-radius: 14px; padding: .75rem; margin-bottom: .6rem; }
.helpbot-note { font-size: .72rem; color: #B45309; background: #FFFBEB; border-radius: 8px; padding: .4rem .55rem; margin: 0 0 .55rem; }
.helpbot-label { display: block; font-size: .74rem; font-weight: 600; color: #475569; margin-bottom: .5rem; }
.helpbot-input {
  width: 100%; margin-top: .25rem; padding: .5rem .6rem;
  border: 1px solid #E2D9F5; border-radius: 10px; font-size: .82rem; font-family: inherit; color: #0F172A;
}
.helpbot-input:focus { outline: 2px solid #7C2BFF; outline-offset: 1px; }
.helpbot-error { font-size: .74rem; color: #B91C1C; margin: 0 0 .5rem; }
.helpbot-error.hidden { display: none; }
.helpbot-submit {
  width: 100%; border: 0; border-radius: 10px; padding: .55rem;
  background: linear-gradient(140deg, #7C2BFF, #FF2D8E); color: #fff;
  font-size: .8rem; font-weight: 700; cursor: pointer;
}
.helpbot-submit:disabled { opacity: .6; cursor: default; }

.helpbot-card { font-size: .78rem; }
.helpbot-card-no { font-weight: 800; margin-bottom: .4rem; }
.helpbot-card > div { display: flex; justify-content: space-between; gap: .75rem; padding: .18rem 0; }
.helpbot-card > div span { color: #64748B; }
.helpbot-card-link { display: inline-block; margin-top: .45rem; color: #7C2BFF; font-weight: 600; }

@media (max-width: 480px) {
  #help-bot-root { right: 12px; bottom: 12px; }
  .helpbot-panel { width: calc(100vw - 24px); max-height: calc(100vh - 24px); }
}

.helpbot-wa { text-align: center; }
.helpbot-wa-btn {
  display: inline-flex; align-items: center; gap: .4rem; width: 100%;
  justify-content: center; padding: .6rem; border-radius: 10px;
  background: #25D366; color: #fff; font-size: .82rem; font-weight: 700; text-decoration: none;
}
.helpbot-wa-btn:hover { background: #1EBE5A; }
.helpbot-wa-hint { margin: .45rem 0 0; font-size: .72rem; color: #64748B; }
