/* Ask West One — public pre-sales widget.
   Namespaced under .wo-ab* so it can't collide with the westone theme. */

.wo-ab-btn {
  position: fixed; right: 22px; bottom: 22px; z-index: 9998;
  display: flex; align-items: center; gap: 9px;
  padding: 12px 18px; border: 0; border-radius: 30px;
  background: #0f766e; color: #fff; cursor: pointer;
  font: 600 14px/1.2 system-ui, -apple-system, "Segoe UI", sans-serif;
  box-shadow: 0 6px 22px rgba(15, 118, 110, .35);
  transition: transform .15s ease, box-shadow .15s ease;
}
.wo-ab-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(15, 118, 110, .45); }
.wo-ab-btn[hidden] { display: none; }

.wo-ab-panel {
  position: fixed; right: 22px; bottom: 22px; z-index: 9999;
  width: 380px; max-width: calc(100vw - 32px);
  height: 540px; max-height: calc(100vh - 48px);
  display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border: 1px solid #e2e8f0; border-radius: 14px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, .22);
  font: 15px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; color: #0f172a;
}
.wo-ab-panel[hidden] { display: none; }

.wo-ab-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 16px; background: #0f766e; color: #fff; flex: 0 0 auto;
}
.wo-ab-head strong { font-size: 15px; font-weight: 700; }
.wo-ab-head small { display: block; font-size: 11.5px; opacity: .85; font-weight: 400; }
.wo-ab-x { background: 0; border: 0; color: #fff; font-size: 22px; line-height: 1; cursor: pointer; opacity: .8; }
.wo-ab-x:hover { opacity: 1; }

.wo-ab-log { flex: 1 1 auto; overflow-y: auto; padding: 16px; background: #f8fafc; }
.wo-ab-msg { margin-bottom: 12px; display: flex; }
.wo-ab-msg > div {
  max-width: 84%; padding: 9px 13px; border-radius: 13px;
  white-space: pre-wrap; word-wrap: break-word;
}
.wo-ab-msg.bot  > div { background: #fff; border: 1px solid #e2e8f0; border-bottom-left-radius: 4px; }
.wo-ab-msg.you  { justify-content: flex-end; }
.wo-ab-msg.you  > div { background: #0f766e; color: #fff; border-bottom-right-radius: 4px; }
.wo-ab-msg.err  > div { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }

.wo-ab-dots > div::after {
  content: "…"; display: inline-block; width: 1.2em; text-align: left;
  animation: wo-ab-e 1.2s steps(4, end) infinite;
}
@keyframes wo-ab-e { 0% { content: "" } 25% { content: "." } 50% { content: ".." } 75% { content: "..." } }

.wo-ab-foot { flex: 0 0 auto; border-top: 1px solid #e2e8f0; background: #fff; padding: 10px 12px; }
.wo-ab-row { display: flex; gap: 8px; align-items: flex-end; }
.wo-ab-row textarea {
  flex: 1 1 auto; resize: none; border: 1px solid #cbd5e1; border-radius: 9px;
  padding: 9px 11px; font: inherit; font-size: 14.5px; max-height: 110px; min-height: 40px;
}
.wo-ab-row textarea:focus { outline: 0; border-color: #0f766e; box-shadow: 0 0 0 3px rgba(15, 118, 110, .12); }
.wo-ab-send {
  flex: 0 0 auto; border: 0; border-radius: 9px; background: #0f766e; color: #fff;
  padding: 10px 15px; font: 600 14px/1 system-ui, sans-serif; cursor: pointer;
}
.wo-ab-send:disabled { background: #94a3b8; cursor: not-allowed; }

.wo-ab-tools { display: flex; justify-content: space-between; align-items: center; margin-top: 7px; }
.wo-ab-link { background: 0; border: 0; padding: 0; color: #0f766e; font-size: 12.5px; cursor: pointer; text-decoration: underline; }
.wo-ab-note { font-size: 11px; color: #94a3b8; }

.wo-ab-lead { display: grid; gap: 7px; margin-top: 9px; }
.wo-ab-lead[hidden] { display: none; }
.wo-ab-lead input {
  border: 1px solid #cbd5e1; border-radius: 8px; padding: 8px 10px; font: inherit; font-size: 14px;
}
.wo-ab-lead input:focus { outline: 0; border-color: #0f766e; }

@media (max-width: 480px) {
  .wo-ab-panel { right: 8px; left: 8px; bottom: 8px; width: auto; height: calc(100vh - 24px); }
}
@media (prefers-reduced-motion: reduce) {
  .wo-ab-btn { transition: none; }
  .wo-ab-dots > div::after { animation: none; content: "…"; }
}
