/*
 * Descuentos por cantidad en la miniatura: una fila de etiquetas pequeñas que no
 * rompe la altura de las tarjetas. Usa los colores del tema (variables de Bootstrap 5).
 */
.cwqd {
  margin-top: 0.375rem;
}

.cwqd__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cwqd__item {
  margin: 0;
}

.cwqd__tier,
.cwqd__more {
  display: inline-flex;
  align-items: baseline;
  gap: 0.25rem;
  margin: 0;
  padding: 0.125rem 0.4375rem;
  border: 1px solid var(--bs-border-color, #dee2e6);
  border-radius: 0.25rem;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.75rem;
  line-height: 1.4;
  white-space: nowrap;
  text-decoration: none;
}

button.cwqd__tier {
  cursor: pointer;
}

.cwqd__qty {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.cwqd__value {
  color: var(--bs-success, #198754);
  font-variant-numeric: tabular-nums;
}

button.cwqd__tier:hover,
.cwqd__more:hover {
  border-color: var(--bs-primary, currentColor);
}

button.cwqd__tier:focus-visible,
.cwqd__more:focus-visible {
  outline: 2px solid var(--bs-primary, currentColor);
  outline-offset: 1px;
}

/* Tramo que se aplica con la cantidad elegida */
.cwqd__tier[aria-pressed="true"] {
  border-color: var(--bs-primary, #24b9d7);
  background: var(--bs-primary, #24b9d7);
  color: var(--bs-white, #fff);
}

.cwqd__tier[aria-pressed="true"] .cwqd__value {
  color: inherit;
}

.cwqd__hint {
  margin: 0.25rem 0 0;
  font-size: 0.75rem;
  line-height: 1.3;
  color: var(--bs-secondary-color, #6c757d);
}

@media (prefers-reduced-motion: no-preference) {
  .cwqd__tier {
    transition: background-color 0.12s ease, border-color 0.12s ease, color 0.12s ease;
  }
}
