/* Ticket Selector Styles */
.ticket-selector {
  margin-top: 1.5rem;
  max-width: 600px;
}

/* Ticket Type Row */
.ticket-type {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
}

.ticket-type-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.ticket-type-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
}

.ticket-type-name {
  font-weight: 600;
  min-width: 100px;
}

.ticket-type-price {
  opacity: 0.8;
  font-size: 0.95rem;
}

/* Quantity Controls */
.ticket-quantity-controls {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.qty-btn {
  appearance: none;
  -webkit-appearance: none;
  padding: 0;
  box-sizing: border-box;

  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 9999px;

  display: grid;
  place-items: center;

  line-height: 1;
  flex: 0 0 38px;

  background: hsl(208, 39.3%, 47.5%);
  color: #fff;
  font-size: 1.25rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease;

  margin-right: 0.25rem;
  margin-left: 0.25rem;
}

.qty-btn:hover {
  background: hsl(208, 39.3%, 55%);
}

.qty-btn:active {
  background: hsl(208, 39.3%, 40%);
}

.qty-input {
  width: 48px;
  height: 38px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
  font-size: 1rem;
  font-weight: 600;
}

/* Attendee Name Fields */
.ticket-names {
  margin-top: 1rem;
  padding-left: 0.5rem;
  border-left: 2px solid rgba(255, 255, 255, 0.1);
}

.ticket-names:empty {
  display: none;
}

.ticket-name-field {
  margin-bottom: 0.75rem;
}

.ticket-name-field:last-child {
  margin-bottom: 0;
}

.ticket-name-field label {
  display: block;
  font-size: 0.8rem;
  margin-bottom: 0.25rem;
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.ticket-name-field input {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
  font-size: 0.95rem;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.ticket-name-field input:focus {
  outline: none;
  border-color: hsl(208, 39.3%, 57.5%);
  background: rgba(255, 255, 255, 0.12);
}

.ticket-name-field input::placeholder {
  opacity: 0.5;
}

/* Footer: Total + Button */
.ticket-selector-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 1rem;
  margin-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.ticket-total {
  font-size: 1.1rem;
}

.ticket-total strong {
  font-size: 1.25rem;
}

/* Add to Cart Button */
.ticket-selector .btn-add-to-cart {
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  background: hsl(208, 39.3%, 47.5%);
  color: white;
  cursor: pointer;
  transition: background-color 0.15s ease, opacity 0.15s ease;
  white-space: nowrap;
  flex-shrink: 0;
  max-width: 100%;
}

.ticket-selector .btn-add-to-cart:hover:not(:disabled) {
  background: hsl(208, 39.3%, 55%);
}

.ticket-selector .btn-add-to-cart:active:not(:disabled) {
  background: hsl(208, 39.3%, 40%);
}

.ticket-selector .btn-add-to-cart:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Responsive */
@media (max-width: 500px) {
  .ticket-type-header {
    flex-wrap: wrap;
  }

  .ticket-type-info {
    width: 100%;
    margin-bottom: 0.5rem;
  }

  .ticket-quantity-controls {
    width: 100%;
    justify-content: flex-end;
  }

  .ticket-selector-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .ticket-total {
    text-align: center;
  }

  .ticket-selector .btn-add-to-cart {
    width: auto;
    white-space: normal;
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
    align-self: center;
  }
}
