.cc-support-dialog {
  box-sizing: border-box;
  width: min(392px, calc(100vw - 32px));
  max-width: 392px;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  background: #fff;
  color: #0f172a;
  font-family: inherit;
  box-shadow: 0 24px 80px #0f172a33;
}

.cc-support-dialog::backdrop {
  background: #0f172a73;
  backdrop-filter: blur(3px);
}

.cc-support-dialog[open] {
  animation: cc-support-appear 160ms ease-out;
}

.cc-support-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid #f1f5f9;
}

.cc-support-header h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 28px;
}

.cc-support-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #64748b;
  cursor: pointer;
}

.cc-support-close:hover { background: #f1f5f9; }
.cc-support-close:focus-visible { outline: 2px solid #3b82f6; outline-offset: 2px; }

.cc-support-body {
  padding: 24px;
  text-align: center;
}

#cc-support-instruction {
  margin: 0;
  color: #334155;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
}

.cc-support-qr {
  display: block;
  width: min(100%, 300px);
  height: auto;
  margin: 20px auto;
  border-radius: 12px;
}

.cc-support-qr[hidden], .cc-support-error[hidden] { display: none; }

#cc-support-note {
  margin: 0;
  color: #64748b;
  font-size: 14px;
  line-height: 22px;
}

#cc-support-note strong { color: #2563eb; font-weight: 600; }
.cc-support-error { margin: 32px 0; color: #64748b; font-size: 14px; line-height: 22px; }

@media (max-width: 480px) {
  .cc-support-body { padding: 24px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .cc-support-dialog[open] { animation: none; }
}

@keyframes cc-support-appear {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
