/* LMH Assistant v1 — premium floating AI sales assistant */
.lmh-bot-root{--bot-bg:#08121f;--bot-panel:#0b1828;--bot-panel-2:#0e1d2f;--bot-line:rgba(255,255,255,.10);--bot-text:#f6f3eb;--bot-muted:#98aabd;--bot-gold:#d5b56a;--bot-gold-2:#f1d99a;--bot-blue:#43cfff;position:relative;z-index:9999}
.lmh-bot-launcher{position:fixed;right:24px;bottom:24px;width:62px;height:62px;border-radius:22px;border:1px solid rgba(213,181,106,.34);background:linear-gradient(145deg,rgba(18,33,52,.98),rgba(6,14,25,.98));box-shadow:0 22px 60px rgba(0,0,0,.42),0 0 0 1px rgba(255,255,255,.03) inset;display:grid;place-items:center;cursor:pointer;transition:.25s ease;z-index:10002;color:var(--bot-gold-2);font-family:Georgia,"Times New Roman",serif;font-size:17px;font-weight:700;letter-spacing:.02em}
.lmh-bot-launcher:hover{transform:translateY(-3px);border-color:rgba(213,181,106,.62);box-shadow:0 28px 70px rgba(0,0,0,.5),0 0 28px rgba(213,181,106,.12)}
.lmh-bot-launcher::after{content:"";position:absolute;inset:7px;border:1px solid rgba(213,181,106,.16);border-radius:16px;pointer-events:none}
.lmh-bot-launcher .lmh-online{position:absolute;right:2px;top:2px;width:12px;height:12px;background:#55d69a;border:2px solid #07111f;border-radius:50%;box-shadow:0 0 16px rgba(85,214,154,.65)}
.lmh-bot-teaser{position:fixed;right:24px;bottom:96px;max-width:288px;padding:13px 16px;border:1px solid rgba(213,181,106,.18);border-radius:16px;background:rgba(9,20,34,.94);backdrop-filter:blur(18px);box-shadow:0 18px 48px rgba(0,0,0,.34);color:#dce6ef;font-size:12px;line-height:1.5;z-index:10001;opacity:0;transform:translateY(8px);pointer-events:none;transition:.28s ease}
.lmh-bot-teaser.show{opacity:1;transform:none;pointer-events:auto}
.lmh-bot-teaser strong{display:block;color:#fff;font-size:12px;margin-bottom:2px}
.lmh-bot-panel{position:fixed;right:24px;bottom:98px;width:min(390px,calc(100vw - 28px));height:min(650px,calc(100vh - 130px));border:1px solid rgba(213,181,106,.20);border-radius:28px;background:linear-gradient(180deg,rgba(12,26,43,.985),rgba(6,15,26,.99));box-shadow:0 36px 100px rgba(0,0,0,.55);overflow:hidden;display:flex;flex-direction:column;z-index:10003;opacity:0;transform:translateY(18px) scale(.98);pointer-events:none;transition:.25s ease;transform-origin:bottom right}
.lmh-bot-panel.open{opacity:1;transform:none;pointer-events:auto}
.lmh-bot-header{display:flex;align-items:center;gap:12px;padding:16px 16px 15px;border-bottom:1px solid var(--bot-line);background:linear-gradient(180deg,rgba(255,255,255,.025),transparent)}
.lmh-bot-avatar{width:42px;height:42px;flex:0 0 42px;border-radius:14px;display:grid;place-items:center;border:1px solid rgba(213,181,106,.28);background:rgba(213,181,106,.06);color:var(--bot-gold-2);font-family:Georgia,"Times New Roman",serif;font-weight:700;font-size:13px;box-shadow:0 8px 24px rgba(0,0,0,.22)}
.lmh-bot-headcopy{min-width:0;flex:1;display:flex;flex-direction:column}
.lmh-bot-headcopy strong{font-size:14px;letter-spacing:-.01em;color:#fff}
.lmh-bot-headcopy span{font-size:10px;color:var(--bot-muted);display:flex;align-items:center;gap:6px}
.lmh-bot-headcopy span::before{content:"";width:6px;height:6px;border-radius:50%;background:#55d69a;box-shadow:0 0 9px rgba(85,214,154,.7)}
.lmh-bot-head-actions{display:flex;align-items:center;gap:5px}
.lmh-bot-icon-btn{width:34px;height:34px;border:0;border-radius:11px;background:transparent;color:#8fa4b8;cursor:pointer;font-size:18px;display:grid;place-items:center;transition:.2s ease}
.lmh-bot-icon-btn:hover{background:rgba(255,255,255,.05);color:#fff}
.lmh-bot-messages{flex:1;overflow-y:auto;padding:20px 16px 14px;scrollbar-width:thin;scrollbar-color:#26384b transparent}
.lmh-bot-msg{display:flex;margin:0 0 12px;animation:lmhBotIn .28s ease both}
.lmh-bot-msg.user{justify-content:flex-end}
.lmh-bot-bubble{max-width:84%;padding:11px 13px;border-radius:17px;font-size:12.5px;line-height:1.58;white-space:pre-wrap;overflow-wrap:anywhere}
.lmh-bot-msg.assistant .lmh-bot-bubble{background:rgba(255,255,255,.045);border:1px solid rgba(255,255,255,.07);color:#dce7f1;border-bottom-left-radius:6px}
.lmh-bot-msg.user .lmh-bot-bubble{background:linear-gradient(135deg,#2b72db,#3554b9);color:white;border-bottom-right-radius:6px;box-shadow:0 10px 26px rgba(43,114,219,.18)}
.lmh-bot-msg.assistant .lmh-bot-bubble strong{color:#fff}
.lmh-bot-quick{display:flex;gap:7px;flex-wrap:wrap;margin:5px 0 15px}
.lmh-bot-chip{border:1px solid rgba(213,181,106,.22);background:rgba(213,181,106,.055);color:#e5dcc8;border-radius:999px;padding:8px 11px;font-size:11px;cursor:pointer;transition:.2s ease}
.lmh-bot-chip:hover{border-color:rgba(213,181,106,.52);background:rgba(213,181,106,.11);color:#fff;transform:translateY(-1px)}
.lmh-bot-chip.primary{background:linear-gradient(135deg,rgba(213,181,106,.20),rgba(213,181,106,.08));color:#f3e4bd;border-color:rgba(213,181,106,.36)}
.lmh-bot-typing{display:flex;align-items:center;gap:5px;width:max-content;padding:12px 14px;border-radius:17px;border-bottom-left-radius:6px;background:rgba(255,255,255,.045);border:1px solid rgba(255,255,255,.07);margin-bottom:12px}
.lmh-bot-typing i{width:5px;height:5px;border-radius:50%;background:#8398ad;animation:lmhDot 1.1s infinite ease-in-out}.lmh-bot-typing i:nth-child(2){animation-delay:.14s}.lmh-bot-typing i:nth-child(3){animation-delay:.28s}
.lmh-bot-compose{padding:11px 12px 12px;border-top:1px solid var(--bot-line);background:rgba(5,13,23,.72)}
.lmh-bot-input-wrap{display:flex;align-items:flex-end;gap:8px;border:1px solid rgba(255,255,255,.10);border-radius:17px;padding:8px;background:rgba(255,255,255,.025);transition:.2s ease}
.lmh-bot-input-wrap:focus-within{border-color:rgba(213,181,106,.35);box-shadow:0 0 0 3px rgba(213,181,106,.04)}
.lmh-bot-input{flex:1;resize:none;border:0;outline:0;background:transparent;color:#eef4fa;min-height:34px;max-height:96px;padding:7px 6px;font:12.5px/1.45 Inter,ui-sans-serif,system-ui,sans-serif}
.lmh-bot-input::placeholder{color:#667b8f}
.lmh-bot-send{width:36px;height:36px;flex:0 0 36px;border:0;border-radius:12px;background:linear-gradient(135deg,#d5b56a,#a8843e);color:#07111f;font-weight:900;cursor:pointer;display:grid;place-items:center;transition:.2s ease}
.lmh-bot-send:hover{transform:translateY(-1px);filter:brightness(1.06)}
.lmh-bot-send:disabled{opacity:.45;cursor:not-allowed;transform:none}
.lmh-bot-footerline{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 2px 0;color:#5f7488;font-size:9px}
.lmh-bot-whatsapp{border:0;background:transparent;color:#8fb7a4;padding:0;cursor:pointer;font-size:9px}
.lmh-bot-whatsapp:hover{color:#74d6a0}
.lmh-bot-status{padding:8px 12px;margin:0 0 11px;border-radius:12px;font-size:10.5px;line-height:1.45;border:1px solid rgba(255,255,255,.07);background:rgba(255,255,255,.025);color:#9fb0c1}
.lmh-bot-status.warn{border-color:rgba(235,185,92,.20);color:#d9bd84;background:rgba(235,185,92,.045)}
@keyframes lmhBotIn{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:none}}
@keyframes lmhDot{0%,60%,100%{opacity:.35;transform:translateY(0)}30%{opacity:1;transform:translateY(-3px)}}
@media(max-width:640px){.lmh-bot-launcher{right:16px;bottom:16px;width:58px;height:58px;border-radius:19px}.lmh-bot-teaser{right:16px;bottom:84px;max-width:calc(100vw - 32px)}.lmh-bot-panel{right:8px;left:8px;bottom:82px;width:auto;height:min(680px,calc(100dvh - 96px));border-radius:24px}.lmh-bot-bubble{max-width:88%}.lmh-bot-messages{padding-left:13px;padding-right:13px}}
@media(max-width:420px){.lmh-bot-panel{left:6px;right:6px;bottom:76px;height:calc(100dvh - 86px)}.lmh-bot-header{padding:13px}.lmh-bot-messages{padding-top:16px}.lmh-bot-launcher{width:54px;height:54px;font-size:15px}}

/* LMH Assistant v2 — guided lead capture */
.lmh-bot-footerline{align-items:flex-start;line-height:1.35}
.lmh-bot-footerline span:last-child{text-align:right;max-width:185px;color:#65798c}
.lmh-bot-msg.assistant .lmh-bot-bubble{position:relative}
.lmh-bot-msg.assistant .lmh-bot-bubble::selection,.lmh-bot-msg.user .lmh-bot-bubble::selection{background:rgba(213,181,106,.32)}
.lmh-bot-chip[data-action="consent"]{padding:9px 13px}
.lmh-bot-chip[data-action="consent"][data-value="yes"]{box-shadow:0 8px 24px rgba(213,181,106,.08)}
@media(max-width:420px){.lmh-bot-footerline{font-size:8px}.lmh-bot-footerline span:last-child{max-width:145px}}


/* v3.1: subtle mobile invitation */
@media(max-width:640px){
  .lmh-bot-teaser{right:78px;bottom:22px;max-width:215px;padding:9px 12px;border-radius:13px;font-size:10px;line-height:1.3}
  .lmh-bot-teaser strong{font-size:10.5px;margin:0}
  .lmh-bot-teaser span{display:none}
}
@media(max-width:420px){
  .lmh-bot-teaser{right:72px;bottom:20px;max-width:190px;padding:8px 10px}
}


/* v3.3 — iOS/mobile keyboard stability */
.lmh-bot-panel,.lmh-bot-messages,.lmh-bot-compose{min-width:0}
.lmh-bot-messages{min-height:0;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
.lmh-bot-compose{flex:0 0 auto}
@media(max-width:640px){
  .lmh-bot-root{--lmh-vv-height:100dvh;--lmh-vv-top:0px}
  .lmh-bot-panel{box-sizing:border-box;max-height:none}
  .lmh-bot-input{font-size:16px!important;line-height:1.35;min-height:38px;padding:8px 6px}
  .lmh-bot-input-wrap{min-height:54px;align-items:center}
  .lmh-bot-compose{padding-bottom:calc(12px + env(safe-area-inset-bottom,0px))}
  .lmh-bot-root.panel-open .lmh-bot-launcher{opacity:0;pointer-events:none;transform:translateY(8px) scale(.92)}
  .lmh-bot-root.panel-open .lmh-bot-teaser{opacity:0!important;pointer-events:none!important}
  .lmh-bot-root.keyboard-open .lmh-bot-panel{
    top:calc(var(--lmh-vv-top) + 6px);
    bottom:auto;
    left:6px;
    right:6px;
    width:auto;
    height:calc(var(--lmh-vv-height) - 12px);
    max-height:none;
    border-radius:18px;
    transform:none;
    transition:opacity .16s ease;
  }
  .lmh-bot-root.keyboard-open .lmh-bot-header{padding:10px 12px}
  .lmh-bot-root.keyboard-open .lmh-bot-avatar{width:36px;height:36px;flex-basis:36px;border-radius:11px;font-size:11px}
  .lmh-bot-root.keyboard-open .lmh-bot-headcopy strong{font-size:13px}
  .lmh-bot-root.keyboard-open .lmh-bot-headcopy span{font-size:9px}
  .lmh-bot-root.keyboard-open .lmh-bot-messages{padding-top:12px;padding-bottom:8px}
  .lmh-bot-root.keyboard-open .lmh-bot-compose{padding:8px 10px calc(8px + env(safe-area-inset-bottom,0px))}
  .lmh-bot-root.keyboard-open .lmh-bot-footerline{display:none}
}
