/*
 * RJDH Loyalty – Frontend UI Styles
 *
 * This stylesheet improves the appearance of the customer facing loyalty
 * account pages and shortcodes. It is scoped to elements that the plugin
 * outputs and does not override global WooCommerce or theme styles.
 */

.rjdh-loyalty-account {
  background: #ffffff;
  padding: 20px;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  margin-bottom: 30px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.rjdh-loyalty-account h2,
.rjdh-loyalty-account h3 {
  margin-top: 1em;
  margin-bottom: 0.5em;
  font-weight: 600;
}
.rjdh-loyalty-account table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5em;
}
.rjdh-loyalty-account table th,
.rjdh-loyalty-account table td {
  padding: 10px;
  border-bottom: 1px solid #eee;
}
.rjdh-loyalty-account table tbody tr:nth-child(odd) {
  background: #fafafa;
}
.rjdh-loyalty-account ul {
  list-style: disc inside;
  margin-left: 20px;
  margin-bottom: 1em;
}
.rjdh-loyalty-account .rjdh-loyalty-redeem-form input[type="number"],
.rjdh-loyalty-account .rjdh-loyalty-redeem-form select {
  width: 100%;
  max-width: 300px;
  padding: 5px;
  margin-top: 5px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}
.rjdh-loyalty-account .rjdh-loyalty-redeem-form button {
  padding: 6px 12px;
}
.rjdh-loyalty-account .rjdh-loyalty-success {
  color: #155724;
  background: #d4edda;
  border: 1px solid #c3e6cb;
  padding: 10px;
  border-radius: 4px;
  margin-bottom: 15px;
}
.rjdh-loyalty-account .rjdh-loyalty-error {
  color: #721c24;
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  padding: 10px;
  border-radius: 4px;
  margin-bottom: 15px;
}

/* Progress bar styling */
.rjdh-loyalty-account .rjdh-progress-container {
  background: #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
  height: 20px;
  margin-top: 5px;
  margin-bottom: 10px;
}
.rjdh-loyalty-account .rjdh-progress-bar {
  background: #4caf50;
  height: 100%;
  transition: width 0.4s ease;
}