/* Support Chat — demo-grade widget styles (companion to support-chat.js).
   Self-contained vcsc- classes; club-red accent to sit naturally on the demo. */

.vcsc-launcher {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9990;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  border: none;
  border-radius: 999px;
  background: #9e2b25;
  color: #fff;
  font: 600 14px/1.2 system-ui, -apple-system, "Segoe UI", sans-serif;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
  cursor: pointer;
}
.vcsc-launcher:hover { background: #86231e; }
.vcsc-launcher[hidden] { display: none; }

.vcsc-panel {
  position: fixed;
  right: 18px;
  bottom: 76px;
  z-index: 9991;
  width: min(92vw, 360px);
  max-height: min(72vh, 560px);
  display: flex;
  flex-direction: column;
  background: #fff;
  color: #1c1c1e;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 14px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.32);
  font: 14px/1.45 system-ui, -apple-system, "Segoe UI", sans-serif;
  overflow: hidden;
}
.vcsc-panel[hidden] { display: none; }

/* Stacking: Member Chat owns the bottom-right corner. While its launcher
   is also visible, Support lifts above it with a clear gap (the member
   chat widget toggles body.sc-stack while both are on screen). */
body.sc-stack .vcsc-launcher { bottom: 84px; }
body.sc-stack .vcsc-panel { bottom: 142px; }

@media (max-width: 560px) {
  body.sc-stack .vcsc-launcher { bottom: 78px; }
  body.sc-stack .vcsc-panel { bottom: 138px; }
}

.vcsc-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: #9e2b25;
  color: #fff;
}
.vcsc-title { font-weight: 700; font-size: 15px; }
.vcsc-sub { font-size: 12px; opacity: 0.88; }
.vcsc-close {
  border: none;
  background: transparent;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
}

.vcsc-messages {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #faf8f6;
}
.vcsc-empty { color: #6b6660; font-size: 13px; }
.vcsc-msg {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  padding: 8px 10px;
}
.vcsc-mine { background: #fdf0ef; border-color: rgba(158, 43, 37, 0.25); }
.vcsc-meta { font-size: 11.5px; font-weight: 600; color: #8a4a44; margin-bottom: 3px; }
.vcsc-body { white-space: pre-wrap; word-break: break-word; }

.vcsc-status {
  padding: 8px 14px;
  font-size: 12.5px;
  color: #9e2b25;
  background: #fdf0ef;
}
.vcsc-status[hidden] { display: none; }

.vcsc-form {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  background: #fff;
}
.vcsc-input {
  flex: 1 1 auto;
  resize: none;
  border: 1px solid rgba(0, 0, 0, 0.22);
  border-radius: 9px;
  padding: 8px 10px;
  font: inherit;
}
.vcsc-input:focus { outline: 2px solid rgba(158, 43, 37, 0.45); outline-offset: 0; }
.vcsc-send {
  align-self: flex-end;
  border: none;
  border-radius: 9px;
  background: #9e2b25;
  color: #fff;
  font-weight: 600;
  padding: 9px 14px;
  cursor: pointer;
}
.vcsc-send:hover { background: #86231e; }
.vcsc-send:disabled { opacity: 0.55; cursor: default; }

.vcsc-note {
  padding: 7px 14px 10px;
  font-size: 11.5px;
  color: #6b6660;
  background: #fff;
}
