.purchase-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(47, 42, 37, .56);
  backdrop-filter: blur(9px);
}
.purchase-modal.is-open { display: flex; }
.purchase-dialog {
  width: min(720px, 100%);
  max-height: min(860px, calc(100vh - 44px));
  overflow: auto;
  border: 1px solid rgba(255,255,255,.78);
  border-radius: 32px;
  background: #fffdf9;
  color: #45413c;
  box-shadow: 0 34px 100px rgba(38, 34, 29, .28);
}
.purchase-dialog__head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  padding: 26px 28px 20px;
  background: rgba(255,253,249,.96);
  border-bottom: 1px solid rgba(95,88,76,.12);
  backdrop-filter: blur(10px);
}
.purchase-dialog__head h2 {
  margin: 3px 0 0;
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  line-height: 1;
}
.purchase-dialog__eyebrow {
  margin: 0;
  color: #70755a;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.purchase-close {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(95,88,76,.14);
  border-radius: 50%;
  background: #f8f2e8;
  color: #45413c;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}
.purchase-body { padding: 24px 28px 30px; }
.purchase-demo {
  margin-bottom: 18px;
  padding: 13px 15px;
  border-radius: 16px;
  background: rgba(198,154,75,.13);
  color: #64563d;
  font-size: .93rem;
}
.purchase-summary {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  padding: 18px 20px;
  border-radius: 20px;
  background: #f8f2e8;
  border: 1px solid rgba(95,88,76,.12);
}
.purchase-summary__format { color: #746d66; }
.purchase-summary__price { flex: 0 0 auto; font-size: 1.15rem; font-weight: 800; }
.purchase-step { margin-top: 22px; }
.purchase-step__title { margin: 0 0 14px; font-weight: 800; }
.payment-methods { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
.payment-method {
  min-height: 58px;
  padding: 12px 14px;
  border: 1px solid rgba(95,88,76,.16);
  border-radius: 17px;
  background: #fff;
  color: #45413c;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.payment-method:hover, .payment-method.is-active {
  border-color: #70755a;
  background: rgba(112,117,90,.1);
}
.payment-details {
  margin-top: 16px;
  padding: 18px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid rgba(95,88,76,.14);
}
.payment-warning {
  margin: 0 0 13px;
  padding: 11px 13px;
  border-radius: 14px;
  background: rgba(198,154,75,.12);
  color: #675b43;
  font-size: .93rem;
}
.payment-row {
  display: grid;
  grid-template-columns: minmax(120px,.7fr) minmax(0,1.5fr) auto;
  gap: 12px;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid rgba(95,88,76,.1);
}
.payment-row:last-child { border-bottom: 0; }
.payment-row__label { color: #746d66; font-size: .92rem; }
.payment-row__value { overflow-wrap: anywhere; }
.payment-copy {
  border: 0;
  border-radius: 999px;
  padding: 9px 12px;
  background: #e3d4c1;
  color: #45413c;
  font: inherit;
  font-size: .84rem;
  font-weight: 750;
  cursor: pointer;
}
.crypto-qr { width: 178px; height: 178px; margin: 18px auto 2px; object-fit: contain; }
.purchase-primary, .purchase-secondary {
  width: 100%;
  min-height: 52px;
  margin-top: 16px;
  border-radius: 999px;
  padding: 13px 20px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.purchase-primary { border: 0; background: #70755a; color: #fff; }
.purchase-primary:hover { background: #5f644d; }
.purchase-secondary { border: 1px solid rgba(95,88,76,.16); background: transparent; color: #45413c; }
.purchase-form { display: grid; gap: 15px; }
.purchase-field { display: grid; gap: 7px; }
.purchase-field label { font-weight: 750; }
.purchase-field input {
  width: 100%;
  min-height: 50px;
  border: 1px solid rgba(95,88,76,.2);
  border-radius: 15px;
  padding: 12px 14px;
  background: #fff;
  color: #45413c;
  font: inherit;
}
.purchase-field input:focus { outline: 2px solid rgba(112,117,90,.24); border-color: #70755a; }
.purchase-help { color: #8b8178; font-size: .85rem; }
.purchase-error { min-height: 1.2em; color: #9b4133; font-size: .92rem; }
.purchase-success { padding: 10px 0 2px; text-align: center; }
.purchase-success__icon {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin: 0 auto 15px;
  border-radius: 50%;
  background: rgba(112,117,90,.14);
  color: #5f644d;
  font-size: 1.8rem;
  font-weight: 900;
}
.purchase-success h3 {
  margin: 0 0 10px;
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: 2rem;
}
.purchase-success p { color: #746d66; }
.purchase-toast { position: fixed; right: 20px; bottom: 20px; z-index: 1100; }
@media (max-width: 680px) {
  .purchase-modal { padding: 10px; align-items: flex-end; }
  .purchase-dialog { max-height: calc(100vh - 20px); border-radius: 27px 27px 18px 18px; }
  .purchase-dialog__head, .purchase-body { padding-left: 20px; padding-right: 20px; }
  .payment-methods { grid-template-columns: 1fr; }
  .payment-row { grid-template-columns: 1fr auto; }
  .payment-row__label { grid-column: 1 / -1; }
  .purchase-summary { align-items: flex-start; flex-direction: column; }
}
