#cg-support{--cgs-navy:#082b4c;--cgs-green:#39b82a;--cgs-dark:#23751d;position:fixed;right:max(24px,env(safe-area-inset-right));bottom:max(24px,env(safe-area-inset-bottom));z-index:1040;font-family:Manrope,'Segoe UI',Arial,sans-serif;color:var(--cgs-navy);font-size:14px;line-height:1.5;text-align:left}#cg-support *{box-sizing:border-box}#cg-support button,#cg-support textarea{font:inherit}#cg-support button{cursor:pointer}#cg-support [hidden]{display:none!important}#cg-support a{color:var(--cgs-dark)}#cg-support :focus-visible{outline:3px solid #e8a23a;outline-offset:3px}.cgs-launcher{display:none;align-items:center;gap:12px;border:1px solid #7bd363;background:linear-gradient(135deg,#43c533,#2c9c23);color:#082b4c;padding:12px 18px 12px 12px;border-radius:22px;box-shadow:0 5px 0 #1c651c,0 16px 38px #082b4c30;transition:transform .2s}.cgs-ready .cgs-launcher{display:flex}.cgs-launcher:hover{transform:translateY(-3px)}.cgs-launch-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:14px;background:#f6ffef;box-shadow:0 3px 0 #082b4c18}.cgs-launch-icon svg,.cgs-avatar svg{width:25px;height:25px}.cgs-launch-label{font-size:10px;text-align:left;letter-spacing:.25px}.cgs-launch-label strong{display:block;font-size:14px;letter-spacing:0}.cgs-launch-arrow{font-size:23px;margin-left:4px}.cgs-panel{position:absolute;right:0;bottom:91px;width:390px;height:min(630px,calc(100dvh - 140px));max-height:calc(100vh - 140px);display:flex;flex-direction:column;background:#fff;border:1px solid #dce7d8;border-radius:24px;box-shadow:0 22px 70px #082b4c30;overflow:hidden;animation:cgs-arrive .22s ease-out}.cgs-header{display:flex;align-items:center;gap:12px;padding:23px 20px;background:radial-gradient(circle at 90% 0,#286f43,transparent 70%),#082b4c;color:white;flex-shrink:0}.cgs-avatar{display:grid;place-items:center;width:46px;height:46px;flex-shrink:0;background:#39b82a;border:1px solid #99e087;border-radius:16px;box-shadow:0 4px 0 #0002}.cgs-kicker{font-size:8px;letter-spacing:1.7px;color:#c6e8bc;font-weight:800}.cgs-header h2{font-size:19px;font-weight:800;line-height:1.3;color:#fff;margin:3px 0}.cgs-header p{font-size:10px;color:#cfddd8;margin:0}.cgs-close{align-self:flex-start;margin-left:auto;background:#ffffff12;border:1px solid #ffffff30;border-radius:10px;color:#fff;width:36px;height:36px;font-size:26px!important;line-height:1}.cgs-welcome{padding:19px 20px 15px;background:linear-gradient(120deg,#f1f8eb,#fff);border-bottom:1px solid #e4ecdf;flex-shrink:0}.cgs-welcome h3,.cgs-guest h3{font-size:16px;font-weight:800;color:#082b4c;margin:0 0 6px}.cgs-welcome p{font-size:11px;color:#576e70;margin:0 0 13px}.cgs-topics{display:flex;gap:6px;flex-wrap:wrap}.cgs-topics button{border:1px solid #cfdfc7;border-radius:20px;padding:7px 10px;background:white;color:#23751d;font-size:10px!important;font-weight:700!important;min-height:32px}.cgs-topics button:hover{background:#e7f5df}.cgs-messages{flex:1;min-height:65px;overflow-y:auto;overscroll-behavior:contain;padding:18px;background:#fafcf8;scrollbar-width:thin}.cgs-empty{text-align:center;color:#6a7b7d;font-size:12px;margin:18px 8px}.cgs-message{max-width:88%;margin:0 0 14px;padding:11px 13px;border:1px solid #e1e8dd;border-radius:15px 15px 15px 4px;background:white;overflow-wrap:anywhere}.cgs-message.cgs-mine{margin-left:auto;background:#e9f6e2;border-color:#cfe7c3;border-radius:15px 15px 4px 15px}.cgs-message strong{display:block;font-size:10px;color:#23751d;margin-bottom:5px}.cgs-message p{white-space:pre-wrap;margin:0;font-size:12px;color:#203e50}.cgs-message time{display:block;text-align:right;font-size:9px;color:#687b77;margin-top:5px}.cgs-status{font-size:10px;line-height:1.5;color:#576d70;padding:8px 18px;margin:0;border-top:1px solid #e7eee3;flex-shrink:0}.cgs-status.cgs-error{color:#9e3325;background:#fff4ef}.cgs-form{display:flex;gap:10px;padding:6px 14px 12px;align-items:center;flex-shrink:0}.cgs-form textarea{resize:none;border:1px solid #d7e2d0;border-radius:13px;background:#f8fbf5;color:#082b4c;padding:11px;min-width:0;flex:1;font-size:12px!important;line-height:1.5}.cgs-form button{width:44px;height:44px;flex-shrink:0;display:grid;place-items:center;border:0;background:#39b82a;color:#082b4c;border-radius:13px;box-shadow:0 3px 0 #23751d30}.cgs-form button:disabled{opacity:.45;cursor:wait}.cgs-form button svg{width:23px;height:23px}.cgs-footer{font-size:9px;text-align:center;padding:10px 14px;border-top:1px solid #e7eee3;color:#71807d;flex-shrink:0}.cgs-footer a{font-weight:800;margin-left:3px}.cgs-guest{flex:1;min-height:0;overflow:auto;padding:22px;text-align:center;background:#fbfcf8}.cgs-guest p{color:#637674;font-size:12px;margin:10px auto 18px;max-width:280px}.cgs-lock{display:block;color:#23751d;font-size:30px;margin-bottom:8px}.cgs-signin{display:block;padding:13px 20px;border-radius:12px;background:#39b82a;color:#082b4c!important;text-decoration:none;font-size:13px;font-weight:800;box-shadow:0 3px 0 #23751d25}.cgs-faq{display:inline-block;margin-top:17px;font-size:12px}.cgs-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.cgs-noscript{display:block;background:white;padding:12px;border:1px solid #cddfc4;border-radius:12px}@keyframes cgs-arrive{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}@media(max-width:480px){#cg-support{right:14px;bottom:max(16px,env(safe-area-inset-bottom))}.cgs-panel{width:calc(100vw - 28px);bottom:79px;height:min(590px,calc(100dvh - 118px));max-height:calc(100dvh - 118px);border-radius:21px}.cgs-launcher{padding:9px 13px 9px 9px;border-radius:19px}.cgs-launch-icon{width:37px;height:37px}.cgs-header{padding:17px}.cgs-welcome{padding:14px 17px}.cgs-welcome h3{font-size:14px}}@media(max-height:580px){.cgs-welcome{display:none}.cgs-header{padding:12px 16px}.cgs-panel{bottom:76px;height:calc(100dvh - 108px);max-height:calc(100dvh - 108px)}.cgs-footer{display:none}}@media(prefers-reduced-motion:reduce){.cgs-panel{animation:none}.cgs-launcher{transition:none}.cgs-launcher:hover{transform:none}}@media print{#cg-support{display:none}}

.cgs-handoff{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;padding:10px 16px;border-bottom:1px solid #dce7d8;background:#f0f7eb;flex-shrink:0}.cgs-mode{font-size:10px;font-weight:800;color:#23751d}.cgs-handoff button{border:1px solid #c5dab8;border-radius:18px;background:#fff;padding:7px 10px;font-size:10px!important;color:#082b4c;min-height:32px}.cgs-handoff button:disabled{opacity:.6;cursor:wait}.cgs-message.cgs-automatic{border-style:dashed;background:#f2f5f0}.cgs-message.cgs-automatic strong{color:#63716a}
/* Conversation-first layout: keep the transcript as the flexible main area. */
#cg-support{bottom:calc(max(16px,env(safe-area-inset-bottom)) + var(--cgs-keyboard-offset,0px))}.cgs-panel{bottom:0;width:min(460px,calc(100vw - 48px));height:min(760px,calc(var(--cgs-vh,100dvh) - 40px));max-height:calc(var(--cgs-vh,100dvh) - 40px);border-radius:22px}.cgs-open .cgs-launcher{visibility:hidden;pointer-events:none}.cgs-header{padding:13px 16px;gap:10px}.cgs-avatar{width:38px;height:38px;border-radius:12px}.cgs-header h2{font-size:17px;margin:0 0 3px}.cgs-header p{font-size:10px}.cgs-window-controls{display:flex;gap:5px;margin-left:auto;align-self:center}.cgs-close{margin:0;align-self:auto}.cgs-expand{background:#ffffff12;border:1px solid #ffffff30;border-radius:10px;color:white;width:34px;height:36px;font-size:22px!important}.cgs-welcome{display:block;padding:8px 14px;background:#f8fbf5}.cgs-topics{flex-wrap:nowrap;gap:6px;overflow-x:auto}.cgs-topics button{white-space:nowrap;padding:5px 10px;min-height:30px}.cgs-handoff{padding:7px 14px;min-height:44px}.cgs-handoff button{padding:5px 10px}.cgs-mode{max-width:50%;overflow-wrap:anywhere}.cgs-messages{flex:1 1 0;min-height:0;padding:18px;scrollbar-gutter:stable}.cgs-message{max-width:90%;padding:12px 14px;margin-bottom:15px}.cgs-message p{font-size:14px;line-height:1.65}.cgs-message strong{font-size:11px}.cgs-message time{font-size:10px}.cgs-status{font-size:10px;padding:5px 14px;line-height:1.4}.cgs-form{padding:7px 12px 10px;gap:8px}.cgs-form textarea{font-size:14px!important;padding:9px 11px;line-height:1.45}.cgs-footer{padding:6px 12px;font-size:9px}.cgs-expanded .cgs-panel{width:min(760px,calc(100vw - 48px));height:calc(var(--cgs-vh,100dvh) - 40px)}
@media(max-width:600px){#cg-support{right:8px;bottom:calc(max(8px,env(safe-area-inset-bottom)) + var(--cgs-keyboard-offset,0px))}.cgs-panel,.cgs-expanded .cgs-panel{width:calc(100vw - 16px);height:calc(var(--cgs-vh,100dvh) - 24px);max-height:calc(var(--cgs-vh,100dvh) - 24px);border-radius:18px}.cgs-expand{display:none}.cgs-header{padding:11px 13px}.cgs-messages{padding:14px}.cgs-message{max-width:94%}.cgs-form textarea{font-size:16px!important}.cgs-launch-label strong{font-size:14px}}
.cgs-short .cgs-welcome,.cgs-short .cgs-footer,.cgs-short .cgs-status:not(.cgs-error){display:none}.cgs-short .cgs-header{padding:7px 12px}.cgs-short .cgs-header p{display:none}.cgs-short .cgs-handoff{padding:4px 12px;min-height:36px}.cgs-short .cgs-form{padding:5px 10px}.cgs-short .cgs-form textarea{height:42px;padding:8px;line-height:1.4}.cgs-short .cgs-form button{height:38px}.cgs-short .cgs-messages{padding:10px}
/* Staff workspace: keep the transcript and reply controls in the page. */
#cg-support.cgs-inline{position:static;z-index:auto;width:100%;font-size:14px;flex:1;min-width:0;filter:none;opacity:1}#cg-support.cgs-inline .cgs-panel{position:static;width:100%;height:650px;max-height:none;border:0;border-radius:0;box-shadow:none;animation:none}#cg-support.cgs-inline .cgs-launcher,#cg-support.cgs-inline .cgs-window-controls{display:none}#cg-support.cgs-inline .cgs-header{padding:18px 22px}#cg-support.cgs-inline .cgs-header h2{font-size:20px}#cg-support.cgs-inline .cgs-header p{font-size:12px}#cg-support.cgs-inline .cgs-handoff{padding:12px 20px}#cg-support.cgs-inline .cgs-handoff button{font-size:13px!important;font-weight:800;min-height:42px;padding:9px 14px;background:#246b25;color:#fff;border-color:#246b25}#cg-support.cgs-inline .cgs-mode{font-size:12px}#cg-support.cgs-inline .cgs-messages{padding:24px}#cg-support.cgs-inline .cgs-message{max-width:85%}#cg-support.cgs-inline .cgs-message p{font-size:15px}#cg-support.cgs-inline .cgs-status{display:block;font-size:12px;padding:12px 20px;background:#f2f6fa;color:#29475e}#cg-support.cgs-inline .cgs-status.cgs-error{color:#9e3325;background:#fff4ef}#cg-support.cgs-inline .cgs-form{padding:14px 20px;background:#fff}#cg-support.cgs-inline .cgs-form textarea{font-size:15px!important;min-height:76px}#cg-support.cgs-inline .cgs-form textarea:disabled{background:#edf1f4;color:#526779;opacity:1;cursor:not-allowed}#cg-support.cgs-inline .cgs-form button{width:58px;height:48px;background:#246b25;color:#fff}#cg-support.cgs-inline .cgs-form button:disabled{opacity:1;background:#dce4eb;color:#506375;cursor:not-allowed}#cg-support.cgs-inline .cgs-form button::after{content:'Send';font-size:11px}#cg-support.cgs-inline .cgs-form button svg{width:17px;height:17px}#cg-support.cgs-inline .cgs-footer{display:block;font-size:11px;padding:10px}@media(max-width:720px){#cg-support.cgs-inline .cgs-panel{height:620px}#cg-support.cgs-inline .cgs-messages{padding:16px}#cg-support.cgs-inline .cgs-form{padding:12px}#cg-support.cgs-inline .cgs-message{max-width:94%}}

#cg-support .cgs-hours{margin:0;padding:9px 16px;background:#f1f7ed;color:#456148;font-size:11px;line-height:1.6;border-bottom:1px solid #dce7d7;flex-shrink:0}#cg-support .cgs-handoff{flex-wrap:wrap;gap:8px}#cg-support [data-support-action="resolve"]{background:#e8f5e4;color:#29632a}#cg-support [data-support-action="reopen"]{background:#e9f2fc;color:#204f76}#cg-support .cgs-handoff button[hidden]{display:none!important}

/* Optional feedback stays collapsed so the conversation keeps its space. */
#cg-support .cgs-feedback{flex-shrink:0;background:#fff;border-top:1px solid #d6e6d1;max-height:42%;overflow:auto}
#cg-support .cgs-feedback summary{padding:12px 16px;color:#245a2a;font-weight:800;cursor:pointer;background:#f2f8ee;font-size:12px}
#cg-support .cgs-feedback summary span{font-weight:500;font-size:11px}
#cg-support .cgs-feedback-content{padding:12px 16px}
#cg-support .cgs-feedback fieldset{border:0;padding:0;margin:0;min-width:0}
#cg-support .cgs-feedback legend{font-size:13px;font-weight:800;margin-bottom:8px}
#cg-support .cgs-rating-options{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;margin-bottom:12px}
#cg-support .cgs-rating-options label{position:relative;min-width:0;cursor:pointer}
#cg-support .cgs-rating-options input{position:absolute;opacity:0;width:1px;height:1px}
#cg-support .cgs-rating-options span{display:flex;flex-direction:column;align-items:center;justify-content:center;border:1px solid #cbdcc6;border-radius:10px;background:#fff;min-height:54px;padding:5px 2px;color:#294650}
#cg-support .cgs-rating-options b{font-size:14px}#cg-support .cgs-rating-options small{font-size:9px}
#cg-support .cgs-rating-options input:checked+span{background:#e7f6dd;border:2px solid #2c7a25;color:#20541f}
#cg-support .cgs-rating-options input:focus-visible+span{outline:3px solid #d79222;outline-offset:2px}
#cg-support .cgs-feedback label{font-size:12px}#cg-support .cgs-feedback textarea{display:block;width:100%;resize:vertical;max-height:100px;border:1px solid #cad9c4;border-radius:10px;padding:9px;margin-top:5px;font-size:14px;background:#fff;color:#082b4c}
#cg-support .cgs-feedback form p{font-size:10px;color:#53675c;margin:8px 0}
#cg-support .cgs-feedback button{border:0;border-radius:10px;background:#246b25;color:#fff;font-weight:700;min-height:40px;padding:9px 14px}
#cg-support .cgs-feedback fieldset:disabled{opacity:.6}#cg-support .cgs-feedback-result{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;margin:0;line-height:1.6}
#cg-support .cgs-feedback-status{font-size:11px;margin:8px 0 0;color:#294650}
@media(max-width:600px){#cg-support .cgs-feedback textarea{font-size:16px}}
