/* Coffee subscription page — extends style.css, uses colors.css vars only */

.roast-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.roast-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
}

.roast-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.roast-info {
  flex: 1;
  min-width: 0;
}

.roast-info-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.roast-name {
  font-weight: 600;
  color: var(--color-heading);
  font-size: 1rem;
}

.roast-price {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  white-space: nowrap;
}

.roast-description {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 0.2rem;
}

.qty-stepper {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: var(--color-white);
}

.qty-btn {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border: none;
  background-color: var(--color-bg-alt);
  color: var(--color-heading);
  font-size: 1.25rem;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
}

.qty-btn:hover,
.qty-btn:focus {
  background-color: var(--color-border);
}

.qty-stepper input[type="number"] {
  width: 56px;
  height: 44px;
  border: none;
  border-left: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
  border-radius: 0;
  text-align: center;
  font-weight: 600;
  -moz-appearance: textfield;
}

.qty-stepper input[type="number"]::-webkit-outer-spin-button,
.qty-stepper input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.subscription-total {
  margin-top: 1.1rem;
  font-size: 0.95rem;
  color: var(--color-text);
}

.subscription-total strong {
  color: var(--color-heading);
  font-size: 1.05rem;
}

/* ---------- Payment section ---------- */

.payment-section {
  background-color: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.payment-alert {
  background-color: rgba(179, 38, 30, 0.08);
  border: 1px solid var(--color-error);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
  color: var(--color-text);
  margin-top: 1rem;
}
