/**
 * DRAFT — ticket quantity two-state look (SS2)
 * Restyles existing .input-number only (same – / value / + controls).
 * qty=0  → purple "Add Ticket" | +
 * qty>=1 → purple – | n | +
 */

.ticket-quantity .input-number-wrapper .input-number.mf-qty-zero,
.ticket-quantity .input-number-wrapper .input-number.mf-qty-active {
  display: inline-flex !important;
  align-items: stretch !important;
  box-sizing: border-box !important;
  background: #55489d !important;
  border: 1px solid #55489d !important;
  border-radius: 10px !important;
  height: 40px !important;
  overflow: hidden;
  padding: 0 !important;
  gap: 0 !important;
}

/* Zero: Add Ticket | +  (minus + value hidden; same + button) */
.ticket-quantity .input-number-wrapper .input-number.mf-qty-zero {
  max-width: none !important;
  width: auto !important;
  min-width: 146px;
}

.ticket-quantity .input-number-wrapper .input-number.mf-qty-zero > button:first-child {
  display: none !important;
}

.ticket-quantity .input-number-wrapper .input-number.mf-qty-zero .ant-input-number,
.ticket-quantity .input-number-wrapper .input-number.mf-qty-zero .custom-input {
  display: none !important;
}

.ticket-quantity .input-number-wrapper .input-number.mf-qty-zero::before {
  content: "Add Ticket";
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: #fff;
  white-space: nowrap;
  border-right: 1px dashed rgba(255, 255, 255, 0.55);
  pointer-events: none;
}

.ticket-quantity .input-number-wrapper .input-number.mf-qty-zero > button:last-child {
  flex: 0 0 42px !important;
  min-width: 42px !important;
  width: 42px !important;
  height: 40px !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #fff !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
}

.ticket-quantity .input-number-wrapper .input-number.mf-qty-zero > button:last-child span {
  color: #fff !important;
}

/* Selected: equal – | n | + */
.ticket-quantity .input-number-wrapper .input-number.mf-qty-active {
  max-width: 126px !important;
  width: 126px !important;
  min-width: 126px !important;
}

.ticket-quantity .input-number-wrapper .input-number.mf-qty-active > button {
  flex: 1 1 0 !important;
  min-width: 0 !important;
  width: auto !important;
  height: 40px !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #fff !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  opacity: 1 !important;
  line-height: 1 !important;
}

.ticket-quantity .input-number-wrapper .input-number.mf-qty-active > button span {
  color: #fff !important;
}

.ticket-quantity .input-number-wrapper .input-number.mf-qty-active > button:disabled,
.ticket-quantity .input-number-wrapper .input-number.mf-qty-active > button:disabled span {
  color: rgba(255, 255, 255, 0.45) !important;
  opacity: 1 !important;
}

.ticket-quantity .input-number-wrapper .input-number.mf-qty-active > button:first-child {
  border-right: 1px dashed rgba(255, 255, 255, 0.55) !important;
}

.ticket-quantity .input-number-wrapper .input-number.mf-qty-active > button:last-child {
  border-left: 1px dashed rgba(255, 255, 255, 0.55) !important;
}

.ticket-quantity .input-number-wrapper .input-number.mf-qty-active .ant-input-number,
.ticket-quantity .input-number-wrapper .input-number.mf-qty-active .custom-input {
  flex: 1 1 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  width: auto !important;
  min-width: 0 !important;
  height: 40px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.ticket-quantity .input-number-wrapper .input-number.mf-qty-active .ant-input-number-input {
  color: #fff !important;
  font-weight: 600 !important;
  font-size: 15px !important;
  padding: 0 !important;
  text-align: center !important;
  height: 40px !important;
}
