:root {
  --paper: #f6f5f0;
  --ink: #111;
  --muted: #686963;
  --line: #d9dbd3;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Instrument Sans", sans-serif;
}
button,
a,
input {
  font: inherit;
}
a {
  color: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
.commerce {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
}
.ali-mark {
  font-family: Newsreader, Georgia, serif;
  font-size: 72px;
  text-decoration: none;
  line-height: 1;
  margin-bottom: 44px;
}
.commerce-content {
  width: 100%;
  max-width: 420px;
}
h1 {
  font-family: Newsreader, Georgia, serif;
  font-size: 36px;
  line-height: 1.1;
  font-weight: 400;
  text-align: center;
  margin: 0 0 16px;
}
.intro {
  color: var(--muted);
  text-align: center;
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 32px;
}
.auth-phone-row {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.country {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
input {
  min-width: 0;
  width: 100%;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 12px;
  padding: 14px;
  font-size: 16px;
  outline-offset: 3px;
}
.auth-help {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  margin: 12px 0 16px;
}
.commerce button,
.pay-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
}
.commerce button.secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.commerce button.link-button {
  background: none;
  border: 0;
  color: var(--muted);
  padding: 10px 0;
  font-size: 12px;
}
.auth-links {
  display: flex;
  gap: 16px;
}
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  margin: 22px 0;
}
.auth-divider:before,
.auth-divider:after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}
.provider-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
}
.auth-message {
  font-size: 13px;
  line-height: 1.6;
  min-height: 24px;
  margin: 18px 0;
  color: var(--muted);
}
.auth-message.error {
  color: #a5392c;
}
#auth-code {
  font-size: 24px;
  text-align: center;
  letter-spacing: 0.35em;
  margin-bottom: 16px;
}
.commerce-back {
  font-size: 13px;
  color: var(--muted);
  margin-top: 42px;
  text-decoration: none;
}
.purchase-summary {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  margin: 24px 0;
  background: #ffffff60;
}
.purchase-summary strong {
  font-family: Newsreader, Georgia, serif;
  font-size: 42px;
  display: block;
  margin: 12px 0;
}
.purchase-summary ul {
  padding-left: 20px;
  line-height: 1.8;
  font-size: 14px;
  color: var(--muted);
}
.commerce [hidden] {
  display: none !important;
}
.result-links {
  display: grid;
  gap: 12px;
}
.payment-state {
  text-align: center;
  font-size: 54px;
  color: #6d805c;
  margin-bottom: 24px;
}
.payment-footer {
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
  text-align: center;
  margin-top: 22px;
}
@media (prefers-reduced-motion: no-preference) {
  .commerce-content {
    animation: enter 0.6s both;
  }
  @keyframes enter {
    from {
      opacity: 0;
      transform: translateY(12px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
}
.price-before {
  font-size: 0.55em;
  color: var(--muted);
  font-weight: 400;
}
