/* Quill the hedgehog chat widget */
.qb-root { position: fixed; right: 16px; bottom: 16px; z-index: 90; font-family: var(--font, "Roboto", system-ui, sans-serif); font-size: 15px; line-height: 1.45; }
.qb-root *, .qb-root *::before, .qb-root *::after { box-sizing: border-box; }
.qb-root.qb-away { display: none; }
.qb-btn { width: 60px; height: 60px; padding: 0; border: 2px solid rgba(255, 255, 255, 0.85); border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at 30% 25%, #E3253E, #8F1727 85%); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45), 0 0 0 0 rgba(227, 37, 62, 0.5); touch-action: manipulation; -webkit-tap-highlight-color: transparent; transition: transform 0.15s ease, box-shadow 0.2s ease; }
.qb-btn:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 10px 22px rgba(0, 0, 0, 0.5), 0 0 0 5px rgba(227, 37, 62, 0.25); }
.qb-btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.qb-fab { position: relative; width: 60px; height: 60px; }
.qb-open .qb-fab { display: none; }
.qb-panel { position: absolute; right: 0; bottom: 0; width: 360px; max-width: calc(100vw - 24px); height: min(560px, calc(100vh - 32px)); display: flex; flex-direction: column; background: #0A0A0A; color: #fff; border: 1px solid rgba(227, 37, 62, 0.55); border-radius: 14px; overflow: hidden; box-shadow: 0 18px 48px rgba(0, 0, 0, 0.6); }
.qb-panel[hidden] { display: none; }
.qb-head { display: flex; align-items: center; gap: 0.6rem; padding: 0.6rem 0.75rem; background: linear-gradient(90deg, #8F1727, #E3253E); }
.qb-head-av { width: 38px; height: 38px; border-radius: 50%; background: rgba(0, 0, 0, 0.25); display: flex; align-items: center; justify-content: center; flex: none; }
.qb-head-t { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.qb-head-t strong { font-size: 1rem; }
.qb-head-t span { font-size: 0.75rem; opacity: 0.85; }
.qb-x { width: 36px; height: 36px; border: 0; background: transparent; color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; border-radius: 8px; }
.qb-x:hover { background: rgba(0, 0, 0, 0.25); }
.qb-log { flex: 1; overflow-y: auto; padding: 0.8rem 0.75rem; display: flex; flex-direction: column; gap: 0.6rem; background: #0f0f10; overscroll-behavior: contain; }
.qb-row { display: flex; gap: 0.45rem; align-items: flex-end; max-width: 100%; }
.qb-user { justify-content: flex-end; }
.qb-av { width: 28px; height: 28px; flex: none; border-radius: 50%; background: #1A1A1A; display: flex; align-items: center; justify-content: center; }
.qb-bub { max-width: 86%; padding: 0.55rem 0.7rem; border-radius: 14px; background: #1A1A1A; color: #f1f1f1; overflow-wrap: anywhere; font-size: 0.88rem; }
.qb-bot .qb-bub { border-bottom-left-radius: 4px; }
.qb-user .qb-bub { background: #E3253E; color: #fff; border-bottom-right-radius: 4px; }
.qb-links { display: flex; flex-direction: column; gap: 0.35rem; margin-top: 0.55rem; }
.qb-link { display: block; padding: 0.38rem 0.6rem; border: 1px solid rgba(227, 37, 62, 0.7); border-radius: 8px; color: #fff; background: rgba(227, 37, 62, 0.12); text-decoration: none; font-size: 0.82rem; font-weight: 700; }
.qb-link:hover, .qb-link:focus-visible { background: #E3253E; outline: none; }
.qb-chips { display: flex; flex-wrap: wrap; gap: 0.35rem; padding: 0.5rem 0.6rem 0.2rem; background: #0f0f10; max-height: 5.6rem; overflow-y: auto; }
.qb-chip { padding: 0.32rem 0.65rem; border: 1px solid rgba(255, 255, 255, 0.28); border-radius: 999px; background: transparent; color: #fff; font: inherit; font-size: 0.78rem; cursor: pointer; touch-action: manipulation; }
.qb-chip:hover, .qb-chip:focus-visible { border-color: #E3253E; background: rgba(227, 37, 62, 0.2); outline: none; }
.qb-form { display: flex; gap: 0.4rem; padding: 0.5rem 0.6rem; background: #0f0f10; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.qb-input { flex: 1; min-width: 0; padding: 0.55rem 0.7rem; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.2); background: #1A1A1A; color: #fff; font: inherit; font-size: 16px; }
.qb-input::placeholder { color: #9a9ca0; }
.qb-input:focus { outline: 2px solid #E3253E; outline-offset: 0; }
.qb-send { padding: 0 0.9rem; border: 0; border-radius: 10px; background: #E3253E; color: #fff; font: inherit; font-weight: 700; font-size: 0.85rem; cursor: pointer; }
.qb-send:hover { background: #B51D31; }
.qb-disc { margin: 0; padding: 0.35rem 0.7rem 0.55rem; font-size: 0.68rem; color: #8d9096; background: #0f0f10; text-align: center; }
.qb-typing .qb-bub { display: flex; gap: 4px; padding: 0.7rem 0.8rem; }
.qb-dot { width: 6px; height: 6px; border-radius: 50%; background: #9a9ca0; animation: qb-bounce 1s infinite ease-in-out; }
.qb-dot:nth-child(2) { animation-delay: 0.15s; }
.qb-dot:nth-child(3) { animation-delay: 0.3s; }
@keyframes qb-bounce { 0%, 80%, 100% { transform: translateY(0); opacity: 0.5; } 40% { transform: translateY(-4px); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .qb-btn, .qb-dot { transition: none; animation: none; } }
@media (max-width: 520px) {
  .qb-root { right: 10px; bottom: 10px; }
  .qb-btn { width: 52px; height: 52px; }
  .qb-btn svg { width: 38px; height: 38px; }
  .qb-open { right: 8px; left: 8px; bottom: 8px; }
  .qb-panel { position: static; width: 100%; max-width: none; height: min(76vh, 560px); }
}

/* Hide controls */
.qb-hide { padding: 0.3rem 0.65rem; margin-right: 0.15rem; border: 1px solid rgba(255, 255, 255, 0.75); border-radius: 999px; background: transparent; color: #fff; font: inherit; font-size: 0.78rem; font-weight: 700; cursor: pointer; touch-action: manipulation; }
.qb-hide-link { display: inline; padding: 0; border: 0; background: none; color: #c9cbd0; font: inherit; font-size: inherit; text-decoration: underline; cursor: pointer; }
.qb-hide-link:hover, .qb-hide-link:focus-visible { color: #fff; outline: none; }
.qb-hide:hover, .qb-hide:focus-visible { background: rgba(0, 0, 0, 0.3); outline: none; }
.qb-restore { opacity: 0.8; }
@media (max-width: 520px) { .qb-fab { width: 52px; height: 52px; } }

/* Faded button shown after the bot is hidden: same size and spot as the normal button */
.qb-ghost .qb-btn { opacity: 0.4; transition: opacity 0.2s ease, transform 0.15s ease; }
.qb-ghost .qb-btn:hover, .qb-ghost .qb-btn:focus-visible, .qb-ghost .qb-btn:active { opacity: 1; }
.qb-ghost.qb-away { display: none; }
@media (prefers-reduced-motion: reduce) { .qb-ghost .qb-btn { transition: none; } }
