/* GetSafeNow website chat button + panel. Every rule is prefixed gsnc- so nothing on the
   host page is affected. Colours follow the new light site (2026-11-22): navy button,
   white panel, light grey header, blue accents. */
.gsnc-btn {
  position: fixed; right: 20px; bottom: 20px; z-index: 900;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 18px; border-radius: 100px; border: 1px solid #0f2a47;
  background: #0f2a47; color: #fff; font: 600 0.92rem/1 'Plus Jakarta Sans', system-ui, sans-serif;
  box-shadow: 0 10px 28px -10px rgba(15,42,71,0.45);
  cursor: pointer;
}
.gsnc-btn:hover { background: #18395f; border-color: #18395f; }
.gsnc-btn:focus-visible { outline: 2px solid #1e88c8; outline-offset: 3px; }
.gsnc-btn.gsnc-hide { display: none; }
.gsnc-dot { width: 9px; height: 9px; border-radius: 50%; background: #9aa8b6; flex-shrink: 0; }
.gsnc-on .gsnc-dot { background: #3fd07a; box-shadow: 0 0 0 3px rgba(63,208,122,0.25); }
.gsnc-badge { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #1e88c8; color: #fff;
              font-size: 0.72rem; line-height: 18px; text-align: center; }

.gsnc-panel {
  position: fixed; right: 20px; bottom: 20px; z-index: 901;
  width: 360px; height: min(560px, calc(100vh - 40px));
  display: flex; flex-direction: column;
  background: #fff; color: #14243a; border: 1px solid #dde3ea; border-radius: 16px;
  box-shadow: 0 24px 60px -18px rgba(15,42,71,0.35);
  font: 400 0.9rem/1.45 'Inter', system-ui, sans-serif; overflow: hidden;
}
.gsnc-panel[hidden] { display: none; }
.gsnc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px;
             padding: 14px 16px; border-bottom: 1px solid #dde3ea; background: #f6f7f9; }
.gsnc-title strong { font: 700 1rem/1.2 'Plus Jakarta Sans', system-ui, sans-serif; color: #0f2a47; }
.gsnc-status { color: #5a6878; font-size: 0.78rem; margin-top: 3px; }
.gsnc-close { background: none; border: 0; color: #5a6878; font-size: 1.6rem; line-height: 1; cursor: pointer; padding: 0 2px; }
.gsnc-close:hover { color: #0f2a47; }

.gsnc-msgs { list-style: none; margin: 0; padding: 14px; flex: 1; overflow-y: auto;
             display: flex; flex-direction: column; gap: 8px; }
.gsnc-msg { max-width: 82%; padding: 8px 12px; border-radius: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.gsnc-us { align-self: flex-start; background: #eef1f5; color: #14243a; border-bottom-left-radius: 5px; }
.gsnc-you { align-self: flex-end; background: #1e88c8; color: #fff; border-bottom-right-radius: 5px; }

.gsnc-email { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 14px 0; }
.gsnc-email input { flex: 1; min-width: 0; }
.gsnc-note { width: 100%; color: #5a6878; font-size: 0.74rem; }
.gsnc-compose { display: flex; gap: 8px; padding: 8px 14px 4px; align-items: flex-end; }
.gsnc-compose textarea { flex: 1; resize: none; min-height: 42px; max-height: 120px; }
.gsnc-panel input, .gsnc-panel textarea {
  background: #fafbfc; color: #14243a; border: 1px solid #dde3ea; border-radius: 10px;
  padding: 9px 11px; font: inherit; font-size: 16px; /* 16px stops iPhones zooming in */
}
.gsnc-panel input::placeholder, .gsnc-panel textarea::placeholder { color: #8a96a3; }
.gsnc-panel input:focus, .gsnc-panel textarea:focus { outline: none; border-color: #1e88c8; background: #fff;
  box-shadow: 0 0 0 3px rgba(30,136,200,0.15); }
.gsnc-panel button:not(.gsnc-close) {
  background: #0f2a47; color: #fff; border: 0; border-radius: 10px; padding: 9px 14px;
  font: 600 0.85rem 'Plus Jakarta Sans', system-ui, sans-serif; cursor: pointer;
}
.gsnc-panel button:not(.gsnc-close):hover { background: #18395f; }
.gsnc-panel button:disabled { opacity: 0.6; }
.gsnc-email button { background: #fff !important; color: #0f2a47 !important; border: 1px solid #dde3ea !important; }
.gsnc-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.gsnc-err { color: #a5503b; font-size: 0.78rem; padding: 0 14px; min-height: 1.1em; }
.gsnc-foot { color: #5a6878; font-size: 0.7rem; padding: 2px 14px 12px; }

@media (max-width: 520px) {
  .gsnc-btn { right: 14px; bottom: 14px; }
  .gsnc-panel { right: 0; left: 0; bottom: 0; width: 100%; height: 88vh; height: 88dvh;
                border-radius: 16px 16px 0 0; }
}
