#book-ai-widget{position:fixed;right:max(18px,env(safe-area-inset-right));bottom:calc(18px + env(safe-area-inset-bottom));z-index:80;color:#153c2e;font-family:'DM Sans',Arial,sans-serif;line-height:1.5}
#book-ai-widget *{box-sizing:border-box}
#book-ai-widget [hidden]{display:none!important}
#book-ai-widget button{font:inherit;cursor:pointer;touch-action:manipulation}
#book-ai-widget button:disabled{opacity:.55;cursor:wait}
#book-ai-widget button:focus-visible,#book-ai-widget textarea:focus-visible{outline:3px solid #bf9650;outline-offset:3px}
#book-ai-widget .book-ai-launcher{display:flex;flex-direction:column;align-items:center;border:0;padding:0;background:transparent;color:#153c2e;min-width:78px;min-height:90px;border-radius:18px;box-shadow:none}
#book-ai-widget .book-ai-launcher img{display:block;width:88px;height:88px;object-fit:contain;filter:drop-shadow(0 5px 7px #082d2340);animation:book-ai-float 4s ease-in-out infinite}
#book-ai-widget .book-ai-launcher-label{font-size:11px;font-weight:700;padding:3px 12px;background:#fffaf0;border:1px solid #c5a365;border-radius:20px;box-shadow:0 3px 10px #082d2310}
#book-ai-widget .book-ai-greeting{position:absolute;right:5px;bottom:116px;width:240px;background:#fffaf0;border:1px solid #c4a267;border-radius:19px 19px 5px 19px;padding:16px 25px 16px 17px;box-shadow:0 8px 30px #092c231c}
#book-ai-widget #book-ai-greeting-open{display:block;text-align:left;border:0;background:none;color:#163d2e;padding:0;width:100%}
#book-ai-widget #book-ai-greeting-open strong{display:block;font-size:17px;margin-bottom:5px;font-weight:700}
#book-ai-widget #book-ai-greeting-open span{display:block;font-size:12px;line-height:1.6}
#book-ai-widget #book-ai-greeting-hide{position:absolute;right:6px;top:5px;display:grid;place-items:center;border:0;background:none;color:#647260;width:24px;height:24px;font-size:20px}
#book-ai-widget .book-ai-panel{position:absolute;right:0;bottom:119px;width:min(380px,calc(100vw - 32px));max-height:calc(100dvh - 160px);height:540px;display:flex;flex-direction:column;overflow:hidden;background:#fffaf2;border:1px solid #c5a065;border-radius:22px;box-shadow:0 16px 60px #062b2240;text-align:left}
#book-ai-widget .book-ai-header{position:static;display:flex;gap:11px;align-items:center;flex:none;min-height:78px;padding:16px 18px;margin:0;background:#fffaf2;color:#153c2e;border:0;border-bottom:1px solid #ded1b9;width:100%;box-shadow:none;max-width:none}
#book-ai-widget .book-ai-header img{object-fit:contain;flex:none;width:40px;height:40px}
#book-ai-widget .book-ai-header h2{font:500 20px/1.25 'Playfair Display',Georgia,serif;margin:0;color:#153c2e}
#book-ai-widget .book-ai-header span{font-size:10px;color:#7b704f;letter-spacing:.4px}
#book-ai-widget #book-ai-close{margin-left:auto;border:0;background:transparent;color:#153c2e;font-size:28px;width:36px;height:36px;border-radius:50%;padding:0;flex:none}
#book-ai-widget .book-ai-messages{min-height:90px;flex:1;overflow:auto;overscroll-behavior:contain;padding:18px;display:flex;flex-direction:column;gap:12px;scroll-behavior:smooth}
#book-ai-widget .book-ai-message{margin:0;max-width:94%;padding:13px 15px;border-radius:16px;font-size:14px;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere;flex-shrink:0}
#book-ai-widget .book-ai-message--assistant{align-self:flex-start;background:#efebdf;color:#234331;border:1px solid #e4d8c3;border-bottom-left-radius:4px}
#book-ai-widget .book-ai-message--user{align-self:flex-end;background:#123d2e;color:#fff5dc;border-bottom-right-radius:4px}
#book-ai-widget .book-ai-pending{opacity:.65}
#book-ai-widget .book-ai-suggestions{flex:none;display:flex;gap:7px;padding:0 16px 12px;flex-wrap:wrap}
#book-ai-widget .book-ai-suggestions button{min-height:38px;border:1px solid #bc995e;background:#fffaf2;color:#244432;border-radius:22px;padding:8px 12px;font-size:11px}
#book-ai-widget .book-ai-form{display:flex;flex:none;align-items:center;gap:10px;border-top:1px solid #ded1b9;padding:14px;background:#fffaf2;margin:0}
#book-ai-widget textarea{resize:none;min-width:0;flex:1;width:100%;border:1px solid #c8cdbb;background:#fffefa;border-radius:14px;padding:11px 12px;font:16px/1.4 'DM Sans',Arial,sans-serif;color:#153c2e;min-height:60px;max-height:95px}
#book-ai-widget #book-ai-send{display:grid;place-items:center;flex:none;width:46px;height:46px;border-radius:50%;border:1px solid #c39e58;background:linear-gradient(130deg,#eedaa7,#b98e43);color:#173728;padding:11px}
#book-ai-widget #book-ai-send svg{width:24px;height:24px}
#book-ai-widget .book-ai-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.reading-mode #book-ai-widget{display:none}
@keyframes book-ai-float{0%,100%{transform:translateY(0) rotate(-2deg)}50%{transform:translateY(-5px) rotate(1deg)}}
@media(max-width:580px){#book-ai-widget{right:12px;bottom:calc(12px + env(safe-area-inset-bottom))}#book-ai-widget .book-ai-launcher img{width:70px;height:70px}#book-ai-widget .book-ai-launcher{min-width:70px;min-height:87px}#book-ai-widget .book-ai-greeting{width:220px;bottom:101px}#book-ai-widget .book-ai-panel{bottom:100px;width:calc(100vw - 24px);height:500px;max-height:calc(100dvh - 130px)}#book-ai-widget .book-ai-header{min-height:70px;padding:12px 14px}#book-ai-widget .book-ai-messages{padding:14px}#book-ai-widget .book-ai-header h2{font-size:19px}}
@media(prefers-reduced-motion:reduce){#book-ai-widget .book-ai-launcher img{animation:none}#book-ai-widget .book-ai-messages{scroll-behavior:auto}}


#book-ai-widget .book-ai-service{margin:12px 16px;padding:12px;border-radius:12px;background:#f1e8d5;color:#4b5149;font-size:14px;line-height:1.5;}

#book-ai-widget .book-ai-disclaimer{margin:0;padding:0 16px 10px;font-size:11px;line-height:1.5;color:#63705f;flex:none}#book-ai-widget .book-ai-launcher img{width:72px;height:72px}#book-ai-widget .book-ai-launcher{min-height:92px}#book-ai-widget .book-ai-greeting{bottom:103px}#book-ai-widget .book-ai-panel{bottom:103px}@media(max-width:580px){#book-ai-widget .book-ai-launcher img{width:56px;height:56px}#book-ai-widget .book-ai-launcher{min-width:64px;min-height:75px}#book-ai-widget .book-ai-greeting{bottom:84px}#book-ai-widget .book-ai-panel{bottom:84px;max-height:calc(100dvh - 108px)}}
