/* Roadie — WeLoveTrucking site assistant */
.wlt-chat, .wlt-chat * { box-sizing: border-box; }
.wlt-chat h3, .wlt-chat p, .wlt-chat ul, .wlt-chat li, .wlt-chat div, .wlt-chat form, .wlt-chat label { margin: 0; text-align: left; letter-spacing: normal; text-transform: none; }
.wlt-chat .wlt-panel { padding: 0; }
.wlt-chat {
  --c-bg: #FFFFFF; --c-panel: #EFEBE3; --c-line: #DCD5C7; --c-text: #12110F; --c-dim: #6B655A;
  --c-yellow: #12110F; --c-orange: #F2A93B; --c-red: #B42318;
  position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 500;
  font-family: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 16px; line-height: 1.45; color: var(--c-text);
}
html.welcome-active .wlt-chat, .no-js .wlt-chat { display: none; }

.wlt-launch {
  display: flex; align-items: center; gap: .6rem; cursor: pointer;
  background: var(--c-orange); color: #12110F; border: 0; border-radius: 999px;
  padding: .8rem 1.15rem .8rem .95rem; font: 700 1rem/1 'Archivo', Arial, sans-serif;
  letter-spacing: 0;
  box-shadow: 0 16px 34px -12px rgba(242,169,59,.65), 0 0 0 1px rgba(0,0,0,.06);
  transition: transform .18s ease, box-shadow .18s ease;
}
.wlt-launch:hover { transform: translateY(-2px); background: #F7C46E; }
.wlt-launch:focus-visible, .wlt-chat button:focus-visible, .wlt-chat input:focus-visible,
.wlt-chat textarea:focus-visible, .wlt-chat a:focus-visible { outline: 3px solid #F2A93B; outline-offset: 2px; }
.wlt-launch svg { width: 22px; height: 22px; flex: none; }
.wlt-chat.is-open .wlt-launch { display: none; }

.wlt-panel {
  display: none; flex-direction: column; width: min(392px, calc(100vw - 1.4rem));
  height: min(620px, calc(100vh - 2.2rem)); height: min(620px, calc(100dvh - 2.2rem));
  background: var(--c-bg); border: 1px solid var(--c-line); border-radius: 14px; overflow: hidden;
  box-shadow: 0 30px 70px -20px rgba(18,17,15,.55), 0 0 0 1px rgba(18,17,15,.05);
}
.wlt-chat.is-open .wlt-panel { display: flex; animation: wlt-pop .22s ease-out; }
@keyframes wlt-pop { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }

.wlt-head {
  display: flex; align-items: center; gap: .7rem; padding: .8rem .9rem;
  background: #12110F; color: #fff; border-bottom: 3px solid #F2A93B;
}
.wlt-avatar {
  width: 38px; height: 38px; border-radius: 12px; background: #F2A93B; flex: none;
  display: grid; place-items: center;
}
.wlt-avatar svg { width: 20px; height: 20px; }
.wlt-title { flex: 1; min-width: 0; }
.wlt-title strong { display: block; font: 800 1.15rem/1.1 'Archivo', Arial, sans-serif; }
.wlt-title span { display: block; font-size: .8rem; color: #A8A296; }
.wlt-x { background: none; border: 0; color: #fff; cursor: pointer; width: 36px; height: 36px; border-radius: 8px; font-size: 1.4rem; line-height: 1; }
.wlt-x:hover { background: rgba(255,255,255,.15); color: #fff; }

.wlt-log { flex: 1; overflow-y: auto; padding: 1rem .9rem .4rem; display: flex; flex-direction: column; gap: .65rem; scroll-behavior: smooth; overscroll-behavior: contain; }
.wlt-msg { max-width: 88%; padding: .6rem .8rem; border-radius: 12px; font-size: .95rem; word-wrap: break-word; overflow-wrap: anywhere; }
.wlt-msg p + p, .wlt-msg p + ul, .wlt-msg ul + p { margin-top: .45rem; }
.wlt-msg ul { padding-left: 1.1rem; }
.wlt-msg a { color: var(--c-yellow); font-weight: 600; text-decoration: underline; }
.wlt-bot { background: var(--c-panel); border: 1px solid var(--c-line); border-bottom-left-radius: 3px; align-self: flex-start; }
.wlt-me { background: var(--c-yellow); color: #fff; border-bottom-right-radius: 3px; align-self: flex-end; font-weight: 500; }
.wlt-me a { color: #fff; }
.wlt-err { border-color: var(--c-red); }

.wlt-typing { display: inline-flex; gap: 4px; padding: .2rem 0; }
.wlt-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--c-dim); animation: wlt-b 1s infinite ease-in-out; }
.wlt-typing i:nth-child(2) { animation-delay: .15s; } .wlt-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes wlt-b { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }

.wlt-chips { display: flex; flex-wrap: wrap; gap: .4rem; padding: 0 .9rem .6rem; }
.wlt-chip { background: transparent; color: var(--c-text); border: 1px solid var(--c-line); border-radius: 999px; padding: .38rem .75rem; font: inherit; font-size: .85rem; cursor: pointer; }
.wlt-chip:hover { border-color: var(--c-orange); color: var(--c-text); background: #FBEBD0; }

.wlt-cta { display: flex; flex-wrap: wrap; gap: .45rem; align-self: flex-start; max-width: 100%; }
.wlt-btn {
  display: inline-block; cursor: pointer; text-decoration: none; text-align: center;
  background: var(--c-orange); color: #12110F !important; border: 0; border-radius: 999px; padding: .6rem 1rem;
  font: 700 .92rem/1.1 'Archivo', Arial, sans-serif;
}
.wlt-btn:hover { filter: brightness(1.08); }
.wlt-btn.alt { background: transparent; color: var(--c-text) !important; border: 1px solid var(--c-line); }
.wlt-btn[disabled] { opacity: .6; cursor: progress; }

.wlt-form { padding: .2rem .9rem .8rem; display: grid; gap: .5rem; border-top: 1px solid var(--c-line); background: var(--c-panel); max-height: 62%; overflow-y: auto; }
.wlt-form[hidden] { display: none; }
.wlt-form h3 { font: 800 1.05rem/1.2 'Archivo', Arial, sans-serif; margin-top: .7rem; }
.wlt-form p.note { font-size: .78rem; color: var(--c-dim); }
.wlt-form label { display: block; font-size: .78rem; color: var(--c-dim); margin-bottom: .15rem; }
.wlt-form input, .wlt-form textarea {
  width: 100%; background: #fff; color: var(--c-text); border: 1px solid var(--c-line); border-radius: 10px;
  padding: .55rem .65rem; font: inherit; font-size: 16px; /* 16px stops iOS zoom */
}
.wlt-form textarea { min-height: 54px; resize: vertical; }
.wlt-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.wlt-form .err { color: #B42318; font-size: .8rem; min-height: 1em; }
.wlt-form .acts { display: flex; gap: .5rem; }
.wlt-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.wlt-foot { display: flex; gap: .5rem; padding: .65rem .9rem; border-top: 1px solid var(--c-line); background: var(--c-bg); }
.wlt-foot input { flex: 1; min-width: 0; background: var(--c-panel); color: var(--c-text); border: 1px solid var(--c-line); border-radius: 10px; padding: .65rem .75rem; font: inherit; font-size: 16px; }
.wlt-send { background: var(--c-orange); border: 0; border-radius: 10px; width: 46px; cursor: pointer; display: grid; place-items: center; }
.wlt-send svg { width: 20px; height: 20px; }
.wlt-send[disabled] { opacity: .5; cursor: not-allowed; }
.wlt-note { padding: 0 .9rem .6rem; font-size: .74rem; color: #6B655A; background: var(--c-bg); }
.wlt-note a { color: #3A362E; }

@media (max-width: 520px) {
  .wlt-chat { right: .6rem; bottom: .6rem; }
  .wlt-chat.is-open { right: 0; bottom: 0; left: 0; }
  .wlt-chat.is-open .wlt-panel { width: 100vw; height: 100vh; height: 100dvh; max-height: none; border-radius: 0; border: 0; }
  .wlt-launch span { display: none; } .wlt-launch { padding: .85rem; }
}
@media (prefers-reduced-motion: reduce) {
  .wlt-chat *, .wlt-chat *::before { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
.wlt-avatar { color: #12110F; }
/* v13: keep the launcher clear of phone notches / home bars */
.wlt-chat:not(.is-open) { right: max(1.1rem, env(safe-area-inset-right)); bottom: max(1.1rem, env(safe-area-inset-bottom)); }
@media (max-width: 520px) { .wlt-chat:not(.is-open) { right: max(.6rem, env(safe-area-inset-right)); bottom: max(.6rem, env(safe-area-inset-bottom)); } }
