/* Страницы покупки и заказа: карточка по центру, как на странице авто-импорта. */
body {
  min-height: 100vh;
  background:
    radial-gradient(70% 45% at 50% 0%, rgba(123, 77, 255, .28), transparent 70%),
    radial-gradient(60% 40% at 50% 100%, rgba(60, 30, 160, .30), transparent 70%),
    var(--night);
}
.page { max-width: 520px; margin: 0 auto; padding: 22px 18px 40px; }
.page-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.page-top a.back { color: var(--lavender); text-decoration: none; font-size: 15px; }
.card {
  padding: 26px 20px 24px;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(28, 17, 80, .92), rgba(16, 10, 44, .94));
  box-shadow: inset 0 0 0 1px rgba(189, 179, 227, .16), 0 30px 60px -30px rgba(0, 0, 0, .8);
}
.card h1 { margin: 0 0 6px; font: 500 34px/1.1 var(--serif); text-align: center; }
.card .sub { margin: 0 0 24px; color: var(--lavender); font-size: 15px; text-align: center; }

.label { margin: 22px 0 10px; font: 600 13px/1 var(--sans); letter-spacing: .08em; color: rgba(189, 179, 227, .75); }
.choices { display: grid; gap: 10px; }
.choices.two { grid-template-columns: 1fr 1fr; }
.choices.three { grid-template-columns: repeat(3, 1fr); }
.choice {
  position: relative;
  display: block; width: 100%;
  padding: 14px 14px;
  border: 0; border-radius: 16px;
  text-align: left; cursor: pointer;
  color: var(--star); font: 500 15px/1.3 var(--sans);
  background: rgba(255, 255, 255, .05);
  box-shadow: inset 0 0 0 1px rgba(189, 179, 227, .18);
  transition: background .2s, box-shadow .2s;
}
.choice:hover { background: rgba(123, 77, 255, .14); }
.choice[aria-pressed="true"] {
  background: rgba(230, 181, 102, .12);
  box-shadow: inset 0 0 0 2px var(--gold);
}
.choice b { display: block; font: 600 16px/1.25 var(--sans); }
.choice small { display: block; margin-top: 4px; color: var(--lavender); font-size: 13px; }
.choices.three .choice { text-align: center; padding: 12px 8px; }

.stepper {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px; border-radius: 16px;
  background: rgba(255, 255, 255, .05);
  box-shadow: inset 0 0 0 1px rgba(189, 179, 227, .18);
}
.stepper button {
  width: 48px; height: 48px; border: 0; border-radius: 12px; cursor: pointer;
  font: 600 24px/1 var(--sans); color: var(--star); background: rgba(255, 255, 255, .08);
}
.stepper button:disabled { opacity: .35; cursor: default; }
.stepper .val { text-align: center; }
.stepper .val b { display: block; font: 600 22px/1.1 var(--sans); }
.stepper .val small { color: var(--lavender); font-size: 13px; }

.total {
  display: flex; align-items: baseline; justify-content: space-between;
  margin: 26px 0 16px; padding-top: 18px;
  border-top: 1px solid var(--line);
}
.total span { color: var(--lavender); }
.total b { font: 500 44px/1 var(--serif); font-variant-numeric: lining-nums; }

.act {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 17px 18px;
  border: 0; border-radius: 16px; cursor: pointer;
  font: 600 17px/1.2 var(--sans); text-decoration: none;
  color: var(--star); background: rgba(255, 255, 255, .06);
  box-shadow: inset 0 0 0 1px rgba(189, 179, 227, .18);
}
.act:hover { color: var(--star); background: rgba(123, 77, 255, .18); }
.act.primary {
  color: #24133f;
  background: linear-gradient(180deg, #f0c97e, var(--gold));
  box-shadow: 0 10px 30px -10px rgba(230, 181, 102, .7);
}
.act.primary:hover { color: #24133f; background: linear-gradient(180deg, #f6d595, #edc071); }
.act.tg { background: linear-gradient(180deg, #3aa9ee, #2289cf); box-shadow: 0 10px 30px -12px rgba(42, 150, 220, .8); }
.act.tg:hover { background: linear-gradient(180deg, #4bb3f2, #2a93d8); }
.act[aria-busy="true"] { opacity: .7; pointer-events: none; }
.act svg { width: 22px; height: 22px; flex: none; }
.actions { display: grid; gap: 12px; }

.note { margin: 14px 0 0; font-size: 13px; color: rgba(189, 179, 227, .8); text-align: center; }
.error-box {
  display: none; margin-top: 14px; padding: 12px 14px; border-radius: 12px;
  background: rgba(255, 90, 90, .12); box-shadow: inset 0 0 0 1px rgba(255, 120, 120, .35);
  color: #ffd0d0; font-size: 14px;
}
.error-box.show { display: block; }

.summary { margin: 0 0 22px; border-radius: 16px; background: rgba(0, 0, 0, .22); padding: 6px 16px; }
.summary div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 15px; }
.summary div:first-child { border-top: 0; }
.summary span { color: var(--lavender); }

.state-icon { display: block; margin: 0 auto 12px; width: 64px; height: 64px; }
.spinner {
  width: 54px; height: 54px; margin: 4px auto 16px; border-radius: 50%;
  border: 4px solid rgba(189, 179, 227, .2); border-top-color: var(--gold);
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 3s; } }
[hidden] { display: none !important; }
