.cs-widget {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  font-family: "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
}

.cs-toggle {
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 50%;
  background: var(--accent, #c9a86c);
  color: var(--dark, #0a0908);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 0.2s ease, background 0.2s, box-shadow 0.2s;
}

.cs-toggle:hover {
  transform: translateY(-2px);
  background: var(--accent-hover, #dfc498);
  box-shadow: 0 10px 32px rgba(201, 168, 108, 0.32);
}

.cs-toggle svg { width: 26px; height: 26px; }

.cs-panel {
  position: absolute;
  right: 0;
  bottom: 68px;
  width: min(300px, calc(100vw - 40px));
  overflow: hidden;
  background: var(--paper, #1c1a18);
  border: 1px solid var(--line, rgba(212, 184, 150, 0.16));
  border-radius: 4px;
  box-shadow: var(--shadow-lg, 0 20px 56px rgba(0, 0, 0, 0.48));
  animation: csPop 0.22s ease;
}

@keyframes csPop {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.cs-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  background: var(--cream-deep, #181614);
  border-bottom: 1px solid var(--line, rgba(212, 184, 150, 0.16));
}

.cs-head strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink, #f3efe8);
}

.cs-head small {
  display: block;
  margin-top: 4px;
  color: var(--muted, #9a948a);
  font-size: 12px;
}

.cs-close {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line, rgba(212, 184, 150, 0.16));
  border-radius: 50%;
  background: var(--surface-raised, #242220);
  color: var(--ink-soft, #c8c2b8);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.cs-body { padding: 16px 20px 20px; }

.cs-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  width: 100%;
  background: var(--accent, #c9a86c);
  color: var(--dark, #0a0908);
  font: 600 12px/1 "Noto Sans SC", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.2s;
}

.cs-primary:hover { background: var(--accent-hover, #dfc498); }

.cs-widget.is-open .cs-toggle { background: var(--gold-dark, #b8956b); color: #fff; }
