/* Keep chat sizing independent of storefront card and utility styles. */
#chat-bot-panel:not(.fullscreen){position:fixed!important;left:var(--chat-left,24px)!important;top:var(--chat-top,auto)!important;bottom:var(--chat-bottom,100px)!important;width:min(420px,calc(100vw - 32px))!important;height:min(640px,calc(100dvh - 124px))!important;max-width:calc(100vw - 32px)!important;max-height:var(--chat-height,calc(100dvh - 124px))!important;border-radius:20px!important}
#chat-bot-panel.fullscreen{display:flex!important;flex-direction:column!important;min-height:0!important;overflow:hidden!important;background:#0c0e17!important;border:1px solid #30384d!important;border-radius:18px!important;box-shadow:0 20px 80px #0009!important;z-index:2147483647!important}
#chat-bot-panel #chat-bot-header{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:10px!important;min-height:78px!important;flex:0 0 auto!important;padding:14px 16px!important;background:#111624!important;border-bottom:1px solid #293247!important}
#chat-bot-panel .cb-header-identity{gap:10px!important;min-width:0!important}#chat-bot-panel .cb-header-copy{min-width:0!important}#chat-bot-panel #chat-header-agent-name{font-size:15px!important;line-height:22px!important}#chat-bot-panel #chat-header-status-line{font-size:11px!important;line-height:16px!important;margin-top:3px!important}#chat-bot-panel #chat-header-status-text{display:block!important;white-space:normal!important;overflow-wrap:normal!important}
#chat-bot-panel .cb-header-actions{gap:6px!important}#chat-bot-panel .cb-header-actions button{width:44px!important;height:44px!important;border-radius:11px!important}#chat-bot-panel #chat-messages{flex:1 1 0%!important;min-height:0!important;max-height:none!important;height:auto!important;padding:16px 14px!important;overscroll-behavior:contain;touch-action:pan-y;-webkit-overflow-scrolling:touch;scrollbar-gutter:stable}
#chat-bot-panel #chat-messages>div{min-width:0!important;max-width:100%!important}#chat-bot-panel #chat-messages .cb-message-body{min-width:0!important;flex:1 1 0%!important}#chat-bot-panel #chat-messages .cb-message-bubble{font-size:14px!important;line-height:1.65!important;padding:12px!important;overflow-wrap:anywhere!important;word-break:normal!important;border-color:#2b3549!important;box-shadow:none!important}#chat-bot-panel #chat-messages .cb-user-body{flex:0 1 auto!important;max-width:calc(100% - 38px)!important}
#chat-bot-panel #chat-messages .cb-buttons-container{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;width:100%!important;margin-top:12px!important}#chat-bot-panel #chat-messages .cb-buttons-container button{display:flex!important;align-items:center!important;justify-content:center!important;gap:6px!important;min-height:44px!important;width:100%!important;min-width:0!important;margin:0!important;padding:10px 8px!important;border-radius:10px!important;font-size:12px!important;line-height:1.45!important;white-space:normal!important;overflow-wrap:anywhere!important;box-shadow:none!important;transform:none!important}#chat-bot-panel #chat-messages .cb-buttons-container button:only-child{grid-column:1/-1}#chat-bot-panel #chat-messages .cb-buttons-container button>span:first-child{font-size:13px!important}#chat-bot-panel #chat-messages .cb-buttons-container button>span:last-child{min-width:0!important}
#chat-bot-panel #chat-input-bar{position:relative!important;flex:0 0 auto!important;width:100%!important;min-height:68px!important;max-width:100%!important;padding:12px 14px!important;margin:0!important;background:#111624!important;border-top:1px solid #2c3549!important;touch-action:manipulation}#chat-bot-panel #chat-input-bar>div{display:flex!important;align-items:center!important;gap:8px!important;min-width:0!important}#chat-bot-panel .cb-input-wrap{flex:1 1 0%!important;min-width:0!important}#chat-bot-panel #chat-input{width:100%!important;height:44px!important;min-height:44px!important;max-height:88px!important;padding:11px 12px!important;font-size:16px!important;line-height:20px!important;overflow-y:auto!important;background:#1a2233!important;border-color:#3a465e!important;border-radius:12px!important;scrollbar-width:thin;touch-action:pan-y}#chat-bot-panel .cb-enter-hint{display:none!important}#chat-bot-panel #send-chat{width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;border-radius:12px!important;box-shadow:0 4px 12px #e5091425!important}#chat-bot-panel #send-chat:focus-visible{outline:2px solid #ff7785;outline-offset:3px}
@media(max-width:767px){#chat-bot-panel #chat-bot-header{min-height:74px!important;padding:11px 12px!important;gap:8px!important}#chat-bot-panel #chat-header-agent-name{font-size:14px!important}#chat-bot-panel .cb-header-actions{gap:5px!important}#chat-bot-panel .cb-header-actions button{width:44px!important;height:44px!important}#chat-bot-panel .cb-header-identity{gap:8px!important}#chat-bot-panel #chat-input-bar{padding:10px 12px max(10px,env(safe-area-inset-bottom))!important;min-height:64px!important}#chat-bot-panel #chat-messages{padding:14px 10px!important}#chat-bot-panel #chat-messages .cb-message-bubble{font-size:13px!important;padding:10px!important}#chat-bot-panel .cb-header-identity>.agent-profile-trigger{width:34px!important;height:34px!important;min-width:34px!important}#chat-bot-panel #chat-messages .cb-agent-avatar{width:24px!important;height:24px!important;min-width:24px!important}#chat-bot-panel #chat-messages>div{gap:8px!important}}
@media(max-width:359px){#chat-bot-panel #chat-header-agent-name{font-size:13px!important}#chat-bot-panel #chat-header-status-line{font-size:10px!important;line-height:14px!important}#chat-bot-panel #chat-messages .cb-buttons-container{grid-template-columns:minmax(0,1fr)!important}}
@media(max-height:450px){#chat-bot-panel #chat-bot-header{min-height:62px!important;padding-top:8px!important;padding-bottom:8px!important}#chat-bot-panel #chat-input-bar{padding-top:8px!important;padding-bottom:8px!important;min-height:60px!important}}
/* Keyboard mode uses the measured visible viewport; never pin the composer to 100vh. */
#chat-bot-panel.fullscreen[data-keyboard-open="true"]{padding-top:0!important;padding-bottom:0!important;border-bottom-left-radius:12px!important;border-bottom-right-radius:12px!important}
#chat-bot-panel.fullscreen[data-keyboard-open="true"] #chat-bot-header{min-height:62px!important;padding:8px 12px!important}
#chat-bot-panel.fullscreen[data-keyboard-open="true"] #chat-header-status-text{white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
#chat-bot-panel.fullscreen[data-keyboard-open="true"] #chat-messages{min-height:0!important;flex:1 1 0%!important;padding-top:10px!important;padding-bottom:12px!important}
#chat-bot-panel.fullscreen[data-keyboard-open="true"] #chat-input-bar{flex:0 0 auto!important;min-height:0!important;padding:10px 12px 14px!important;padding-bottom:max(14px,env(safe-area-inset-bottom))!important;position:relative!important;bottom:auto!important;overflow:visible!important}
#chat-bot-panel.fullscreen[data-keyboard-open="true"] #chat-input-bar>div{min-height:44px!important;flex-shrink:0!important}
@media(prefers-reduced-motion:reduce){#chat-bot-panel,#chat-bot-panel *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
