.rt-purchase {
  --rt-primary: #8f1d2c;
  --rt-primary-hover: #741522;
  --rt-primary-soft: #faeef0;
  --rt-bg: #f6f4f2;
  --rt-surface: #ffffff;
  --rt-text: #211d1e;
  --rt-muted: #6f6769;
  --rt-border: #e5dfe0;
  --rt-success: #287a50;
  --rt-danger: #b42318;
  --rt-radius: 20px;
  --rt-shadow: 0 18px 48px rgba(50, 31, 35, 0.09);
  width: 100%;
  overflow: clip;
  padding: clamp(16px, 4vw, 48px) 12px clamp(44px, 7vw, 84px);
  color: var(--rt-text);
  background: var(--rt-bg);
  font-family: inherit;
  line-height: 1.5;
}

.rt-purchase,
.rt-purchase *,
.rt-purchase *::before,
.rt-purchase *::after {
  box-sizing: border-box;
}

.rt-purchase [hidden] {
  display: none !important;
}

.rt-purchase h1,
.rt-purchase h2,
.rt-purchase p,
.rt-purchase ol,
.rt-purchase ul {
  margin-top: 0;
}

.rt-purchase button,
.rt-purchase input {
  font: inherit;
}

.rt-purchase-shell {
  width: min(100%, 1160px);
  margin: 0 auto;
}

.rt-event-hero {
  position: relative;
  display: grid;
  gap: 28px;
  overflow: hidden;
  padding: clamp(24px, 6vw, 52px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: calc(var(--rt-radius) + 8px);
  color: #fff;
  background:
    radial-gradient(circle at 92% 12%, rgba(255, 255, 255, 0.16), transparent 29%),
    linear-gradient(135deg, #51101a 0%, var(--rt-primary) 58%, #ac3546 100%);
  box-shadow: var(--rt-shadow);
}

.rt-event-hero::after {
  position: absolute;
  right: -52px;
  bottom: -82px;
  width: 210px;
  height: 210px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
  content: "";
}

.rt-kicker {
  display: block;
  margin-bottom: 10px;
  color: var(--rt-primary);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.2;
}

.rt-event-hero .rt-kicker {
  color: rgba(255, 255, 255, 0.72);
}

.rt-event-hero h1 {
  max-width: 720px;
  margin-bottom: 14px;
  color: #fff;
  font-size: clamp(2rem, 7vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.rt-event-hero__content > p {
  max-width: 580px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1rem, 2vw, 1.15rem);
}

.rt-event-hero__aside {
  position: relative;
  z-index: 1;
  align-self: end;
}

.rt-event-price {
  display: inline-flex;
  min-width: 170px;
  flex-direction: column;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  background: rgba(30, 8, 12, 0.2);
  backdrop-filter: blur(8px);
}

.rt-event-price > span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

.rt-event-price strong,
.rt-event-price .amount {
  color: #fff;
  font-size: clamp(1.55rem, 4vw, 2rem);
  font-weight: 800;
  line-height: 1.2;
}

.rt-event-price del {
  margin-right: 5px;
  opacity: 0.65;
}

.rt-event-price ins {
  text-decoration: none;
}

.rt-stock {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.88rem;
  font-weight: 700;
}

.rt-stock > span {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #7ee2ab;
  box-shadow: 0 0 0 4px rgba(126, 226, 171, 0.16);
}

.rt-stock.is-sold-out > span {
  background: #f7b4b4;
  box-shadow: 0 0 0 4px rgba(247, 180, 180, 0.16);
}

.rt-stepper {
  margin: 22px 0;
  padding: 0 4px;
}

.rt-stepper ol {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 0;
  padding: 0;
  list-style: none;
}

.rt-stepper li {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 7px;
  color: var(--rt-muted);
  font-size: 0.75rem;
  font-weight: 700;
  text-align: center;
}

.rt-stepper li:not(:last-child)::after {
  position: absolute;
  z-index: 0;
  top: 16px;
  left: calc(50% + 22px);
  width: calc(100% - 44px);
  height: 2px;
  background: var(--rt-border);
  content: "";
  transition: background-color 200ms ease;
}

.rt-stepper__number {
  position: relative;
  z-index: 1;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 2px solid var(--rt-border);
  border-radius: 50%;
  color: var(--rt-muted);
  background: var(--rt-bg);
  transition: 200ms ease;
}

.rt-stepper li.is-active,
.rt-stepper li.is-complete {
  color: var(--rt-text);
}

.rt-stepper li.is-active .rt-stepper__number {
  border-color: var(--rt-primary);
  color: #fff;
  background: var(--rt-primary);
  box-shadow: 0 0 0 5px var(--rt-primary-soft);
}

.rt-stepper li.is-complete .rt-stepper__number {
  border-color: var(--rt-success);
  color: transparent;
  background: var(--rt-success);
}

.rt-stepper li.is-complete .rt-stepper__number::after {
  position: absolute;
  color: #fff;
  content: "✓";
}

.rt-stepper li.is-complete::after {
  background: var(--rt-success);
}

.rt-purchase-grid,
.rt-purchase-main {
  min-width: 0;
}

.rt-stage-card,
.rt-attendee-card,
.rt-order-summary__card,
.rt-alert {
  border: 1px solid var(--rt-border);
  border-radius: var(--rt-radius);
  background: var(--rt-surface);
  box-shadow: 0 10px 28px rgba(50, 31, 35, 0.06);
}

.rt-stage-card {
  width: min(100%, 820px);
  margin: 0 auto;
  padding: clamp(24px, 6vw, 48px);
  text-align: center;
}

.rt-stage-card h2,
.rt-stage-heading h2 {
  margin-bottom: 10px;
  color: var(--rt-text);
  font-size: clamp(1.55rem, 4vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.13;
}

.rt-stage-intro,
.rt-stage-heading p {
  margin-bottom: 0;
  color: var(--rt-muted);
}

.rt-quantity-control {
  display: grid;
  width: min(100%, 310px);
  grid-template-columns: 58px minmax(104px, 1fr) 58px;
  gap: 10px;
  align-items: stretch;
  margin: 30px auto 20px;
}

.rt-qty-btn {
  min-width: 0;
  min-height: 58px;
  padding: 0;
  border: 1px solid var(--rt-border);
  border-radius: 15px;
  color: var(--rt-primary);
  background: var(--rt-surface);
  box-shadow: 0 4px 12px rgba(50, 31, 35, 0.05);
  cursor: pointer;
  font-size: 1.7rem;
  font-weight: 500;
  line-height: 1;
  transition: 180ms ease;
}

.rt-qty-btn:hover:not(:disabled) {
  border-color: var(--rt-primary);
  background: var(--rt-primary-soft);
  transform: translateY(-1px);
}

.rt-qty-btn:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}

.rt-quantity-value {
  display: grid;
  min-width: 0;
  align-content: center;
  justify-items: center;
  border: 1px solid var(--rt-border);
  border-radius: 15px;
  background: #fcfbfb;
}

.rt-quantity-value input {
  width: 100%;
  height: 34px;
  margin: 0;
  padding: 0 4px;
  border: 0;
  outline: 0;
  color: var(--rt-text);
  background: transparent;
  appearance: textfield;
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1;
  text-align: center;
}

.rt-quantity-value input::-webkit-inner-spin-button,
.rt-quantity-value input::-webkit-outer-spin-button {
  margin: 0;
  appearance: none;
}

.rt-quantity-value > span {
  color: var(--rt-muted);
  font-size: 0.7rem;
  line-height: 1;
  text-transform: uppercase;
}

.rt-quantity-total {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
  color: var(--rt-muted);
  font-size: 0.95rem;
}

.rt-quantity-total strong {
  color: var(--rt-text);
}

.rt-button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  font-size: 0.96rem;
  font-weight: 800;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  transition: 180ms ease;
}

.rt-button--primary {
  color: #fff;
  background: var(--rt-primary);
  box-shadow: 0 9px 22px rgba(143, 29, 44, 0.22);
}

.rt-button--primary:hover:not(:disabled) {
  color: #fff;
  background: var(--rt-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(143, 29, 44, 0.27);
}

.rt-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.rt-stage-card .rt-button {
  width: min(100%, 310px);
}

.rt-participants-stage {
  animation: rt-rise 220ms ease both;
}

.rt-stage-heading {
  display: grid;
  gap: 16px;
  margin-bottom: 20px;
}

.rt-edit-quantity {
  width: fit-content;
  min-height: 44px;
  padding: 8px 0;
  border: 0;
  color: var(--rt-primary);
  background: transparent;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

#rt-attendees {
  display: grid;
  gap: 16px;
}

.rt-attendee-card {
  overflow: hidden;
  animation: rt-rise 220ms ease both;
}

.rt-attendee-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px;
  border-bottom: 1px solid var(--rt-border);
  background: #fcfbfb;
}

.rt-attendee-heading .rt-kicker {
  margin-bottom: 3px;
}

.rt-attendee-heading strong {
  display: block;
  color: var(--rt-text);
  font-size: 1.05rem;
}

.rt-attendee-status {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  color: var(--rt-muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-align: right;
}

.rt-attendee-status__text {
  overflow: hidden;
  max-width: 160px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rt-attendee-status__icon {
  display: grid;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--rt-border);
  border-radius: 50%;
  color: var(--rt-muted);
  background: var(--rt-surface);
}

.rt-attendee-card.is-complete .rt-attendee-status {
  color: var(--rt-success);
}

.rt-attendee-card.is-complete .rt-attendee-status__icon {
  border-color: var(--rt-success);
  color: #fff;
  background: var(--rt-success);
}

.rt-fields-grid {
  display: grid;
  gap: 16px;
  padding: 20px 18px 22px;
}

.rt-field {
  min-width: 0;
}

.rt-field label {
  display: block;
  margin-bottom: 7px;
  color: var(--rt-text);
  font-size: 0.86rem;
  font-weight: 750;
}

.rt-field label span {
  color: var(--rt-muted);
  font-size: 0.78rem;
  font-weight: 500;
}

.rt-field input {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  margin: 0;
  padding: 11px 13px;
  border: 1px solid #cbc3c5;
  border-radius: 12px;
  outline: 0;
  color: var(--rt-text);
  background: var(--rt-surface);
  box-shadow: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.rt-field input::placeholder {
  color: #a49a9d;
  opacity: 1;
}

.rt-field input:hover {
  border-color: #a99ea1;
}

.rt-field input:focus {
  border-color: var(--rt-primary);
  box-shadow: 0 0 0 4px var(--rt-primary-soft);
}

.rt-field.is-invalid input {
  border-color: var(--rt-danger);
  background: #fffafa;
  box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.09);
}

.rt-field-error {
  min-height: 0;
  margin: 6px 0 0;
  color: var(--rt-danger);
  font-size: 0.78rem;
  font-weight: 650;
}

.rt-field-error:empty {
  display: none;
}

.rt-order-summary {
  min-width: 0;
  animation: rt-rise 220ms ease both;
}

.rt-order-summary__card {
  padding: 22px 18px;
}

.rt-summary-line,
.rt-summary-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.rt-summary-line {
  padding: 14px 0 18px;
  color: var(--rt-muted);
  font-size: 0.92rem;
}

.rt-summary-line strong {
  color: var(--rt-text);
}

.rt-summary-total {
  padding: 18px 0 4px;
  border-top: 1px solid var(--rt-border);
  color: var(--rt-text);
  font-weight: 800;
}

.rt-summary-total strong {
  color: var(--rt-text);
  font-size: 1.55rem;
}

.rt-summary-note,
.rt-note {
  color: var(--rt-muted);
  font-size: 0.76rem;
  line-height: 1.45;
}

.rt-summary-note {
  margin: 8px 0 18px;
}

.rt-submit {
  width: 100%;
  min-height: 54px;
}

.rt-note {
  margin: 10px 0 0;
  text-align: center;
}

.rt-alert {
  width: min(100%, 820px);
  margin: 0 auto;
  padding: 18px;
  color: var(--rt-text);
}

.rt-alert-error {
  border-color: rgba(180, 35, 24, 0.24);
  color: var(--rt-danger);
}

.rt-trust-list {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 18px 8px 0;
  border-top: 1px solid var(--rt-border);
  color: var(--rt-muted);
  font-size: 0.82rem;
  list-style: none;
  text-align: center;
}

.rt-trust-list li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.rt-sr-only {
  position: absolute !important;
  overflow: hidden;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.rt-purchase button:focus-visible,
.rt-purchase input:focus-visible {
  outline: 3px solid rgba(143, 29, 44, 0.3);
  outline-offset: 3px;
}

@keyframes rt-rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 620px) {
  .rt-purchase {
    padding-right: 20px;
    padding-left: 20px;
  }

  .rt-event-hero {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }

  .rt-stepper__label {
    font-size: 0.82rem;
  }

  .rt-stage-heading {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }

  .rt-fields-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 24px;
  }

  .rt-field--full {
    grid-column: 1 / -1;
  }

  .rt-attendee-heading {
    padding: 20px 24px;
  }

  .rt-trust-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 900px) {
  .rt-stepper {
    width: min(100%, 760px);
    margin: 26px auto;
  }

  .rt-form[data-stage="participants"] .rt-purchase-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 24px;
    align-items: start;
  }

  .rt-order-summary__card {
    position: sticky;
    top: 24px;
    padding: 24px;
  }
}

@media (max-width: 899px) {
  .rt-order-summary {
    margin-top: 18px;
  }
}

@media (max-width: 374px) {
  .rt-purchase {
    padding-right: 8px;
    padding-left: 8px;
  }

  .rt-event-hero,
  .rt-stage-card {
    padding-right: 18px;
    padding-left: 18px;
  }

  .rt-quantity-control {
    grid-template-columns: 52px minmax(92px, 1fr) 52px;
  }

  .rt-attendee-status__text {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rt-purchase *,
  .rt-purchase *::before,
  .rt-purchase *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
