.qs-wrap {
  width: 100%;
  max-width: 40rem;
  margin: 0 auto;
  padding: 0.5rem 1rem 2.5rem;
  box-sizing: border-box;
  font-family: Poppins, sans-serif;
  color: #1c1917;
}

.qs-wrap[data-qs-event-checkout="1"] {
  max-width: 52rem;
  width: 100%;
  padding: 0 1rem 3rem;
}

.qs-panel {
  background: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 1px 2px rgba(28, 25, 23, 0.04), 0 12px 32px rgba(28, 25, 23, 0.06);
  overflow: hidden;
}

.qs-wrap[data-qs-event-checkout="1"] .qs-panel {
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}

.qs-header {
  padding: 1.5rem 1.35rem 1.1rem;
  border-bottom: 1px solid #f5f5f4;
  background: linear-gradient(180deg, #fffdf8 0%, #ffffff 100%);
}

.qs-wrap[data-qs-event-checkout="1"] .qs-header {
  padding: 0 0 1.5rem;
  border-bottom: 0;
  background: transparent;
}

.qs-heading {
  margin: 0 0 0.5rem;
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  font-weight: 700;
  line-height: 1.2;
  color: #1c1917;
}

.qs-wrap[data-qs-event-checkout="1"] .qs-heading {
  margin: 0 0 0.65rem;
  font-size: clamp(1.55rem, 2.8vw + 0.6rem, 2.25rem);
  letter-spacing: -0.02em;
}

.qs-description {
  margin: 0 0 0.9rem;
  font-size: clamp(0.9rem, 0.35vw + 0.82rem, 1.05rem);
  line-height: 1.55;
  color: #57534e;
}

.qs-wrap[data-qs-event-checkout="1"] .qs-description {
  margin: 0 0 1.35rem;
  max-width: 40rem;
  font-size: clamp(0.95rem, 0.4vw + 0.85rem, 1.1rem);
}

.qs-amount-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0.9rem;
  border-radius: 0.375rem;
  background: #fafaf9;
}

.qs-wrap[data-qs-event-checkout="1"] .qs-amount-row {
  padding: 0.85rem 0 0;
  margin-top: 0.25rem;
  border-radius: 0;
  background: transparent;
  border-top: 1px solid #e7e5e4;
}

.qs-amount-label {
  font-size: clamp(0.82rem, 0.2vw + 0.78rem, 0.95rem);
  color: #44403c;
}

.qs-amount-value {
  font-size: clamp(1.05rem, 0.5vw + 0.95rem, 1.3rem);
  font-weight: 700;
  color: #1c1917;
}

.qs-wrap[data-qs-event-checkout="1"] .qs-amount-value {
  font-size: clamp(1.15rem, 0.6vw + 1rem, 1.4rem);
}

.qs-availability {
  margin: 0.45rem 0 0;
  font-size: clamp(0.8rem, 0.2vw + 0.75rem, 0.9rem);
  color: #78716c;
}

.qs-sold-out-banner {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin: 0;
  padding: 1rem 1.1rem;
  border-radius: 0.5rem;
  background: #fafaf9;
  border: 1px solid #e7e5e4;
}

.qs-sold-out-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  color: #9a3412;
  background: #fff7ed;
}

.qs-sold-out-copy {
  min-width: 0;
}

.qs-sold-out-title {
  margin: 0;
  font-size: clamp(1rem, 0.35vw + 0.9rem, 1.15rem);
  font-weight: 700;
  line-height: 1.3;
  color: #1c1917;
}

.qs-sold-out-text {
  margin: 0.25rem 0 0;
  font-size: clamp(0.9rem, 0.25vw + 0.82rem, 1rem);
  line-height: 1.5;
  color: #57534e;
}

.qs-sold-out-help {
  margin: 0.55rem 0 0;
  font-size: clamp(0.85rem, 0.2vw + 0.8rem, 0.95rem);
  color: #78716c;
}

.qs-sold-out-help a {
  color: #1c1917;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.qs-wrap[data-qs-event-checkout="1"] .qs-collect:has([data-qs-sold-out]) {
  padding-top: 0.35rem;
}

.qs-collect,
.qs-loading,
.qs-return,
.qs-checkout {
  padding: 1.15rem 1.35rem 1.5rem;
}

.qs-wrap[data-qs-event-checkout="1"] .qs-collect,
.qs-wrap[data-qs-event-checkout="1"] .qs-loading,
.qs-wrap[data-qs-event-checkout="1"] .qs-return,
.qs-wrap[data-qs-event-checkout="1"] .qs-checkout {
  padding: 1.75rem 0 0;
}

.qs-checkout:empty {
  display: none;
}

.qs-label {
  display: block;
  margin: 0 0 1.25rem;
}

.qs-label span {
  display: block;
  margin-bottom: 0.4rem;
  font-size: clamp(0.75rem, 0.15vw + 0.72rem, 0.85rem);
  font-weight: 600;
  color: #44403c;
}

.qs-label input,
.qs-qty-input,
.qs-guest-cell {
  width: 100%;
  box-sizing: border-box;
  padding: 0.75rem 0.85rem;
  border: 1px solid #e7e5e4;
  border-radius: 0.375rem;
  background: #fff;
  color: #1c1917;
  font-family: Poppins, sans-serif;
  font-size: clamp(0.92rem, 0.25vw + 0.86rem, 1.05rem);
  line-height: 1.35;
}

.qs-label input:focus,
.qs-qty-input:focus,
.qs-guest-cell:focus {
  outline: none;
  border-color: #d97706;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.15);
}

.qs-step-label {
  margin: 0 0 1rem;
  font-size: clamp(0.68rem, 0.12vw + 0.65rem, 0.78rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #78716c;
}

.qs-step-label--sub {
  margin-top: 0.25rem;
}

.qs-purchaser-block {
  margin: 1rem 0 0.35rem;
  padding: 0.85rem 0 0;
  border-top: 1px solid #e7e5e4;
}

.qs-purchaser-block .qs-label {
  margin-top: 0.65rem;
}

.qs-step-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.qs-step-toolbar .qs-step-label {
  margin: 0;
}

.qs-step-hint {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  color: #78716c;
}

.qs-text-btn {
  border: 0;
  background: transparent;
  color: #57534e;
  font-family: Poppins, sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

.qs-text-btn:hover {
  color: #1c1917;
}

.qs-qty-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 0 0 1.75rem;
}

.qs-qty-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.15rem 1.2rem;
  border-radius: 0.5rem;
  background: #fafaf9;
}

.qs-qty-meta {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.qs-qty-label {
  font-size: clamp(0.95rem, 0.3vw + 0.88rem, 1.1rem);
  font-weight: 600;
  color: #1c1917;
  line-height: 1.3;
}

.qs-qty-desc {
  font-size: clamp(0.8rem, 0.2vw + 0.75rem, 0.92rem);
  line-height: 1.4;
  color: #78716c;
}

.qs-qty-price {
  margin-top: 0.15rem;
  font-size: clamp(0.85rem, 0.2vw + 0.8rem, 0.98rem);
  font-weight: 600;
  color: #44403c;
}

.qs-qty-stepper {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.qs-qty-btn {
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid #e7e5e4;
  border-radius: 0.375rem;
  background: #fff;
  color: #1c1917;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  font-family: Poppins, sans-serif;
  touch-action: manipulation;
}

.qs-qty-btn:hover:not(:disabled) {
  background: #f5f5f4;
}

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

.qs-qty-input {
  width: 3rem;
  min-height: 2.5rem;
  text-align: center;
  padding: 0.45rem 0.2rem;
  -moz-appearance: textfield;
}

.qs-qty-input::-webkit-outer-spin-button,
.qs-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.qs-guest-table {
  margin: 0 0 1.5rem;
  padding: 0;
  background: transparent;
  overflow: visible;
}

.qs-guest-cols,
.qs-guest-row {
  display: grid;
  grid-template-columns: minmax(6.5rem, 0.85fr) 1fr 1fr minmax(9rem, 1.35fr) minmax(5.5rem, 0.9fr) 2.25rem;
  gap: 0.55rem;
  align-items: center;
}

.qs-guest-cols {
  padding: 0 0.15rem 0.65rem;
  border-bottom: 1px solid #e7e5e4;
  margin-bottom: 0.65rem;
}

.qs-guest-cols span {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #a8a29e;
}

.qs-guest-row {
  margin-bottom: 0.65rem;
  padding: 0.7rem 0.6rem;
  border-radius: 0.45rem;
  background: #fafaf9;
}

.qs-guest-row:last-child {
  margin-bottom: 0;
}

.qs-guest-cell {
  min-width: 0;
  padding: 0.65rem 0.7rem;
  font-size: 0.9rem;
  background: #fff;
}

.qs-guest-remove {
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: 0.35rem;
  background: transparent;
  color: #a8a29e;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  font-family: Poppins, sans-serif;
  touch-action: manipulation;
}

.qs-guest-remove:hover {
  color: #b91c1c;
  background: #fff7f7;
}

.qs-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.9rem 1.2rem;
  border: 0;
  border-radius: 0.375rem;
  background: #1c1917;
  color: #fff;
  font-family: Poppins, sans-serif;
  font-size: clamp(0.92rem, 0.25vw + 0.86rem, 1.05rem);
  font-weight: 600;
  cursor: pointer;
  touch-action: manipulation;
}

.qs-wrap[data-qs-event-checkout="1"] .qs-button {
  margin-top: 0.5rem;
  max-width: 18rem;
}

.qs-button:hover {
  background: #292524;
}

.qs-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.qs-error {
  margin-top: 1rem;
  color: #b91c1c;
  font-size: 0.875rem;
}

.qs-loading {
  text-align: center;
}

.qs-loading p {
  margin: 0.85rem 0 0;
  font-size: 0.9rem;
  color: #78716c;
}

.qs-loading-bar {
  height: 0.35rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #f5f5f4 0%, #fbbf24 45%, #f5f5f4 100%);
  background-size: 200% 100%;
  animation: qs-shimmer 1.1s linear infinite;
}

@keyframes qs-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.qs-return-card {
  padding: 1.1rem 1.15rem;
  border-radius: 0.375rem;
  background: #f0fdf4;
}

.qs-return-title {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #166534;
}

[hidden] {
  display: none !important;
}

@media (max-width: 900px) {
  .qs-wrap {
    max-width: 100%;
  }

  .qs-wrap[data-qs-event-checkout="1"] {
    max-width: 100%;
  }
}

@media (max-width: 720px) {
  .qs-wrap {
    max-width: 100%;
    width: 100%;
    margin: 0;
    padding: 0 0.75rem 2rem;
  }

  .qs-wrap[data-qs-event-checkout="1"] {
    padding: 0 0.75rem 2.5rem;
  }

  .qs-panel {
    border-radius: 0.5rem;
    box-shadow: 0 1px 2px rgba(28, 25, 23, 0.04);
  }

  .qs-header {
    padding: 1.25rem 1rem 1rem;
  }

  .qs-heading {
    font-size: clamp(1.35rem, 5.5vw, 1.65rem);
    text-align: left;
  }

  .qs-description {
    font-size: clamp(0.9rem, 2.8vw, 1rem);
  }

  .qs-collect,
  .qs-loading,
  .qs-return,
  .qs-checkout {
    padding: 1rem 1rem 1.35rem;
  }

  .qs-label input,
  .qs-label select,
  .qs-label textarea {
    min-height: 2.85rem;
    font-size: 1rem;
  }

  .qs-button {
    width: 100%;
    min-height: 3rem;
  }

  .qs-wrap[data-qs-event-checkout="1"] .qs-heading {
    font-size: clamp(1.45rem, 5.5vw, 1.85rem);
  }

  .qs-wrap[data-qs-event-checkout="1"] .qs-description {
    font-size: clamp(0.9rem, 2.8vw, 1rem);
  }

  .qs-qty-label {
    font-size: clamp(0.95rem, 3.2vw, 1.05rem);
  }

  .qs-qty-desc {
    font-size: clamp(0.8rem, 2.6vw, 0.9rem);
  }

  .qs-label input,
  .qs-guest-cell,
  .qs-qty-input {
    font-size: clamp(0.95rem, 3.2vw, 1.05rem);
  }

  .qs-button {
    font-size: clamp(0.95rem, 3.2vw, 1.05rem);
  }

  .qs-wrap[data-qs-event-checkout="1"] .qs-button {
    max-width: none;
    width: 100%;
  }

  .qs-qty-row {
    flex-wrap: wrap;
    align-items: flex-start;
    padding: 1rem;
    gap: 0.85rem;
  }

  .qs-qty-stepper {
    margin-left: auto;
  }

  .qs-qty-btn {
    width: 2.75rem;
    height: 2.75rem;
  }

  .qs-qty-input {
    width: 3.25rem;
    min-height: 2.75rem;
    font-size: 1rem;
  }

  .qs-guest-cols {
    display: none;
  }

  .qs-guest-row {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "tier tier"
      "first surname"
      "email email"
      "dietary remove";
    gap: 0.55rem;
    padding: 0.85rem;
    margin-bottom: 0.85rem;
  }

  .qs-guest-row .qs-guest-tier,
  .qs-guest-row [data-qs-tier] {
    grid-area: tier;
  }

  .qs-guest-row [data-qs-first-name] {
    grid-area: first;
  }

  .qs-guest-row [data-qs-surname] {
    grid-area: surname;
  }

  .qs-guest-row [data-qs-attendee-email] {
    grid-area: email;
  }

  .qs-guest-row [data-qs-dietary] {
    grid-area: dietary;
  }

  .qs-guest-row .qs-guest-remove {
    grid-area: remove;
    justify-self: end;
    align-self: center;
  }

  .qs-guest-cell {
    font-size: 1rem;
    padding: 0.75rem 0.8rem;
    min-height: 2.75rem;
  }

  .qs-step-toolbar {
    flex-wrap: wrap;
  }
}
