/* Adapted from Website/widgets/template-widget: bottom-right launcher,
   desktop panel and full-height mobile chat. */
#elvador-chat-widget-root{font-family:Arial,system-ui,sans-serif;color:var(--text-primary);font-size:14px;line-height:1.4}
#elvador-chat-widget-root [hidden]{display:none!important}
#elvador-chat-widget-root button{font:inherit;cursor:pointer;color:inherit}
#elvador-chat-widget-root button:focus-visible{outline:2px solid var(--text-primary);outline-offset:3px}
#elvador-chat-launcher{position:fixed;right:22px;bottom:22px;z-index:9999;width:min(310px,calc(100vw - 32px));display:flex;flex-direction:column;align-items:flex-end;gap:12px;pointer-events:none}
#elvador-chat-launcher>*{pointer-events:auto}
#elvador-chat-button{display:flex;align-items:center;gap:12px;width:100%;padding:10px 14px;background:var(--bg-primary);border:1px solid var(--border-medium);border-radius:12px;text-align:left;box-shadow:0 8px 24px color-mix(in srgb,var(--dark) 15%,transparent)}
#elvador-chat-button:hover{background:var(--bg-secondary)}
.elvador-chat-button-photo{width:48px;height:48px;flex:0 0 48px;border-radius:50%;overflow:hidden;background:var(--light)}
.elvador-chat-button-photo img{width:100%;height:100%;object-fit:contain}
.elvador-chat-button-copy{flex:1;min-width:0}
.elvador-chat-button-copy strong{display:block;font-size:14px;overflow-wrap:anywhere}
#elvador-chat-panel{position:fixed;right:22px;bottom:22px;z-index:10000;width:min(400px,calc(100vw - 32px));height:min(680px,calc(100dvh - 48px));display:flex;flex-direction:column;border:1px solid var(--border-medium);border-radius:16px;overflow:hidden;background:var(--bg-primary);box-shadow:0 12px 40px color-mix(in srgb,var(--dark) 20%,transparent)}
.elvador-chat-panel-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 12px;background:var(--bg-secondary);border-bottom:1px solid var(--border-light);flex-shrink:0}
.elvador-chat-panel-header>span{font-size:12px;overflow-wrap:anywhere}
#elvador-chat-close{width:36px;height:36px;flex:0 0 36px;border:1px solid var(--border-medium);border-radius:4px;background:var(--bg-primary);font-size:24px!important;display:grid;place-items:center;padding:0}
#elvador-chat-close:hover{background:var(--bg-secondary)}
#elvador-chat-frame-slot{flex:1;min-height:0}
#elvador-chat-frame{display:block;width:100%;height:100%;border:0;background:var(--bg-primary)}
@media(max-width:600px){#elvador-chat-launcher{right:16px;bottom:calc(16px + env(safe-area-inset-bottom))}#elvador-chat-panel{right:0;bottom:0;width:100%;height:100dvh;border-radius:0;padding-top:env(safe-area-inset-top);padding-bottom:env(safe-area-inset-bottom)}}
