/* Vendo – hulp-chatbot. Eigen kleuren, werkt op de donkere site en in de web-app. */
.vendo-fab, .vendo-panel { --v-bg: #0e1424; --v-bg2: #151c30; --v-line: rgba(255,255,255,.12); --v-text: #eef1f8; --v-muted: #9aa3b5; --v-gold: #e9b85a; --v-gold2: #ffe0a0; --v-on: #1a1305; font-family: inherit; }
.vendo-fab { position: fixed; right: 18px; bottom: 18px; z-index: 9000; display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; padding: 0; border: 0; border-radius: 50%; cursor: pointer; color: var(--v-on); font-weight: 800; font-size: 15px;
  background: linear-gradient(135deg, var(--v-gold2), var(--v-gold) 60%, #d9a243); box-shadow: 0 10px 30px rgba(233,184,90,.35), 0 2px 8px rgba(0,0,0,.4); transition: transform .15s; }
.vendo-fab:hover { transform: translateY(-2px); }
.vendo-fab:focus-visible, .vendo-panel button:focus-visible, .vendo-panel textarea:focus-visible, .vendo-panel input:focus-visible { outline: 2px solid var(--v-gold2); outline-offset: 2px; }
.vendo-fab svg { flex: none; width: 22px; height: 22px; }
body:has(.tabbar) .vendo-fab { bottom: 80px; }
.vendo-panel { position: fixed; right: 18px; bottom: 76px; z-index: 9001; width: 380px; max-width: calc(100vw - 24px); height: 580px; max-height: calc(100dvh - 110px); display: none; flex-direction: column; overflow: hidden; border-radius: 18px; background: var(--v-bg); color: var(--v-text); border: 1px solid var(--v-line); box-shadow: 0 24px 70px rgba(0,0,0,.55); }
.vendo-panel.open { display: flex; }
body:has(.tabbar) .vendo-panel { bottom: 150px; max-height: calc(100dvh - 176px); }
.vendo-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--v-bg2); border-bottom: 1px solid var(--v-line); }
.vendo-av { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-weight: 900; color: var(--v-on); background: linear-gradient(135deg, var(--v-gold2), var(--v-gold)); }
.vendo-head b { display: block; font-size: 15px; }
.vendo-head span { display: block; font-size: 12px; color: var(--v-muted); }
.vendo-head .vendo-x { margin-left: auto; width: 34px; height: 34px; border: 0; border-radius: 10px; background: transparent; color: var(--v-muted); font-size: 22px; cursor: pointer; }
.vendo-head .vendo-x:hover { background: rgba(255,255,255,.08); color: var(--v-text); }
.vendo-msgs { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; scroll-behavior: smooth; }
.vendo-m { max-width: 88%; padding: 10px 13px; border-radius: 14px; font-size: 14.5px; line-height: 1.5; overflow-wrap: anywhere; }
.vendo-m p { margin: 0 0 8px; } .vendo-m p:last-child { margin-bottom: 0; }
.vendo-m ol, .vendo-m ul { margin: 0 0 8px; padding-left: 20px; } .vendo-m li { margin-bottom: 4px; }
.vendo-m a { color: var(--v-gold2); text-decoration: underline; }
.vendo-m.bot { align-self: flex-start; background: var(--v-bg2); border: 1px solid var(--v-line); border-bottom-left-radius: 4px; }
.vendo-m.me { align-self: flex-end; background: linear-gradient(135deg, var(--v-gold2), var(--v-gold)); color: var(--v-on); border-bottom-right-radius: 4px; }
.vendo-m.err { border-color: rgba(255,120,120,.5); }
.vendo-typing { align-self: flex-start; display: inline-flex; gap: 5px; padding: 12px 14px; background: var(--v-bg2); border: 1px solid var(--v-line); border-radius: 14px; border-bottom-left-radius: 4px; }
.vendo-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--v-muted); animation: vendoDot 1.1s infinite ease-in-out; }
.vendo-typing i:nth-child(2) { animation-delay: .15s; } .vendo-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes vendoDot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.vendo-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 14px 10px; }
.vendo-chips button, .vendo-act { border: 1px solid var(--v-line); background: transparent; color: var(--v-text); border-radius: 99px; padding: 7px 12px; font-size: 13px; cursor: pointer; }
.vendo-chips button:hover, .vendo-act:hover { border-color: var(--v-gold); }
.vendo-act.primary { background: linear-gradient(135deg, var(--v-gold2), var(--v-gold)); color: var(--v-on); border-color: transparent; font-weight: 700; }
.vendo-form { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--v-line); background: var(--v-bg2); }
.vendo-form textarea { flex: 1; resize: none; max-height: 110px; min-height: 40px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--v-line); background: var(--v-bg); color: var(--v-text); font: inherit; font-size: 14.5px; }
.vendo-form button { flex: none; width: 44px; border: 0; border-radius: 12px; cursor: pointer; background: linear-gradient(135deg, var(--v-gold2), var(--v-gold)); color: var(--v-on); font-weight: 800; }
.vendo-form button:disabled { opacity: .5; cursor: default; }
.vendo-foot { padding: 8px 14px 10px; font-size: 11.5px; line-height: 1.4; color: var(--v-muted); background: var(--v-bg2); }
.vendo-foot button { border: 0; background: none; padding: 0; color: var(--v-gold2); text-decoration: underline; cursor: pointer; font: inherit; }
.vendo-contact { padding: 14px; display: none; flex-direction: column; gap: 10px; overflow-y: auto; flex: 1; }
.vendo-panel.contact .vendo-contact { display: flex; }
.vendo-panel.contact .vendo-msgs, .vendo-panel.contact .vendo-chips, .vendo-panel.contact .vendo-form { display: none; }
.vendo-contact label { font-size: 12.5px; color: var(--v-muted); display: grid; gap: 4px; }
.vendo-contact input, .vendo-contact textarea { padding: 10px 12px; border-radius: 10px; border: 1px solid var(--v-line); background: var(--v-bg2); color: var(--v-text); font: inherit; font-size: 14.5px; }
.vendo-contact textarea { min-height: 110px; resize: vertical; }
.vendo-contact .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.vendo-contact .row { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 520px) {
  .vendo-fab { right: 12px; bottom: 12px; }
  .vendo-panel { right: 0; left: 0; bottom: 0; width: 100%; max-width: none; height: min(88dvh, 640px); border-radius: 18px 18px 0 0; }
  body:has(.tabbar) .vendo-panel { bottom: 0; max-height: 92dvh; height: 88dvh; }
}
@media (prefers-reduced-motion: reduce) { .vendo-typing i { animation: none; } .vendo-msgs { scroll-behavior: auto; } .vendo-fab { transition: none; } }
