.hc-support-dialog {
  box-sizing: border-box;
  width: min(430px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
  padding: 20px 24px;
  overflow: auto;
  overscroll-behavior: contain;
  color: var(--text, var(--site-text, #e1f5ef));
  background: var(--panel, var(--site-panel, #102c25));
  border: 1px solid var(--line, var(--site-line, #2b5043));
  border-radius: 16px;
  box-shadow: 0 24px 70px #0007;
  font: inherit;
}

.hc-support-dialog::backdrop { background: #03100bc7; }
.hc-support-dialog [hidden] { display: none !important; }
.hc-support-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.hc-support-head h2 { margin: 0; font-size: 1.2rem; }
.hc-support-close,
.hc-support-retry {
  cursor: pointer;
  color: inherit;
  border: 1px solid var(--line, var(--site-line, #2b5043));
  border-radius: 8px;
  background: transparent;
  font: inherit;
}
.hc-support-close { width: 40px; height: 40px; padding: 0; font-size: 1.5rem; }
.hc-support-retry { padding: 7px 12px; }
.hc-support-qr { text-align: center; }
.hc-support-qr p, .hc-support-message { margin: 12px 0; line-height: 1.55; }
.hc-support-image { margin: 16px auto 0; width: min(100%, 268px); }
.hc-support-image img {
  display: block;
  box-sizing: border-box;
  width: 100%;
  max-height: 300px;
  object-fit: contain;
  border-radius: 12px;
  padding: 10px;
  background: #fff;
}
.hc-support-dialog .hc-support-save {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  margin-top: 4px;
  padding: 6px 16px;
  border-radius: 8px;
  background: var(--site-mint, #66dcc1);
  color: #09362b;
  font-weight: 650;
  text-decoration: none;
}
.hc-support-qr .hc-support-hint,
.hc-support-qr .hc-support-expiry,
.hc-support-email {
  color: var(--muted, var(--site-muted, #9ab8ae));
  font-size: .84rem;
}
.hc-support-dialog .hc-support-email {
  display: block;
  padding: 15px 0 0;
  margin: 16px 0 0;
  border-top: 1px solid var(--line, var(--site-line, #2b5043));
  text-align: center;
  background: transparent;
}
.hc-support-email a { color: var(--site-mint, #66dcc1); overflow-wrap: anywhere; }
.site-support-settings { margin-top: 32px; }
.site-support-preview {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}
.site-support-preview img {
  width: 144px;
  height: 144px;
  object-fit: contain;
  background: #fff;
  border-radius: 10px;
  padding: 6px;
}
.site-support-preview p { margin: 4px 0 0; }

@media (max-width: 480px) {
  .hc-support-dialog { padding: 16px; }
}
