:root{--bnz-paper:#fffdf8;--bnz-ink:#261a14;--bnz-muted:#695e55;--bnz-accent:#be8b44;--bnz-brown:#2a1b12;--bnz-line:#ddd2c1}
.bnz-ai-panel [hidden]{display:none!important}
.bnz-ai-launch{position:fixed;right:20px;bottom:92px;z-index:1001;border:0;border-radius:999px;background:var(--bnz-brown);color:#fff;padding:15px 20px;font-family:inherit;font-size:15px;font-weight:700;line-height:1.2;box-shadow:0 8px 28px #261a1444;cursor:pointer}
.bnz-ai-panel{position:fixed;right:20px;bottom:154px;z-index:1002;width:min(390px,calc(100% - 28px));max-height:min(76vh,680px);display:none;flex-direction:column;overflow:hidden;border:1px solid var(--bnz-line);border-radius:18px;background:var(--bnz-paper);color:var(--bnz-ink);box-shadow:0 18px 50px #261a1440;font:15px/1.45 system-ui,-apple-system,"Segoe UI",sans-serif}
.bnz-ai-panel.is-open{display:flex}
.bnz-ai-head{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;background:var(--bnz-brown);color:white}.bnz-ai-head strong{font-size:16px}.bnz-ai-close{border:0;background:transparent;color:#fff;font-size:25px;cursor:pointer}
.bnz-ai-body{padding:14px;overflow:auto}.bnz-ai-messages{display:flex;flex-direction:column;gap:9px;max-height:240px;overflow:auto;margin-bottom:12px}.bnz-ai-msg{padding:10px 12px;border-radius:12px;background:#f1e9dc;white-space:pre-wrap;overflow-wrap:anywhere}.bnz-ai-msg.me{align-self:flex-end;background:#e5d1b1}
.bnz-ai-chat{display:flex;gap:8px}.bnz-ai-chat input,.bnz-ai-fields input,.bnz-ai-fields select{min-width:0;width:100%;box-sizing:border-box;border:1px solid var(--bnz-line);border-radius:9px;padding:10px;font:inherit;color:inherit;background:white}.bnz-ai-chat button,.bnz-ai-primary{border:0;border-radius:9px;padding:10px 14px;background:var(--bnz-accent);color:#1c130d;font-family:inherit;font-size:14px;font-weight:700;cursor:pointer}.bnz-ai-chat button:disabled,.bnz-ai-primary:disabled{opacity:.55;cursor:wait}
.bnz-ai-booking{margin-top:13px;border-top:1px solid var(--bnz-line);padding-top:11px}.bnz-ai-booking summary{font-weight:700;cursor:pointer}.bnz-ai-fields{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:12px 0}.bnz-ai-fields label{display:grid;gap:4px;font-size:13px;color:var(--bnz-muted)}.bnz-ai-fields .wide{grid-column:1/-1}
.bnz-ai-check{display:flex;align-items:flex-start;gap:8px;margin:8px 0;font-size:12px;color:var(--bnz-muted)}.bnz-ai-check input{margin-top:3px}.bnz-ai-status{min-height:1.4em;margin:10px 0;font-size:14px}.bnz-ai-status[data-error="true"]{color:#9a3026}.bnz-ai-privacy{margin:8px 0 0;color:var(--bnz-muted);font-size:11px}.bnz-ai-primary{width:100%;margin-top:8px}
@media(max-width:520px){.bnz-ai-launch{right:12px;bottom:88px;padding:13px 16px}.bnz-ai-panel{right:8px;bottom:146px;width:calc(100% - 16px);max-height:72vh}.bnz-ai-messages{max-height:180px}}

/* Fit the complete panel inside the visual viewport, including keyboard resize. */
.bnz-ai-panel{--bnz-panel-bottom:clamp(8px,calc(var(--bnz-viewport-height,100dvh) - 460px),154px);box-sizing:border-box;bottom:var(--bnz-panel-bottom);max-height:min(680px,calc(var(--bnz-viewport-height,100dvh) - var(--bnz-panel-bottom) - 16px))}
.bnz-ai-head{flex-shrink:0}.bnz-ai-body{min-height:0;overscroll-behavior:contain}
@media(max-width:520px){.bnz-ai-panel{--bnz-panel-bottom:clamp(8px,calc(var(--bnz-viewport-height,100dvh) - 460px),146px);max-height:min(72vh,calc(var(--bnz-viewport-height,100dvh) - var(--bnz-panel-bottom) - 16px))}}

.bnz-ai-panel{--bnz-panel-height:min(680px,calc(var(--bnz-viewport-height,100dvh) - var(--bnz-panel-bottom) - 16px));max-height:var(--bnz-panel-height)}
.bnz-ai-messages{max-height:min(240px,max(40px,calc(var(--bnz-panel-height) - 220px)))}
@media(max-width:520px){.bnz-ai-panel{--bnz-panel-height:min(72vh,calc(var(--bnz-viewport-height,100dvh) - var(--bnz-panel-bottom) - 16px))}.bnz-ai-messages{max-height:min(180px,max(40px,calc(var(--bnz-panel-height) - 220px)))}}
