.rewards-page {
  padding: 0 1.5rem 2rem;
}

.rewards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.25rem;
}

.rewards-section {
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.rewards-section h3 {
  font-size: 1rem;
  margin: 0;
}

.rewards-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.rewards-section--wide {
  grid-column: 1 / -1;
}

.rewards-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.85rem;
  color: #444;
}

.rewards-field select {
  width: 100%;
  box-sizing: border-box;
  padding: 0.4rem 0.6rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 0.85rem;
}

.rewards-redeem-btn {
  align-self: flex-start;
  padding: 0.4rem 1rem;
  border-radius: 6px;
  border: none;
}

.rewards-error {
  color: #b33;
  font-size: 0.8rem;
  margin: 0;
}

.rewards-balance-list,
.rewards-list,
.rewards-history-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.rewards-balance-list li,
.rewards-list li,
.rewards-history-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: #f7f7f9;
  border-radius: 6px;
  padding: 0.4rem 0.6rem;
  font-size: 0.85rem;
}

.rewards-balance-list li {
  justify-content: space-between;
}

.rewards-list li span:first-child,
.rewards-history-list li span:first-child {
  flex: 1;
}

.rewards-cost-chip {
  background: #e9ecf5;
  color: rgb(5, 39, 103);
  border-radius: 999px;
  padding: 0.1rem 0.6rem;
  font-size: 0.75rem;
  white-space: nowrap;
}

.rewards-muted {
  color: #6c757d;
  font-size: 0.8rem;
}

@media (max-width: 640.98px) {
  .rewards-page {
    padding: 0 1rem 2rem;
  }

  .rewards-balance-list li,
  .rewards-list li,
  .rewards-history-list li {
    flex-wrap: wrap;
  }
}
