.emai{--emai-accent:#003b6f;font-family:system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;font-size:14px;line-height:1.4;color:#111}
.emai,.emai *{box-sizing:border-box}
.emai[data-mode=floating]{position:fixed;bottom:18px;z-index:999999}
.emai-left{left:18px}.emai-right{right:18px}

/* launcher pill */
.emai-launch{display:inline-flex;align-items:center;gap:10px;background:#fff;color:#111;border:1px solid #003b6f33;border-radius:14px;padding:12px 18px;font:inherit;font-weight:500;cursor:pointer;box-shadow:0 6px 20px rgba(0,0,0,.18);transition:transform .15s}
.emai-launch:hover{transform:translateY(-1px)}
.emai-launch-icon{font-size:20px;line-height:1}
.emai-open .emai-launch{display:none}

/* panel */
.emai-panel{display:flex;flex-direction:column;background:#fff;border:1px solid rgba(0,0,0,.1);border-radius:14px;overflow:hidden}
.emai-floating .emai-panel,.emai[data-mode=floating] .emai-panel{width:360px;max-width:calc(100vw - 36px);height:480px;max-height:calc(100vh - 40px);box-shadow:0 18px 44px rgba(0,0,0,.25)}
.emai[data-mode=floating] .emai-panel[hidden]{display:none}
.emai-inline .emai-panel{height:var(--emai-h,480px);width:100%}
.emai-head{flex:0 0 auto;display:flex !important;flex-flow:row nowrap !important;align-items:center !important;justify-content:space-between;height:48px !important;min-height:0 !important;padding:0 6px 0 16px !important;margin:0 !important;background:var(--emai-accent);color:#fff;box-sizing:border-box}
.emai-title{font-weight:600;line-height:1;margin:0;padding:0;font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.emai-close{background:none;border:0;color:#fff;font-size:24px;line-height:1;cursor:pointer;padding:2px 8px}
.emai-body{flex:1;min-height:0;overflow:auto;padding:12px;background:#fff}
.emai-row{display:flex;margin:8px 0}
.emai-row.emai-user{justify-content:flex-end}
.emai-bubble{max-width:88%;padding:9px 12px;border-radius:14px;word-break:break-word}
.emai-user .emai-bubble{background:var(--emai-accent);color:#fff;border-bottom-right-radius:4px}
.emai-bot .emai-bubble{background:#f1f3f5;color:#111;border-bottom-left-radius:4px}
.emai-bubble p{margin:0 0 .6em;font-size:14px}.emai-bubble p:last-child{margin:0}
.emai-bubble ul,.emai-bubble ol{margin:.3em 0 .6em 1.2em;padding:0;font-size:14px}
.emai-bubble li{margin-bottom:.3em}
.emai-bubble h2,.emai-bubble h3{font-size:15px;margin:.4em 0}
.emai-bubble a{color:var(--emai-accent);text-decoration:underline}
.emai-typing{display:inline-flex;gap:4px}
.emai-typing i{width:6px;height:6px;border-radius:50%;background:#999;animation:emai-b 1s infinite}
.emai-typing i:nth-child(2){animation-delay:.15s}.emai-typing i:nth-child(3){animation-delay:.3s}
@keyframes emai-b{0%,60%,100%{opacity:.3}30%{opacity:1}}

/* product cards */
.emai-cards{display:grid;gap:8px;margin:6px 0 2px}
.emai-card{display:flex;gap:10px;align-items:center;padding:8px;border:1px solid #e3e6ea;border-radius:10px;text-decoration:none;color:inherit;background:#fff}
.emai-card img{width:46px;height:46px;object-fit:cover;border-radius:6px;flex:none}
.emai-card b{display:block;font-size:13px}.emai-card span{display:block;margin-top:2px;font-size:13px;font-weight:600;color:var(--emai-accent,#003b6f)}

/* input */
.emai-form{display:flex;gap:8px;padding:10px;border-top:1px solid rgba(0,0,0,.08);background:#fafafa}
.emai-input{flex:1;border:1px solid rgba(0,0,0,.2);border-radius:10px;padding:9px 10px;font:inherit;outline:none;background:#fff;color:#111;min-width:0}
.emai-input:focus{border-color:var(--emai-accent)}
.emai-send{border:0;border-radius:10px;background:var(--emai-accent);color:#fff;font:inherit;font-weight:600;padding:0 14px;cursor:pointer}
.emai-send[disabled]{opacity:.55;cursor:not-allowed}

@media (max-width:480px){
 .emai[data-mode=floating]{left:10px;right:10px;bottom:10px}
 .emai[data-mode=floating] .emai-panel{width:100%;height:70vh}
}

/* header buttons */
.emai-head-btns{display:flex !important;flex-flow:row nowrap !important;align-items:center !important;gap:0;margin:0 !important;padding:0 !important}
.emai .emai-head-btns button.emai-new,.emai .emai-head-btns button.emai-full,.emai .emai-head-btns button.emai-close{-webkit-appearance:none;appearance:none;display:inline-flex !important;align-items:center;justify-content:center;width:32px !important;height:32px !important;min-width:0 !important;min-height:0 !important;margin:0 !important;padding:0 !important;line-height:1 !important;font-size:0 !important;background:transparent !important;border:0 !important;border-radius:8px !important;box-shadow:none !important;color:#fff !important;cursor:pointer;text-transform:none;letter-spacing:0}
.emai .emai-new svg,.emai .emai-full svg,.emai .emai-close svg{display:block;width:18px;height:18px;flex:none}
.emai .emai-new:hover,.emai .emai-full:hover,.emai .emai-close:hover,.emai .emai-new:focus-visible,.emai .emai-full:focus-visible,.emai .emai-close:focus-visible{background:rgba(255,255,255,.18) !important;outline:none}
.emai-ico-shrink{display:none}
.emai-full-on .emai-ico-shrink{display:inline}.emai-full-on .emai-ico-expand{display:none}

/* quick replies */
/* theme-proof compact controls */
.emai-choices{display:flex;flex-wrap:wrap;gap:6px;margin:6px 0 4px}
.emai .emai-choices button.emai-choice{-webkit-appearance:none;appearance:none;display:inline-flex !important;align-items:center;width:auto !important;height:24px !important;min-height:0 !important;max-height:24px !important;min-width:0 !important;margin:0 !important;padding:0 10px !important;font:inherit !important;font-size:12.5px !important;font-weight:500 !important;line-height:1 !important;letter-spacing:0 !important;text-transform:none !important;background:#fff !important;color:var(--emai-accent) !important;border:1px solid var(--emai-accent) !important;border-radius:999px !important;box-shadow:none !important;cursor:pointer}
.emai .emai-choices button.emai-choice:hover{background:var(--emai-accent) !important;color:#fff !important}
.emai form.emai-form{align-items:center !important;padding:8px 10px !important;margin:0 !important}
.emai form.emai-form input.emai-input{height:36px !important;min-height:0 !important;margin:0 !important;padding:0 12px !important;font-size:14px !important;line-height:36px !important;border-radius:8px !important;box-shadow:none !important}
.emai form.emai-form button.emai-send{-webkit-appearance:none;appearance:none;height:30px !important;min-height:0 !important;max-height:30px !important;width:auto !important;margin:0 !important;padding:0 14px !important;font-size:13px !important;font-weight:600 !important;line-height:1 !important;letter-spacing:.02em !important;text-transform:none !important;border:0 !important;border-radius:8px !important;box-shadow:none !important;background:var(--emai-accent) !important;color:#fff !important}

/* full screen */
html.emai-lock{overflow:hidden}
.emai.emai-full-on{position:fixed !important;inset:0;left:0;right:0;bottom:0;z-index:2147483000;background:#fff}
.emai.emai-full-on .emai-panel{width:100% !important;max-width:none !important;height:100% !important;max-height:none !important;border:0;border-radius:0;box-shadow:none}
.emai.emai-full-on .emai-head{height:52px !important;padding:0 14px 0 max(20px,calc((100% - 820px)/2)) !important}
.emai.emai-full-on .emai-title{font-size:16px}
.emai.emai-full-on .emai-body{padding:20px max(20px,calc((100% - 820px)/2))}
.emai.emai-full-on .emai-form{padding:14px max(20px,calc((100% - 820px)/2))}
.emai.emai-full-on .emai-bubble,.emai.emai-full-on .emai-bubble p,.emai.emai-full-on .emai-bubble li{font-size:16px}
.emai.emai-full-on .emai-bubble{max-width:92%}
.emai.emai-full-on form.emai-form input.emai-input{height:40px !important;line-height:40px !important;font-size:15px !important}
.emai.emai-full-on form.emai-form button.emai-send{height:32px !important;max-height:32px !important;padding:0 20px !important;font-size:13px !important}
.emai.emai-full-on .emai-launch{display:none}
.emai.emai-full-on .emai-panel[hidden]{display:flex}

/* links: bold, no underline */
.emai .emai-bubble a,.emai .emai-bubble a:visited{font-weight:700 !important;text-decoration:none !important;color:var(--emai-accent) !important;border:0 !important;box-shadow:none !important;background:none !important}
.emai .emai-bubble a:hover,.emai .emai-bubble a:focus{text-decoration:underline !important}

/* type label after each link */
.emai .emai-bubble .emai-tag{display:inline-block;margin:0 0 0 4px;padding:1px 7px;font-size:10px !important;font-weight:600;line-height:1.6;letter-spacing:.04em;text-transform:uppercase;white-space:nowrap;vertical-align:middle;border-radius:999px;background:#e3ebf5;color:var(--emai-accent);text-decoration:none}
.emai .emai-bubble h3{margin:.9em 0 .3em !important;font-size:12px !important;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#5b6773}
.emai .emai-bubble h3:first-child{margin-top:0 !important}
