.gs-chat{font-family:Inter,system-ui,-apple-system,sans-serif;font-size:14px;line-height:1.65;color:#203e33}
html[dir=rtl] .gs-chat{font-family:Alexandria,Tahoma,sans-serif}
.gs-chat *{box-sizing:border-box}.gs-chat [hidden]{display:none!important}
.gs-chat-launch{position:fixed;inset-inline-end:24px;bottom:calc(22px + env(safe-area-inset-bottom));z-index:1050;display:flex;align-items:center;gap:10px;background:#117759;color:#fff!important;text-decoration:none!important;border-radius:30px;min-height:52px;padding:13px 18px;box-shadow:0 6px 22px #143e3529;font-size:13px;font-weight:600;border:1px solid #ffffff50}
.gs-chat-launch:hover{background:#105c46}.gs-chat-dot{height:8px;width:8px;background:#f6dba4;border-radius:50%}
.gs-chat-panel{position:fixed;inset-inline-end:24px;bottom:calc(87px + env(safe-area-inset-bottom));z-index:1050;width:380px;max-width:calc(100vw - 32px);max-height:min(680px,calc(100dvh - 115px));background:#fff;border:1px solid #dbe6dc;border-radius:18px;overflow:hidden;box-shadow:0 16px 55px #123f3529;display:flex;flex-direction:column;text-align:start}
.gs-chat-header{display:flex;justify-content:space-between;align-items:start;gap:18px;padding:18px 20px;background:#153f35;color:white;flex-shrink:0}
.gs-chat-header strong{display:block;font-size:18px;font-weight:650}.gs-chat-header p{font-size:11px;color:#cee0ce;margin:3px 0 0}
.gs-chat-close{background:transparent;border:0;color:#fff;font-size:27px;line-height:1;width:34px;height:34px;border-radius:50%;cursor:pointer}.gs-chat-close:hover{background:#ffffff1a}
.gs-chat-content{padding:15px 18px;overflow:auto;overscroll-behavior:contain;min-height:60px;flex:1}
.gs-chat-faq>summary{font-weight:650;font-size:12px;cursor:pointer;min-height:28px}
.gs-chat-questions{padding-top:8px}.gs-chat-questions>button{width:100%;display:flex;justify-content:space-between;gap:12px;align-items:center;min-height:40px;padding:9px 11px;background:#f4f7ef;border:1px solid #e4ebdf;color:#345c42;border-radius:8px;margin-bottom:7px;font:inherit;font-size:11px;text-align:start;cursor:pointer}
.gs-chat-questions>button:hover{background:#ebf2e3}.gs-chat-answer{padding:2px 9px 13px;font-size:12px;line-height:1.85}.gs-chat-answer p{margin:0 0 6px;color:#63776b}.gs-chat-answer a{color:#087b53;text-decoration:underline;font-weight:600}
.gs-chat-context{font-size:11px;color:#758173;margin:12px 0}.gs-chat-reference{font-size:11px;color:#647366;margin:8px 0;overflow-wrap:anywhere}
.gs-chat-messages{display:flex;flex-direction:column;gap:12px}.gs-chat-bubble{max-width:94%;padding:11px 13px;border-radius:12px;background:#f0f4e9;align-self:flex-start;overflow-wrap:anywhere}
.gs-chat-bubble.gs-chat-you{align-self:flex-end;background:#e4f1e9}.gs-chat-bubble strong{display:block;font-size:10px;color:#517563;margin-bottom:4px}.gs-chat-bubble p{font-size:13px;color:#254334;white-space:pre-wrap;margin:0}.gs-chat-bubble time{display:block;font-size:9px;margin-top:7px;color:#758679}
.gs-chat-status{font-size:11px;color:#547761;margin:10px 0 0;white-space:pre-wrap}.gs-chat-status.is-error{color:#a13729}
.gs-chat-older,.gs-chat-retry{font:inherit;font-size:11px;color:#267552;background:transparent;border:1px solid #dce7d8;border-radius:6px;padding:7px 10px;margin:8px 0;cursor:pointer}
.gs-chat-form{border-top:1px solid #e3ebdf;padding:13px 18px 16px;background:#fff;flex-shrink:0}
.gs-chat-identity{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:10px}.gs-chat label{display:block;font-size:10px;font-weight:600;color:#597261;margin:0}.gs-chat input,.gs-chat textarea{width:100%;display:block;border:1px solid #d6e2d5;border-radius:8px;background:white;color:#294836;font:inherit;font-size:12px;padding:9px 10px;min-height:37px;margin-top:4px;box-shadow:none}
.gs-chat textarea{resize:vertical;min-height:60px;max-height:110px}.gs-chat .gs-chat-message-label{font-size:11px}
.gs-chat-guidance{font-size:9px;line-height:1.75;color:#768575;margin:7px 0 10px}
.gs-chat-send{display:block;width:100%;border:1px solid #117759;background:#117759;color:#fff;border-radius:8px;font:inherit;font-size:12px;font-weight:600;padding:10px;min-height:41px;cursor:pointer}.gs-chat-send:disabled{opacity:.65;cursor:default}
.gs-chat-honey{position:absolute;inset-inline-start:-10000px;width:1px;height:1px;overflow:hidden}
.gs-chat :focus-visible{outline:3px solid #96bda0!important;outline-offset:3px}
@media(max-width:640px){.gs-chat-launch{inset-inline-end:16px;bottom:calc(17px + env(safe-area-inset-bottom));padding:12px 15px;min-height:49px}.gs-chat-panel{inset-inline-end:12px;bottom:calc(78px + env(safe-area-inset-bottom));width:380px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 105px)}.gs-chat-on-campaign .gs-chat-launch{bottom:calc(92px + env(safe-area-inset-bottom))}.gs-chat-on-campaign .gs-chat-panel{bottom:calc(152px + env(safe-area-inset-bottom));max-height:calc(100dvh - 180px)}.gs-chat-header{padding:14px 16px}.gs-chat-header strong{font-size:16px}.gs-chat-content{padding:12px 15px}.gs-chat-form{padding:11px 15px 13px}.gs-chat-identity{gap:8px}.gs-chat-launch span:not(.gs-chat-dot){font-size:11px}}
/* Admin conversation history uses the same safe plain-text bubbles. */
.gs-chat-admin-history{display:flex;flex-direction:column;gap:13px;max-height:500px;overflow:auto;padding:20px;border:1px solid #e2e8e0;background:#fff;border-radius:12px;overscroll-behavior:contain}
.gs-chat-admin-bubble{max-width:85%;padding:12px 15px;background:#f1f5ec;border-radius:12px;align-self:flex-start;overflow-wrap:anywhere}
.gs-chat-admin-bubble.is-staff{align-self:flex-end;background:#e4f1e9}.gs-chat-admin-bubble p{white-space:pre-wrap;margin:7px 0;font-size:.88rem}.gs-chat-admin-bubble time{font-size:.7rem;color:#768171}
