/* Master wizard shell. Ember surfaces measured for this page.
   Selection stays blue; orange is only the primary action. */

body.pw-page {
  background: #210806;
  color: #fff3e7;
}

body.pw-page .page,
body.pw-page.page {
  background:
    radial-gradient(circle at 20% 0%, rgba(158, 47, 18, 0.35), transparent 32%),
    linear-gradient(180deg, #210806, #2a0503 70%);
}

.pw-shell {
  width: min(1080px, calc(100% - 32px));
  margin: 24px auto 48px;
  padding: 24px;
  background: #210806;
  border: 1px solid rgba(255, 132, 42, 0.18);
  border-radius: 16px;
}

.pw-kicker {
  margin: 0 0 8px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #b9957e;
}

.pw-title {
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 700;
  color: #fff;
}

.pw-lead {
  margin: 0 0 20px;
  max-width: 42rem;
  font-size: 14px;
  line-height: 1.45;
  color: #d8b9a1;
}

.pw-steps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 24px;
}

.pw-steps__label {
  color: #fff3e7;
  font-size: 13px;
  font-weight: 600;
  cursor: default;
}

.pw-steps__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pw-step {
  margin: 0;
  padding: 8px 12px;
  border-radius: 4px;
  border: 1px solid rgba(255, 243, 231, 0.28);
  background: transparent;
  color: #b9957e;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: default;
}

.pw-step.is-current {
  background: #341e1a;
  border-color: rgba(255, 243, 231, 0.35);
  color: #fff;
}

.pw-panel {
  min-height: 220px;
}

.pw-section-label {
  margin: 0 0 12px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #b9957e;
}

.pw-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.pw-cards--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pw-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-height: 150px;
  padding: 16px 16px 18px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #1c0705;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.pw-card:hover,
.pw-card:focus-visible {
  border: 2px solid #3b82f6;
  background: #231422;
  outline: none;
}

.pw-card.is-selected {
  border: 2px solid #3b82f6;
  background: #231422;
}

.pw-card__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #d4924a;
  color: #210806;
  font-size: 13px;
  font-weight: 700;
}

.pw-card__check {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 22px;
  height: 22px;
  border: 2px solid #3b82f6;
  border-radius: 50%;
  background: #231422;
}

.pw-card__check::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 3px;
  width: 5px;
  height: 9px;
  border: solid #3b82f6;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.pw-card__title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
}

.pw-card__title--sentence {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
  line-height: 1.35;
}

.pw-card__list {
  margin: 0;
  padding-left: 18px;
  color: #d8b9a1;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}

.pw-card__desc {
  font-size: 13px;
  line-height: 1.4;
  color: #d8b9a1;
}

.pw-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 16px;
}

.pw-field[hidden] {
  display: none;
}

.pw-field label,
.pw-summary dt {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #b9957e;
}

.pw-field optgroup {
  font-weight: 700;
  color: #fff3e7;
}

.pw-field input,
.pw-field textarea,
.pw-field select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 132, 42, 0.28);
  background: #1c0705;
  color: #fff3e7;
  font: inherit;
  font-size: 14px;
}

.pw-field textarea {
  min-height: 96px;
  resize: vertical;
}

.pw-note {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: #d8b9a1;
}

.pw-wait {
  margin: 16px 0 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fff;
}

.pw-wait__dots span {
  animation: pw-wait-dot 1.2s infinite;
  opacity: 0.2;
}

.pw-wait__dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.pw-wait__dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes pw-wait-dot {
  0%,
  80%,
  100% {
    opacity: 0.2;
  }
  40% {
    opacity: 1;
  }
}

.pw-summary {
  margin: 0;
  padding: 16px;
  border-radius: 12px;
  background: #341e1a;
  display: grid;
  gap: 12px;
}

.pw-summary div {
  display: grid;
  gap: 4px;
}

.pw-summary dd {
  margin: 0;
  font-size: 15px;
  color: #fff;
}

.pw-due {
  margin-top: 16px;
  padding: 16px;
  border-radius: 12px;
  background: #1c0705;
  border: 1px solid rgba(255, 132, 42, 0.28);
}

.pw-due strong {
  display: block;
  margin-top: 4px;
  font-size: 22px;
  color: #fff;
}

.pw-price {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 24px;
  align-items: start;
}

.pw-route-picker {
  height: calc(100vh - 210px);
  min-height: 560px;
  margin-top: 0;
}

body.pw-page:has(.pw-route-picker) .pw-shell {
  width: calc(100% - 16px);
  max-width: none;
  margin: 8px auto 12px;
  padding: 12px 16px 16px;
}

body.pw-page:has(.pw-route-picker) .pw-lead {
  margin-bottom: 10px;
}

body.pw-page:has(.pw-route-picker) .pw-steps {
  margin-bottom: 10px;
}

.pw-route-picker [data-rp-close] {
  display: none;
}

.pw-price__thumb {
  margin: 0 0 12px;
}

.pw-price__thumb .pw-pdf-art {
  max-height: 180px;
}

.pw-qr-stage {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  margin-top: 8px;
}

.pw-qr-stage__code {
  flex: 0 0 auto;
}

.pw-qr-panel {
  flex: 1;
  min-width: 0;
  padding-top: 8px;
}

.pw-qr-panel__lead {
  margin: 0;
  font-size: 28px;
  line-height: 1.35;
  font-weight: 650;
  color: var(--text, #fff3e7);
}

.pw-qr-facts {
  margin: 18px 0 0;
  display: grid;
  gap: 10px;
}

.pw-qr-facts div {
  display: grid;
  gap: 2px;
}

.pw-qr-facts dt {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted, #d8b9a1);
}

.pw-qr-facts dd {
  margin: 0;
  font-size: 16px;
  color: var(--text, #fff);
}

.pw-qr-choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 22px;
}

.pw-qr-choice {
  padding: 16px;
  border-radius: var(--radius, 12px);
  font: inherit;
  font-size: 16px;
  text-align: left;
}

.pw-qr {
  margin-top: 16px;
  display: flex;
  justify-content: center;
  padding: 16px;
  border-radius: 12px;
  background: #fff;
  width: fit-content;
}

.pw-qr-modal__frame {
  width: min(1100px, calc(100% - 32px));
  height: min(860px, calc(100% - 32px));
  background: #05060a;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

.pw-qr-modal__frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #05060a;
}

.pw-qr img {
  display: block;
  width: 180px;
  height: 180px;
  object-fit: contain;
}

.pw-qr canvas {
  display: block;
}

.pw-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.pw-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

.pw-footer__right {
  display: flex;
  gap: 12px;
}

.pw-btn {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.pw-btn--primary {
  border: none;
  background: #f58310;
  color: #1b0b00;
}

.pw-btn--primary:disabled {
  background: #370e07;
  color: rgba(255, 243, 231, 0.5);
  cursor: not-allowed;
}

.pw-btn--ghost {
  border: 1px solid rgba(255, 132, 42, 0.35);
  background: #290b08;
  color: #fff3e7;
}

.pw-sides {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}

.pw-sides--one {
  grid-template-columns: minmax(0, 420px);
}

.pw-pdf-art {
  display: block;
  width: 100%;
  max-height: 360px;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
}

.pw-side__label {
  margin: 0 0 8px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #b9957e;
}

.pw-drop {
  margin-top: 0;
  padding: 18px;
  border: 2px dashed rgba(255, 132, 42, 0.45);
  border-radius: 12px;
  background: #1c0705;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.pw-drop.is-drag {
  border-color: #3b82f6;
  background: rgba(59, 130, 246, 0.1);
}

.pw-drop--filled {
  cursor: default;
}

.pw-drop__input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.pw-drop__hint,
.pw-drop__limit,
.pw-drop__meta span {
  margin: 0;
  color: #d8b9a1;
  font-size: 14px;
}

.pw-drop__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.pw-drop__meta strong {
  word-break: break-word;
}

.pw-drop__thumb {
  width: 120px;
  height: 120px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
}

.pw-drop__pdf {
  width: 120px;
  height: 120px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #290b08;
  border: 1px solid rgba(255, 132, 42, 0.35);
  font-weight: 700;
  letter-spacing: 0.06em;
}

.pw-drop__actions {
  display: flex;
  gap: 8px;
}

.pw-drop__error {
  margin: 0;
  color: #ffb4a8;
}

@media (max-width: 720px) {
  .pw-sides {
    grid-template-columns: 1fr;
  }

  .pw-pdf-sides {
    grid-template-columns: 1fr 1fr;
  }

  .pw-pdf-sides.pw-sides--one {
    grid-template-columns: minmax(0, 420px);
  }
}

.pw-error {
  margin: 12px 0 0;
  color: #ffb4a8;
  font-size: 14px;
}

@media (max-width: 800px) {
  .pw-cards,
  .pw-cards--2,
  .pw-price {
    grid-template-columns: 1fr;
  }

  .pw-shell {
    width: min(100% - 16px, 1080px);
    margin-top: 12px;
    padding: 16px;
  }

  .pw-title {
    font-size: 26px;
  }

  .pw-qr-stage,
  .pw-qr-choices {
    display: grid;
    grid-template-columns: 1fr;
  }

  .pw-qr-panel__lead {
    font-size: 22px;
  }

  .pw-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .pw-footer__right {
    flex-direction: column;
  }

  .pw-btn {
    width: 100%;
  }
}
