.jbot-dialog{width:min(560px,calc(100% - 24px));height:min(740px,92dvh);max-height:92dvh;padding:0;background:var(--paper,#fffaf3);color:var(--dark,#0d002c);overflow:hidden;grid-template-rows:auto minmax(80px,1fr) auto auto}
.jbot-dialog[open]{display:grid}.jbot-dialog::backdrop{background:#0d002cba;backdrop-filter:blur(4px)}
.jbot-header{display:flex;align-items:center;gap:13px;background:var(--dark,#0d002c);color:white;padding:21px 23px;border-bottom:4px solid var(--pink,#fe0194)}
.jbot-icon{width:48px;height:48px;border-radius:13px;flex-shrink:0}.jbot-heading{flex:1;min-width:0}.jbot-heading h2{font-size:18px;letter-spacing:0;line-height:1.8}.jbot-heading p{font-size:9px;color:#d8cce6;margin-top:3px}.jbot-close{background:transparent;color:var(--yellow,#ffcd00);font:30px/1 Arial,sans-serif;width:36px;height:36px;display:grid;place-items:center;flex-shrink:0}
.jbot-messages{padding:22px 20px;overflow-y:auto;overscroll-behavior:contain;display:flex;flex-direction:column;gap:17px;scrollbar-width:thin;min-height:80px}
.jbot-message{max-width:94%;padding:15px 17px;border:1px solid #ded6e8;font-size:11px;line-height:2.25;border-radius:12px 3px 12px 12px;flex-shrink:0;overflow-wrap:anywhere}.jbot-message p{white-space:pre-wrap}.jbot-bot{background:white;align-self:flex-start}.jbot-user{background:var(--yellow,#ffcd00);border-color:#0d002c55;align-self:flex-end;border-radius:3px 12px 12px 12px}
.jbot-typing{font-size:10px;padding:0 25px 12px;color:var(--secondary,#6f617f)}.jbot-footer{border-top:1px solid #ded6e8;padding:15px 19px 18px;background:var(--paper,#fffaf3)}
.jbot-quick{display:flex;gap:7px;overflow-x:auto;padding:0 0 12px;scrollbar-width:thin}.jbot-quick button{background:white;border:1px solid #0d002c55;color:var(--dark,#0d002c);font-size:9px;line-height:1.9;padding:6px 10px;white-space:nowrap;min-height:36px;flex-shrink:0}.jbot-quick button:hover{background:var(--yellow,#ffcd00)}.jbot-quick button:disabled{opacity:.55}
.jbot-form{display:flex;align-items:center;gap:9px}.jbot-input{border:1px solid #0d002c70;background:white;border-radius:0;min-width:0;width:100%;height:46px;padding:10px 12px;font-size:11px;color:var(--dark,#0d002c)}.jbot-input::placeholder{color:var(--secondary,#6f617f);opacity:1}.jbot-send{width:46px;height:46px;background:var(--dark,#0d002c);color:var(--yellow,#ffcd00);font:28px/1 Arial,sans-serif;flex-shrink:0}.jbot-send:disabled{opacity:.5}
.jbot-tools{display:flex;align-items:center;flex-wrap:wrap;justify-content:space-between;gap:8px 16px;margin-top:12px}.jbot-tools button,.jbot-tools a{background:none;color:var(--dark,#0d002c);font-size:9px;border:0;border-bottom:1px solid #0d002c60;padding:5px 0;min-height:30px}.jbot-tools a{direction:ltr}.jbot-tools button:hover,.jbot-tools a:hover{border-bottom-color:var(--pink,#fe0194)}
.jbot-note{font-size:8px;color:var(--secondary,#6f617f);line-height:2.1;margin-top:11px}.jbot-feedback{font-size:10px;color:var(--dark,#0d002c);line-height:2;margin-top:8px;min-height:0}.jbot-feedback:empty{display:none}
.jbot-products{display:grid;gap:8px;margin-top:13px}.jbot-product{display:flex;align-items:center;text-align:start;gap:10px;width:100%;background:var(--paper,#fffaf3);color:var(--dark,#0d002c);border:1px solid #ded6e8;padding:9px}.jbot-product img{width:45px;height:45px;object-fit:contain;background:var(--dark,#0d002c);flex-shrink:0}.jbot-product-copy{display:flex;flex:1;min-width:0;flex-direction:column;gap:2px}.jbot-product strong{font-size:10px;line-height:1.8}.jbot-product small{font-size:10px;font-family:inherit;line-height:1.7;color:var(--secondary,#6f617f)}.jbot-product b{font:22px/1 Arial,sans-serif;color:var(--dark,#0d002c)}.jbot-product:hover{border-color:var(--dark,#0d002c);background:var(--yellow,#ffcd00)}
@media(max-width:760px){.jbot-dialog{height:min(800px,94dvh);max-height:94dvh;width:calc(100% - 14px)}.jbot-header{padding:17px 16px;gap:11px}.jbot-heading h2{font-size:17px}.jbot-heading p{font-size:9px}.jbot-icon{width:44px;height:44px}.jbot-messages{padding:18px 14px;gap:14px}.jbot-message{font-size:12px;max-width:96%;padding:12px 14px;line-height:2.2}.jbot-footer{padding:12px 13px calc(12px + env(safe-area-inset-bottom,0px))}.jbot-quick button{font-size:10px}.jbot-input{font-size:12px;height:46px}.jbot-tools button,.jbot-tools a{font-size:10px;min-height:35px}.jbot-note{font-size:9px}.jbot-product strong{font-size:11px}.jbot-product small{font-size:10px}.jbot-typing{padding:0 18px 10px}.jbot-feedback{font-size:10px}}
@media(max-width:370px){.jbot-heading h2{font-size:15px}.jbot-heading p{font-size:8px}.jbot-header{gap:8px}.jbot-tools{gap:5px 12px}.jbot-tools button,.jbot-tools a{font-size:9px}.jbot-note{font-size:8px}.jbot-message{font-size:11px}}
/* Grid min-content must never widen a portrait chat beyond the visual viewport. */
#menu-bot-dialog.jbot-dialog{box-sizing:border-box;min-width:0;max-width:calc(100vw - 16px);width:min(560px,calc(100vw - 16px));margin:auto;inset:0;grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr) auto auto}
#menu-bot-dialog>*{min-width:0;max-width:100%;box-sizing:border-box}
#menu-bot-dialog .jbot-messages{min-height:0;min-width:0;overflow-x:hidden}
#menu-bot-dialog .jbot-message{min-width:0;box-sizing:border-box;overflow-wrap:anywhere;word-break:break-word}
#menu-bot-dialog .jbot-quick{width:100%;min-width:0;max-width:100%;overflow-x:auto;overscroll-behavior-x:contain}
#menu-bot-dialog .jbot-form{width:100%;min-width:0}
#menu-bot-dialog .jbot-input{flex:1;min-width:0;width:0;font-size:16px}
#menu-bot-dialog .jbot-header{min-width:0}#menu-bot-dialog .jbot-heading h2{font-size:clamp(15px,4.2vw,18px);overflow-wrap:anywhere}#menu-bot-dialog .jbot-close{min-width:40px;min-height:40px}
@media(max-width:760px){#menu-bot-dialog.jbot-dialog{width:calc(100vw - 12px);max-width:calc(100vw - 12px);height:min(800px,calc(100dvh - 12px));max-height:calc(100dvh - 12px);border-radius:14px}#menu-bot-dialog .jbot-header{padding:12px;gap:9px}#menu-bot-dialog .jbot-footer{padding:10px 12px calc(10px + env(safe-area-inset-bottom,0px))}#menu-bot-dialog .jbot-tools{gap:5px 12px}#menu-bot-dialog .jbot-note{font-size:8px;line-height:1.8}#menu-bot-dialog .jbot-icon{width:40px;height:40px}}
@media(max-height:500px){#menu-bot-dialog.jbot-dialog{height:calc(100dvh - 8px);max-height:calc(100dvh - 8px)}#menu-bot-dialog .jbot-header{padding:8px 12px}#menu-bot-dialog .jbot-note{display:none}#menu-bot-dialog .jbot-footer{padding:8px 12px}#menu-bot-dialog .jbot-tools{margin-top:4px}}

#menu-bot-dialog.jbot-dialog{height:min(800px,var(--bot-visible-height,calc(100dvh - 12px)));max-height:var(--bot-visible-height,calc(100dvh - 12px))}#menu-bot-dialog .jbot-footer{overflow-y:auto;max-height:55dvh}

#menu-bot-dialog .jbot-footer{max-height:calc(var(--bot-visible-height,100dvh)*.55)}
