.pv-chat-launch{position:fixed;right:16px;bottom:16px;z-index:80;border:1px solid #c9ae74;border-radius:999px;background:#17372e;color:#fff;box-shadow:0 10px 28px #0b2c2440;padding:10px 15px;font:600 13px/1.25 "DM Sans",sans-serif;cursor:pointer}
.pv-chat-launch:hover,.pv-chat-launch:focus-visible{background:#255343;outline:2px solid #c9ae74;outline-offset:2px}
.pv-chat-panel{position:fixed;right:22px;bottom:82px;z-index:81;display:flex;flex-direction:column;width:min(390px,calc(100vw - 28px));max-height:min(620px,calc(100dvh - 105px));background:#f8f6ef;color:#17372e;border:1px solid #c9ae74;box-shadow:0 18px 60px #0b2c2460;font:400 15px/1.5 "DM Sans",sans-serif}
.pv-chat-panel[hidden]{display:none}
.pv-chat-head{display:flex;align-items:center;gap:12px;padding:16px 19px;background:#17372e;color:#fff}
.pv-chat-avatar{flex:none;display:grid;place-items:center;width:36px;height:36px;border:1px solid #d4bb83;border-radius:50%;color:#e8d6ab;font:400 23px/1 "Italiana",serif}.pv-chat-identity{min-width:0;flex:1}
.pv-chat-head strong{font-size:16px;letter-spacing:.04em}.pv-chat-head small{display:block;color:#e0d4b7;font-size:12px;font-weight:400}
.pv-chat-close{background:none;border:0;color:inherit;font:400 25px/1 sans-serif;cursor:pointer;padding:0 4px}
.pv-chat-messages{overflow:auto;padding:18px 18px 8px;min-height:100px;scroll-behavior:smooth}
.pv-chat-bubble{max-width:92%;width:fit-content;padding:11px 13px;margin:0 0 12px;background:#e7ece5;white-space:pre-wrap;overflow-wrap:anywhere;border-radius:4px 14px 14px 14px}
.pv-chat-bubble.is-user{margin-left:auto;background:#d6c59d;border-radius:14px 4px 14px 14px}
.pv-chat-actions{display:flex;flex-wrap:wrap;gap:8px;padding:10px 18px;border-top:1px solid #d6d9ce}
.pv-chat-actions button{padding:9px 12px;border:1px solid #94a79a;border-radius:22px;color:#17372e;background:#fff;font:600 13px/1.3 "DM Sans",sans-serif;cursor:pointer}
.pv-chat-actions button:hover,.pv-chat-actions button:focus-visible{border-color:#17372e;background:#e7ece5}
.pv-chat-form{display:flex;gap:8px;padding:10px 18px 17px}
.pv-chat-form input{min-width:0;flex:1;border:1px solid #a4afa4;background:#fff;padding:10px;font:inherit;color:#17372e}
.pv-chat-form button{border:0;background:#17372e;color:#fff;padding:8px 12px;font:600 13px "DM Sans",sans-serif;cursor:pointer}
.pv-chat-messages a{font-weight:700;text-decoration:underline;text-underline-offset:3px}
@media(max-width:500px){.pv-chat-launch{right:14px;bottom:14px}.pv-chat-panel{right:14px;bottom:72px;max-height:calc(100dvh - 88px)}}

/* Short screens keep the conversation, choices and composer inside the panel. */
.pv-chat-head,.pv-chat-form{flex-shrink:0}
.pv-chat-messages{flex:1 1 auto;min-height:0;overscroll-behavior:contain}
.pv-chat-actions{flex:0 1 auto;max-height:30dvh;overflow:auto;overscroll-behavior:contain}
.pv-chat-actions button{min-height:44px;max-width:100%;overflow-wrap:anywhere;font-size:14px;flex-shrink:0}
.pv-chat-close{min-width:44px;min-height:44px;flex-shrink:0}
.pv-chat-form button{min-height:44px;flex-shrink:0;font-size:14px}
.pv-chat-launch{min-height:44px;max-width:calc(100vw - 28px);bottom:calc(14px + env(safe-area-inset-bottom,0px))}
.pv-chat-panel{bottom:calc(72px + env(safe-area-inset-bottom,0px));max-height:min(620px,calc(100dvh - 100px - env(safe-area-inset-bottom,0px)))}
@media(max-width:500px){.pv-chat-panel{right:14px}.pv-chat-head{padding:12px 14px}.pv-chat-actions{padding:10px 14px}.pv-chat-form{padding:10px 14px 14px}}
