#gs-chat-root, #gs-chat-root * { box-sizing: border-box; }
#gs-chat-root { --gs-chat-color: #1265d8; position: fixed; z-index: 2147483000; bottom: max(20px, env(safe-area-inset-bottom)); right: 20px; font-family: system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif; font-size: 14px; line-height: 1.45; color: #14213e; }
#gs-chat-root.gs-chat-left { left: 20px; right: auto; }
#gs-chat-root [hidden] { display: none !important; }
#gs-chat-root button, #gs-chat-root input { font: inherit; }
#gs-chat-root button { cursor: pointer; }
#gs-chat-root button:focus-visible,#gs-chat-root input:focus-visible,#gs-chat-root a:focus-visible { outline: 3px solid #ffbf4a; outline-offset: 3px; }
#gs-chat-root .gs-chat-launcher { display: flex; align-items: center; gap: 10px; border: 0; border-radius: 100px; color: #fff; background: var(--gs-chat-color); padding: 13px 18px; min-height: 55px; box-shadow: 0 12px 32px rgba(0,34,105,.29); font-size: 14px; font-weight: 700; transition: transform .15s ease,box-shadow .15s ease; margin-left: auto; }
#gs-chat-root.gs-chat-left .gs-chat-launcher { margin-left: 0; margin-right: auto; }
#gs-chat-root .gs-chat-launcher:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(0,34,105,.36); }
#gs-chat-root .gs-chat-launcher svg { width: 25px; height: 25px; }
#gs-chat-root .gs-chat-panel { display: flex; flex-direction: column; position: absolute; bottom: calc(100% + 13px); right: 0; width: min(390px, calc(100vw - 28px)); height: min(585px, calc(100dvh - 112px)); min-height: 320px; max-height: 78vh; overflow: hidden; background: #fff; border: 1px solid #e5eaf2; border-radius: 18px; box-shadow: 0 23px 70px rgba(12,34,66,.25); }
#gs-chat-root.gs-chat-left .gs-chat-panel { left: 0; right: auto; }
#gs-chat-root .gs-chat-header { flex: 0 0 auto; display: flex; align-items: center; gap: 10px; padding: 16px 13px; background: var(--gs-chat-color); color: white; }
#gs-chat-root .gs-chat-avatar { width: 40px; height: 40px; border-radius: 14px; background: rgba(255,255,255,.23); display: grid; place-items: center; font-weight: 900; letter-spacing: .03em; font-size: 14px; flex: 0 0 auto; }
#gs-chat-root .gs-chat-heading { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; }
#gs-chat-root .gs-chat-heading strong { display: block; font-weight: 750; font-size: 15px; color: white; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
#gs-chat-root .gs-chat-heading>span { display: flex; align-items: center; gap: 6px; font-size: 11px; opacity: .9; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
#gs-chat-root .gs-chat-online { display: inline-block; width: 7px; height: 7px; border-radius: 100%; background: #7bffa0; flex: 0 0 auto; }
#gs-chat-root .gs-chat-header-btn { border: 0; padding: 2px; min-width: 26px; min-height: 28px; background: transparent; color: white; font-size: 24px; line-height: 1; font-weight: normal; }
#gs-chat-root .gs-chat-header-btn:hover { background: rgba(255,255,255,.13); border-radius: 5px; }
#gs-chat-root .gs-chat-messages { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 16px; background: #f6f8fc; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 12px; }
#gs-chat-root .gs-chat-bubble { max-width: 90%; padding: 11px 13px; box-shadow: 0 2px 5px rgba(20,36,64,.05); font-size: 13px; line-height: 1.55; overflow-wrap: anywhere; white-space: pre-wrap; }
#gs-chat-root .gs-chat-bubble-bot { align-self: flex-start; color: #29354e; background: white; border: 1px solid #e8edf5; border-radius: 3px 14px 14px 14px; }
#gs-chat-root .gs-chat-bubble-user { align-self: flex-end; background: var(--gs-chat-color); color: white; border-radius: 14px 3px 14px 14px; }
#gs-chat-root .gs-chat-bubble a { color: #0059bd; text-decoration: underline; }
#gs-chat-root .gs-chat-bubble-user a { color: white; }
#gs-chat-root .gs-chat-typing { color: #66748e; font-size: 12px; padding: 5px 3px; }
#gs-chat-root .gs-chat-suggestions { flex: 0 0 auto; display: flex; flex-wrap: wrap; gap: 7px; max-height: 132px; overflow-y: auto; padding: 10px 13px; background: #fff; border-top: 1px solid #eef1f7; }
#gs-chat-root .gs-chat-suggestions:empty { display: none; }
#gs-chat-root .gs-chat-chip { border: 1px solid #cedcf6; background: #f4f8ff; color: #0f4491; border-radius: 22px; padding: 7px 11px; font-size: 12px; font-weight: 600; line-height: 1.35; max-width: 100%; white-space: normal; text-align: center; }
#gs-chat-root .gs-chat-chip:hover { background: #e5efff; }
#gs-chat-root .gs-chat-chip:disabled { opacity: .5; cursor: wait; }
#gs-chat-root .gs-chat-whatsapp { display: block; flex: 0 0 auto; text-align: center; background: #eefbf3; color: #08793f; padding: 8px 10px; font-size: 12px; font-weight: 700; text-decoration: none; border-top: 1px solid #ddf4e7; }
#gs-chat-root .gs-chat-whatsapp:hover { background: #dcf6e5; }
#gs-chat-root .gs-chat-form { padding: 10px; display: flex; align-items: center; gap: 8px; flex: 0 0 auto; border-top: 1px solid #e9eef7; background: white; margin: 0; }
#gs-chat-root .gs-chat-form input { appearance: none; border: 1px solid #d9e0ee; height: 41px; border-radius: 10px; background: #fff; box-shadow: none; outline: none; padding: 0 12px; flex: 1 1 auto; min-width: 0; color: #1e2940; font-size: 13px; }
#gs-chat-root .gs-chat-form input:focus { border-color: var(--gs-chat-color); }
#gs-chat-root .gs-chat-form button { flex: 0 0 auto; border: 0; display: grid; place-items: center; height: 41px; width: 43px; background: var(--gs-chat-color); color: white; border-radius: 10px; padding: 10px; }
#gs-chat-root .gs-chat-form button svg { width: 20px; height: 20px; }
#gs-chat-root .gs-chat-form button:disabled { opacity: .55; cursor: not-allowed; }
#gs-chat-root .gs-chat-credit { flex: 0 0 auto; text-align: center; color: #8794a6; background: white; font-size: 10px; padding: 0 10px 8px; }
@media(max-width: 480px){
  #gs-chat-root,#gs-chat-root.gs-chat-left { bottom: max(12px,env(safe-area-inset-bottom)); right: 12px; left: auto; }
  #gs-chat-root .gs-chat-panel,#gs-chat-root.gs-chat-left .gs-chat-panel { position: fixed; right: 12px; left: 12px; bottom: calc(72px + env(safe-area-inset-bottom)); width: auto; height: min(68dvh,620px); max-height: calc(100dvh - 100px); }
  #gs-chat-root .gs-chat-launcher-text { font-size: 12px; }
}
@media(prefers-reduced-motion:reduce){ #gs-chat-root * { transition: none !important; scroll-behavior: auto !important; } }
#gs-chat-root .gs-chat-form .screen-reader-text { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
