/* 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;
}

.express-pay-row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

@media (min-width: 480px) {
  .express-pay-row {
    flex-direction: row;
  }
}

.pay-button-placeholder {
  flex: 1;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  cursor: not-allowed;
  opacity: 0.9;
  border: none;
}

.pay-button-apple {
  background-color: var(--color-black);
  color: var(--color-white);
}

.pay-button-google {
  background-color: var(--color-white);
  color: var(--color-charcoal);
  border: 1px solid var(--color-border);
}

.divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  margin: 1rem 0;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background-color: var(--color-border);
}

.stripe-element-placeholder {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background-color: var(--color-white);
  padding: 0.85rem;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.mock-notice {
  background-color: rgba(193, 104, 43, 0.1);
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  font-size: 0.85rem;
  color: var(--color-text);
  margin-bottom: 1.5rem;
}
