/* quote-bot.css: the "Quick quote" assistant */
.qb { position: fixed; right: 24px; bottom: 96px; z-index: 70; width: min(380px, calc(100vw - 32px)); max-height: min(620px, calc(100svh - 120px)); display: flex; flex-direction: column; border-radius: 22px; overflow: hidden; color: #0b1f3a; background: #fff; border: 1px solid rgba(21, 67, 120, 0.16); box-shadow: 0 40px 80px -24px rgba(7, 26, 51, 0.6); transform: translateY(16px) scale(0.97); opacity: 0; transform-origin: bottom right; transition: transform 300ms cubic-bezier(.2,.8,.2,1), opacity 250ms; font-family: inherit; }
.qb[hidden] { display: none; }
.qb.is-on { transform: none; opacity: 1; }
.qb__head { display: flex; align-items: center; gap: 10px; padding: 14px 14px 12px 10px; color: #fff; background: linear-gradient(150deg, #071a33, #154378); }
.qb__who { flex: 1; min-width: 0; line-height: 1.25; }
.qb__who b { display: block; font-size: 1rem; color: #fff; }
.qb__who small { font-size: 0.78rem; color: rgba(255, 255, 255, 0.78); }
.qb__back, .qb__x { width: 34px; height: 34px; flex: none; border: 0; border-radius: 50%; cursor: pointer; font-size: 1.5rem; line-height: 1; color: #fff; background: rgba(255, 255, 255, 0.12); }
.qb__back:hover, .qb__x:hover { background: rgba(255, 255, 255, 0.24); }
.qb__prog { height: 3px; background: #e6ecf5; }
.qb__prog i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #154378, #3D6BA0); transition: width 350ms ease; }
.qb__body { flex: 1; overflow-y: auto; padding: 18px 16px 18px; display: flex; flex-direction: column; gap: 12px; background: #f6f8fc; overscroll-behavior: contain; }
.qb__msg { max-width: 88%; padding: 11px 15px; border-radius: 16px; font-size: 0.94rem; line-height: 1.5; animation: qbIn 300ms ease both; }
.qb__msg--bot { align-self: flex-start; background: #fff; border: 1px solid #e3e9f3; border-bottom-left-radius: 5px; }
.qb__msg--you { align-self: flex-end; color: #fff; background: #154378; border-bottom-right-radius: 5px; }
@keyframes qbIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.qb__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.qb__chip { padding: 9px 15px; border-radius: 999px; cursor: pointer; font: inherit; font-size: 0.9rem; font-weight: 600; color: #154378; background: #fff; border: 1.5px solid #c9d6ea; transition: background 150ms, border-color 150ms, transform 150ms; }
.qb__chip:hover { border-color: #154378; transform: translateY(-1px); }
.qb__chip.is-on { color: #fff; background: #154378; border-color: #154378; }
.qb__actions { display: flex; align-items: center; gap: 12px; margin-top: 2px; }
.qb__actions--col { flex-direction: column; align-items: stretch; }
.qb__btn { display: inline-flex; justify-content: center; align-items: center; padding: 12px 22px; border: 0; border-radius: 999px; cursor: pointer; font: inherit; font-weight: 700; font-size: 0.95rem; text-decoration: none; color: #fff; background: linear-gradient(135deg, #154378, #3D6BA0); box-shadow: 0 12px 22px -14px #154378; transition: transform 150ms, opacity 150ms; }
.qb__btn:hover:not(:disabled) { transform: translateY(-1px); }
.qb__btn:disabled { opacity: 0.45; cursor: not-allowed; }
.qb__btn--full { width: 100%; }
.qb__btn--wa { background: #25D366; box-shadow: 0 12px 22px -14px #25D366; }
.qb__btn--ghost { color: #154378; background: #fff; border: 1.5px solid #c9d6ea; box-shadow: none; }
.qb__skip { border: 0; background: none; cursor: pointer; font: inherit; font-weight: 600; font-size: 0.9rem; color: #5b6b85; padding: 8px 6px; text-decoration: underline; text-underline-offset: 3px; }
.qb__ta, .qb__form input:not(.qb__hp) { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1.5px solid #c9d6ea; background: #fff; color: #0b1f3a; font: inherit; font-size: 0.95rem; box-sizing: border-box; }
.qb__ta { resize: vertical; min-height: 78px; }
.qb__ta:focus-visible, .qb__form input:focus-visible, .qb__chip:focus-visible, .qb__btn:focus-visible, .qb__skip:focus-visible { outline: 3px solid rgba(61, 107, 160, 0.55); outline-offset: 1px; }
.qb__form { display: grid; gap: 11px; }
.qb__form label { display: grid; gap: 5px; font-size: 0.8rem; font-weight: 700; color: #3a4b66; }
.qb__lab { margin-top: 2px; font-size: 0.8rem; font-weight: 700; color: #3a4b66; }
.qb__form .qb__chip { padding: 7px 13px; font-size: 0.85rem; }
.qb__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.qb__err { margin: 0; min-height: 1.1em; font-size: 0.86rem; color: #b42318; }
.qb__fine { text-align: center; color: #6b7a93; }
.qb__recap { display: grid; gap: 6px; padding: 12px 14px; border-radius: 14px; background: #fff; border: 1px dashed #b8c8e0; font-size: 0.86rem; }
.qb__recap div { display: flex; justify-content: space-between; gap: 12px; }
.qb__recap span { color: #6b7a93; }
.qb__recap b { text-align: right; color: #0b1f3a; }

/* launcher pill (bottom-left) */
.qb-launch { position: fixed; left: 24px; bottom: 24px; z-index: 59; display: inline-flex; align-items: center; gap: 9px; padding: 12px 20px 12px 16px; border: 0; border-radius: 999px; cursor: pointer; font: inherit; font-weight: 700; font-size: 0.95rem; color: #fff; background: linear-gradient(135deg, #154378, #3D6BA0); box-shadow: 0 16px 32px -14px rgba(21, 67, 120, 0.8); opacity: 0; transform: translateY(20px); pointer-events: none; transition: opacity 300ms, transform 400ms cubic-bezier(.2,.8,.2,1), bottom 450ms; }
.qb-launch.is-on { opacity: 1; transform: none; pointer-events: auto; }
.qb-launch:hover { transform: translateY(-2px); }
.qb-launch:focus-visible { outline: 3px solid rgba(61, 107, 160, 0.6); outline-offset: 3px; }
body.has-sbar .qb-launch { bottom: 92px; }
body.qb-open .qb-launch { opacity: 0; pointer-events: none; }

@media (max-width: 640px) {
  .qb { right: 8px; left: 8px; bottom: 8px; width: auto; max-height: calc(100svh - 16px); border-radius: 22px; }
  .qb-launch { left: 14px; bottom: 14px; padding: 11px 16px 11px 13px; }
  body.has-sbar .qb-launch { bottom: 84px; }
}
@media (prefers-reduced-motion: reduce) { .qb, .qb__msg, .qb-launch, .qb__prog i { transition: none; animation: none; } }
