:root {
  color-scheme: light;
  --bg: #fff;
  --soft: #f4f4f5;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --blue: #0071e3;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    15px/1.7 -apple-system,
    BlinkMacSystemFont,
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 700px;
  margin: auto;
  padding: 22px 24px;
}
a {
  color: inherit;
  text-decoration: none;
}
header a:first-child {
  font-size: 22px;
  font-weight: 600;
}
header a:last-child {
  font-size: 13px;
  color: var(--muted);
}
main {
  max-width: 560px;
  margin: 25px auto 80px;
  padding: 0 24px;
}
h1 {
  font-size: 29px;
  font-weight: 500;
  line-height: 1.5;
}
h2 {
  font-size: 20px;
  font-weight: 500;
  margin: 0 0 12px;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 12px;
}
.eyebrow {
  font-size: 12px;
  color: var(--muted);
}
section {
  margin-top: 28px;
  padding-top: 27px;
  border-top: 1px solid #eee;
}
label {
  display: block;
  font-size: 13px;
  margin: 18px 0;
}
input,
select {
  display: block;
  width: 100%;
  min-width: 0;
  border: 0;
  border-radius: 14px;
  background: var(--soft);
  color: var(--text);
  font: inherit;
  padding: 13px 15px;
  margin-top: 7px;
}
button,
.button {
  display: block;
  border: 0;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font: 500 14px/1.5 inherit;
  font-family: inherit;
  font-size: 14px;
  padding: 13px 22px;
  cursor: pointer;
  text-align: center;
  min-height: 46px;
  width: 100%;
  margin-top: 14px;
}
.secondary {
  background: var(--soft);
  color: var(--text);
}
.quiet {
  background: transparent;
  color: var(--muted);
  width: auto;
  font-size: 12px;
  margin: 0;
  padding: 10px;
}
.code-row {
  display: grid;
  grid-template-columns: 1fr 130px;
  gap: 10px;
  align-items: start;
}
.code-row button {
  margin-top: 7px;
  font-size: 12px;
}
.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.row span {
  font-size: 13px;
  color: var(--muted);
}
button:disabled {
  background: var(--soft);
  color: var(--muted);
  cursor: not-allowed;
}
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
#notice:empty {
  display: none;
}
#notice {
  background: var(--soft);
  border-radius: 14px;
  padding: 14px 17px;
  font-size: 13px;
  white-space: pre-line;
}
.amount {
  display: flex;
  gap: 5px;
  align-items: baseline;
  margin-bottom: 23px;
}
.amount strong {
  font-size: 66px;
  font-weight: 500;
}
.amount span {
  color: var(--muted);
  font-size: 12px;
  margin-left: 9px;
}
#qr {
  max-width: 100%;
  height: auto;
  margin: 20px auto;
  display: block;
}
#license-code {
  display: block;
  overflow-wrap: anywhere;
  padding: 22px 15px;
  border-radius: 16px;
  background: var(--soft);
  font:
    18px/1.8 ui-monospace,
    monospace;
  margin: 22px 0;
}
#license-code,
#receipt-url,
#manual-copy-value {
  -webkit-user-select: text;
  user-select: text;
  -webkit-touch-callout: default;
}
.clipboard-buffer {
  position: fixed;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  font-size: 16px;
  pointer-events: none;
}
#copy-feedback {
  position: fixed;
  z-index: 30;
  bottom: calc(24px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 32px);
  padding: 12px 20px;
  border-radius: 14px;
  background: #1d1d1f;
  color: white;
  box-shadow: 0 4px 20px #0002;
}
.copy-dialog-open {
  overflow: hidden;
}
#copy-dialog {
  position: fixed;
  z-index: 40;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: #0006;
}
.copy-dialog-card {
  width: 100%;
  max-width: 440px;
  max-height: 90dvh;
  overflow: auto;
  padding: 24px;
  border-radius: 22px;
  background: white;
}
#manual-copy-value {
  display: block;
  width: 100%;
  padding: 14px;
  border: 1px solid #ddd;
  border-radius: 12px;
  font:
    16px/1.6 ui-monospace,
    monospace;
  background: var(--soft);
  color: var(--text);
  resize: vertical;
  overflow-wrap: anywhere;
}
#delivery,
#payment {
  padding: 25px 0;
}
.orders-title {
  margin-top: 35px;
}
.order {
  padding: 17px 0;
  border-bottom: 1px solid #eee;
  font-size: 13px;
}
.order p {
  margin: 4px 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.order button {
  width: auto;
  font-size: 12px;
  min-height: 35px;
  padding: 9px 17px;
}
.download-url {
  overflow-wrap: anywhere;
  font:
    12px/1.8 ui-monospace,
    monospace;
}
@media (max-width: 400px) {
  h1 {
    font-size: 26px;
  }
  .code-row {
    grid-template-columns: 1fr 116px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto;
  }
}

.install-help {
  margin: 16px 0 24px;
  padding: 16px;
  border: 1px solid #e6e8ed;
  border-radius: 12px;
  font-size: 13px;
}
.install-help summary {
  cursor: pointer;
  font-weight: 500;
}
.install-help p {
  margin: 12px 0;
  color: var(--muted);
  line-height: 1.8;
}
.install-help a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.refund-note {
  margin: 14px 0 0;
  padding: 13px 15px;
  border-radius: 12px;
  background: #f0f6fc;
  color: #4f6174;
  font-size: 13px;
}
.refund-note a,
.download-links a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.download-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  margin: 16px 0 22px;
  font-size: 13px;
}
