/* Gray Systems chat widget. Every rule is scoped to .gcw-* and resets the
   properties WordPress themes commonly style on buttons, inputs and forms. */
.gcw-btn,.gcw-panel,.gcw-panel *{box-sizing:border-box;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;letter-spacing:normal;text-transform:none;line-height:1.45}
.gcw-panel button,.gcw-panel input,.gcw-panel textarea{margin:0;min-height:0;box-shadow:none;text-shadow:none;float:none}

.gcw-btn{position:fixed;right:24px;bottom:24px;z-index:99999;width:58px;height:58px;padding:0;border:0;border-radius:50%;cursor:pointer;
  display:grid;place-items:center;background:var(--gcw-b,#1e4f91);box-shadow:0 12px 30px -10px rgba(20,45,85,.6);transition:transform .2s ease}
.gcw-btn:hover{transform:translateY(-2px);background:var(--gcw-bd,#173f75)}
.gcw-btn.gcw-has-label{width:auto;padding:0 20px 0 16px;border-radius:999px;display:flex;gap:8px;color:#fff;font-size:15px;font-weight:700}
.gcw-btn:focus-visible{outline:3px solid #f2b705;outline-offset:3px}
.gcw-btn svg{width:26px;height:26px;fill:none;stroke:#fff;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

.gcw-panel{position:fixed;right:24px;bottom:94px;z-index:99999;width:min(380px,calc(100vw - 32px));height:min(500px,calc(100vh - 120px));
  display:flex;flex-direction:column;overflow:hidden;border-radius:16px;background:#fff;border:1px solid #d9e1ec;
  box-shadow:0 28px 60px -24px rgba(20,45,85,.45);color:#1d2733;font-size:15px;text-align:left}
.gcw-panel[hidden]{display:none}

.gcw-head{display:flex;align-items:center;justify-content:space-between;padding:12px 14px;background:#fff;border-bottom:3px solid var(--gcw-p,#1e4f91)}
.gcw-logo{display:block;height:44px;width:auto;max-width:260px}
.gcw-x{width:32px;height:32px;padding:0;border:0;border-radius:8px;cursor:pointer;background:#eef2f7;color:#1d2733;font-size:15px;line-height:1}
.gcw-x:hover{background:#dfe6ef}
.gcw-sub{padding:7px 14px;background:var(--gcw-p,#1e4f91);color:#fff;font-size:12.5px;font-weight:600}

.gcw-log{flex:1;overflow-y:auto;padding:14px;display:flex;flex-direction:column;gap:9px;background:#f4f6f9}
.gcw-msg{max-width:88%;padding:9px 12px;border-radius:12px;font-size:14.5px;white-space:pre-wrap;word-wrap:break-word;overflow-wrap:anywhere}
.gcw-bot{align-self:flex-start;background:#fff;border:1px solid #dde4ee;border-bottom-left-radius:4px}
.gcw-me{align-self:flex-end;background:var(--gcw-p,#1e4f91);color:#fff;border-bottom-right-radius:4px}
.gcw-msg a{color:var(--gcw-p,#1e4f91);font-weight:600;text-decoration:underline}
.gcw-me a{color:#fff}
.gcw-typing{opacity:.65;font-style:italic}

.gcw-chips{display:flex;flex-wrap:wrap;gap:6px}
.gcw-chip{padding:6px 11px;border-radius:999px;border:1.5px solid #c9d4e3;background:#fff;color:var(--gcw-p,#1e4f91);font-size:13px;font-weight:600;cursor:pointer;text-align:left}
.gcw-chip:hover{border-color:var(--gcw-p,#1e4f91);background:var(--gcw-pl,#f0f5fc)}
.gcw-connect{background:var(--gcw-p,#1e4f91);color:#fff;border-color:var(--gcw-p,#1e4f91)}
.gcw-connect:hover{background:var(--gcw-pd,#173f75);color:#fff}

.gcw-form{display:grid;gap:6px;padding:12px;border-radius:12px;background:#fff;border:1px solid #dde4ee}
.gcw-form label{font-size:12.5px;font-weight:600;color:#1d2733}
.gcw-form input,.gcw-form textarea{width:100%;padding:8px 10px;border-radius:8px;border:1.5px solid #c9d4e3;background:#fff;color:#1d2733;font-size:14px}
.gcw-form textarea{min-height:64px;resize:vertical}
.gcw-form input:focus,.gcw-form textarea:focus,.gcw-ask input:focus{outline:none;border-color:var(--gcw-p,#1e4f91)}
.gcw-hp{position:absolute!important;left:-9999px!important;width:1px!important;height:1px!important;overflow:hidden}

.gcw-foot{padding:10px 12px 12px;border-top:1px solid #dde4ee;background:#fff}
.gcw-foot[hidden]{display:none}
.gcw-ask{display:flex;gap:8px}
.gcw-ask input{flex:1;min-width:0;height:40px;padding:0 12px;border-radius:10px;border:1.5px solid #c9d4e3;background:#fff;color:#1d2733;font-size:14px}
.gcw-send{height:40px;padding:0 15px;border:0;border-radius:10px;cursor:pointer;background:var(--gcw-p,#1e4f91);color:#fff;font-size:14px;font-weight:700}
.gcw-send:hover{background:var(--gcw-pd,#173f75)}
.gcw-send:disabled{opacity:.5;cursor:default}
/* .gcw-panel prefix: beats the margin reset at the top of this file */
.gcw-panel .gcw-lead-btn{margin-top:12px;width:100%;height:38px;border-radius:10px;cursor:pointer;border:1.5px solid var(--gcw-p,#1e4f91);background:#fff;color:var(--gcw-p,#1e4f91);font-size:13.5px;font-weight:700}
.gcw-lead-btn:hover{background:var(--gcw-pl,#f0f5fc)}
.gcw-note{margin:2px 0 0;font-size:11.5px;color:#5d6b7c}

.gcw-left .gcw-btn,.gcw-left .gcw-panel{right:auto;left:24px}
.gcw-foot .gcw-ask{margin-bottom:0}

@media(max-width:520px){
  .gcw-btn,.gcw-left .gcw-btn{right:16px;bottom:16px;left:auto}
  .gcw-left .gcw-btn{left:16px;right:auto}
  .gcw-panel,.gcw-left .gcw-panel{right:8px;left:8px;bottom:84px;width:auto;height:min(500px,calc(100vh - 100px))}
}
@media(prefers-reduced-motion:reduce){.gcw-btn{transition:none}}

/* ---- Theme-proofing ---------------------------------------------------------
   Themes such as Hello Elementor style every button globally
   ([type=button],button{background:transparent;border:1px solid #c36;
   border-radius:3px;color:#c36} and a pink :hover/:focus). These selectors are
   more specific than any of those, and !important covers themes that use it. */
html body button.gcw-btn,html body button.gcw-btn:hover,html body button.gcw-btn:focus,html body button.gcw-btn:active{
  width:58px!important;height:58px!important;min-width:0!important;padding:0!important;margin:0!important;
  border:0!important;border-radius:50%!important;background:var(--gcw-b,#1e4f91)!important;color:#fff!important;
  display:grid!important;place-items:center!important;box-shadow:0 12px 30px -10px rgba(20,45,85,.6)!important;
  text-decoration:none!important;line-height:1!important;opacity:1!important}
html body button.gcw-btn:hover{background:var(--gcw-bd,#173f75)!important}
html body button.gcw-btn.gcw-has-label{width:auto!important;padding:0 20px 0 16px!important;border-radius:999px!important;display:flex!important;align-items:center!important;gap:8px!important;font-size:15px!important;font-weight:700!important}
html body button.gcw-btn svg{width:26px!important;height:26px!important;fill:none!important;stroke:#fff!important;stroke-width:2!important}

html body .gcw-panel button{text-transform:none!important;letter-spacing:normal!important;text-decoration:none!important;line-height:1.3!important;box-shadow:none!important;outline-offset:2px}
html body .gcw-panel button.gcw-send,html body .gcw-panel button.gcw-send:hover,html body .gcw-panel button.gcw-send:focus{
  background:var(--gcw-p,#1e4f91)!important;color:#fff!important;border:0!important;border-radius:10px!important;padding:0 15px!important;height:40px!important}
html body .gcw-panel button.gcw-send:hover{background:var(--gcw-pd,#173f75)!important}
html body .gcw-panel button.gcw-chip,html body .gcw-panel button.gcw-chip:focus{
  background:#fff!important;color:var(--gcw-p,#1e4f91)!important;border:1.5px solid #c9d4e3!important;border-radius:999px!important;padding:6px 11px!important;font-size:13px!important;font-weight:600!important;height:auto!important;white-space:normal!important}
html body .gcw-panel button.gcw-chip:hover{background:var(--gcw-pl,#f0f5fc)!important;border-color:var(--gcw-p,#1e4f91)!important;color:var(--gcw-p,#1e4f91)!important}
html body .gcw-panel button.gcw-connect,html body .gcw-panel button.gcw-connect:hover,html body .gcw-panel button.gcw-connect:focus{background:var(--gcw-p,#1e4f91)!important;color:#fff!important;border-color:var(--gcw-p,#1e4f91)!important}
html body .gcw-panel button.gcw-lead-btn,html body .gcw-panel button.gcw-lead-btn:focus{
  background:#fff!important;color:var(--gcw-p,#1e4f91)!important;border:1.5px solid var(--gcw-p,#1e4f91)!important;border-radius:10px!important;height:38px!important;width:100%!important;padding:0!important;margin-top:12px!important;font-size:13.5px!important;font-weight:700!important}
html body .gcw-panel button.gcw-lead-btn:hover{background:var(--gcw-pl,#f0f5fc)!important}
html body .gcw-panel button.gcw-x,html body .gcw-panel button.gcw-x:hover,html body .gcw-panel button.gcw-x:focus{
  background:#eef2f7!important;color:#1d2733!important;border:0!important;border-radius:8px!important;width:32px!important;height:32px!important;padding:0!important}
html body .gcw-panel input,html body .gcw-panel textarea{border:1.5px solid #c9d4e3!important;border-radius:8px!important;background:#fff!important;color:#1d2733!important;box-shadow:none!important}
html body .gcw-panel input:focus,html body .gcw-panel textarea:focus{border-color:var(--gcw-p,#1e4f91)!important;outline:none!important}
html body .gcw-panel .gcw-hp{position:absolute!important;left:-9999px!important}
