/* Floating public support widget — home + shop */
.cg-sw {
  --sw-bg: #07111f;
  --sw-panel: #0c1728;
  --sw-line: rgba(110, 190, 255, 0.22);
  --sw-text: #e8f4ff;
  --sw-muted: #9ec8e8;
  --sw-good: #7aeec3;
  --sw-accent: #1da8e5;
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 99980;
  font-family: Inter, system-ui, -apple-system, Segoe UI, sans-serif;
}
.cg-sw-launcher {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 12px 16px 12px 14px;
  background: linear-gradient(135deg, #087a54, #10b981 55%, #1da8e5);
  color: #042018;
  font-weight: 900;
  font-size: 14px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.38), 0 0 0 1px rgba(255, 255, 255, 0.12) inset;
}
.cg-sw-launcher:hover { filter: brightness(1.05); }
.cg-sw-launcher:focus-visible {
  outline: 2px solid #7aeec3;
  outline-offset: 3px;
}
.cg-sw-launcher-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(4, 32, 24, 0.18);
  display: grid;
  place-items: center;
  font-size: 13px;
  line-height: 1;
}
.cg-sw-panel {
  display: none;
  position: absolute;
  right: 0;
  bottom: 58px;
  width: min(380px, calc(100vw - 28px));
  max-height: min(72vh, 560px);
  overflow: hidden;
  display: none;
  flex-direction: column;
  background: linear-gradient(180deg, #0e1c30, var(--sw-panel));
  border: 1px solid var(--sw-line);
  border-radius: 18px;
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.45);
  color: var(--sw-text);
}
.cg-sw.open .cg-sw-panel { display: flex; }
.cg-sw-head {
  padding: 14px 16px 12px;
  border-bottom: 1px solid var(--sw-line);
  background: linear-gradient(135deg, rgba(16, 50, 80, 0.55), transparent);
}
.cg-sw-head h2 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 1000;
  color: #fff;
  line-height: 1.25;
}
.cg-sw-head p {
  margin: 0;
  font-size: 12.5px;
  color: var(--sw-muted);
  line-height: 1.45;
}
.cg-sw-close {
  position: absolute;
  top: 10px;
  right: 10px;
  border: 0;
  background: rgba(255, 255, 255, 0.06);
  color: #dff4ff;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}
.cg-sw-body {
  padding: 12px 14px 14px;
  overflow: auto;
  flex: 1;
}
.cg-sw-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}
.cg-sw-chip {
  border: 1px solid rgba(96, 190, 255, 0.28);
  background: #08111f;
  color: #dff4ff;
  border-radius: 999px;
  padding: 8px 11px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  text-align: left;
}
.cg-sw-chip:hover {
  border-color: rgba(122, 238, 195, 0.45);
  color: #fff;
}
.cg-sw-answer {
  display: none;
  margin: 0 0 12px;
  padding: 12px 13px;
  border-radius: 14px;
  background: rgba(8, 24, 40, 0.9);
  border: 1px solid rgba(122, 238, 195, 0.22);
  color: #d9efff;
  font-size: 13.5px;
  line-height: 1.5;
}
.cg-sw-answer strong {
  display: block;
  color: var(--sw-good);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.cg-sw-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0 12px;
  color: #7fa9c8;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.cg-sw-divider::before,
.cg-sw-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--sw-line);
}
.cg-sw-form label {
  display: block;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #9ec8e8;
  margin: 0 0 5px;
}
.cg-sw-form .field { margin: 0 0 10px; }
.cg-sw-form input,
.cg-sw-form textarea {
  width: 100%;
  box-sizing: border-box;
  border-radius: 12px;
  border: 1px solid rgba(95, 190, 255, 0.25);
  background: #0a1422;
  color: #fff;
  padding: 10px 12px;
  font: inherit;
  font-size: 14px;
}
.cg-sw-form textarea { min-height: 88px; resize: vertical; }
.cg-sw-form input:focus,
.cg-sw-form textarea:focus {
  outline: 2px solid rgba(122, 238, 195, 0.45);
  outline-offset: 1px;
}
.cg-sw-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.cg-sw-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.cg-sw-btn {
  border: 0;
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 900;
  font-size: 13px;
  cursor: pointer;
  color: #042018;
  background: linear-gradient(135deg, #087a54, #10b981);
}
.cg-sw-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.cg-sw-btn.secondary {
  color: #e8f4ff;
  background: linear-gradient(135deg, #111827, #26364d);
  border: 1px solid rgba(120, 190, 255, 0.18);
}
.cg-sw-status {
  margin: 10px 0 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--sw-muted);
  min-height: 1.2em;
}
.cg-sw-status.ok { color: #9ef5c8; }
.cg-sw-status.err { color: #ffb4b4; }
.cg-sw-foot {
  margin-top: 10px;
  font-size: 11.5px;
  color: #7fa9c8;
  line-height: 1.4;
}
.cg-sw-foot a { color: #7dd3fc; }
@media (max-width: 520px) {
  .cg-sw { right: 12px; bottom: 12px; }
  .cg-sw-launcher span.cg-sw-launcher-label { max-width: 11ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
