/**
 * Estilos de Mi Cuenta
 * WC Rewards
 */

/* Dashboard Summary */
.wc-rewards-dashboard-summary {
  margin-bottom: 30px;
}

.wc-rewards-dashboard-box {
  background: linear-gradient(135deg, #ffffff 0%, #d4d1d1 100%);
  color: #575757;
  border-radius: 4px;
  padding: 30px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.wc-rewards-dashboard-icon {
  font-size: 60px;
  line-height: 1;
  opacity: 0.9;
}

.wc-rewards-dashboard-content {
  flex: 1;
}

.wc-rewards-dashboard-content h3 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 400;
  opacity: 0.9;
}

.wc-rewards-dashboard-points {
  margin: 0 0 10px;
  font-size: 36px;
  font-weight: 700;
}

.wc-rewards-dashboard-value {
  margin: 0 0 15px;
  font-size: 14px;
  opacity: 0.9;
}

.wc-rewards-dashboard-action .button {
  background: #fff;
  color: #667eea;
  border: none;
  padding: 10px 20px;
  font-weight: 600;
  transition: transform 0.2s;
}

.wc-rewards-dashboard-action .button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* My Account Points Page */
.wc-rewards-my-account h2 {
  margin-bottom: 25px;
  color: #333;
}

/* Stats Summary */
.wc-rewards-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.wc-rewards-stat-box {
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 4px;
  padding: 20px;
  text-align: center;
  transition: all 0.3s;
}

.wc-rewards-stat-box:hover {
  border-color: #667eea;
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.wc-rewards-stat-icon {
  font-size: 40px;
  margin-bottom: 10px;
}

.wc-rewards-stat-label {
  display: block;
  font-size: 13px;
  color: #666;
  margin-bottom: 8px;
}

.wc-rewards-stat-value {
  display: block;
  font-size: 32px;
  font-weight: 700;
  color: #333;
  margin-bottom: 5px;
}

.wc-rewards-stat-money {
  display: block;
  font-size: 14px;
  color: #667eea;
  font-weight: 600;
}

.wc-rewards-current {
  border-color: #667eea;
}

.wc-rewards-current .wc-rewards-stat-value {
  color: #667eea;
}

/* Motivational Messages */
.wc-rewards-motivation {
  background: #f8f9fa;
  border-left: 4px solid #667eea;
  padding: 20px;
  margin-bottom: 30px;
  border-radius: 2px;
}

.wc-rewards-motivation p {
  margin: 0 0 15px;
  font-size: 16px;
  line-height: 1.6;
}

.wc-rewards-can-redeem {
  background: #ffffff;
  border-left-color: #46b450;
}

.wc-rewards-need-more {
  background: #fff8e1;
  border-left-color: #ff9800;
}

/* History Table */
.wc-rewards-history {
  margin-top: 30px;
}

.wc-rewards-history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 15px;
}

.wc-rewards-history h3 {
  margin: 0;
  color: #333;
}

.wc-rewards-per-page-selector {
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.wc-rewards-per-page-selector label {
  margin: 0;
  font-weight: 500;
  color: #666;
}

.wc-rewards-per-page-selector select {
  padding: 6px 30px 6px 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
}

.wc-rewards-per-page-selector select:hover {
  border-color: #667eea;
}

.wc-rewards-per-page-selector select:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.wc-rewards-total-records {
  color: #747474;
  font-size: 13px;
  font-style: normal;
  font-weight: bold;
}

.wc-rewards-history-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.wc-rewards-history-table th {
  background: #f8f9fa;
  padding: 15px 10px;
  text-align: left;
  font-weight: 600;
  border-bottom: 2px solid #ddd;
}

.wc-rewards-history-table td {
  padding: 12px 10px;
  border-bottom: 1px solid #f0f0f0;
}

.wc-rewards-history-row:hover {
  background: #f8f9fa;
}

.wc-rewards-icon {
  margin-right: 5px;
}

.wc-rewards-positive {
  color: #46b450;
  font-weight: 600;
}

.wc-rewards-negative {
  color: #dc3232;
  font-weight: 600;
}

.wc-rewards-order-link {
  margin-left: 5px;
  font-size: 12px;
  color: #667eea;
}

.wc-rewards-expired-label {
  color: #dc3232;
  font-weight: 500;
}

.wc-rewards-no-expiry {
  color: #46b450;
}

.wc-rewards-no-history {
  text-align: center;
  padding: 40px;
  color: #666;
  font-style: italic;
}

/* Cart Widget */
.wc-rewards-cart-widget {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  padding: 25px;
  margin-bottom: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.wc-rewards-cart-widget h3 {
  margin: 0 0 20px;
  color: #fff;
  font-size: 20px;
}

.wc-rewards-balance {
  margin-bottom: 20px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
}

.wc-rewards-label {
  font-size: 14px;
  opacity: 0.9;
}

.wc-rewards-points {
  font-size: 18px;
  font-weight: 700;
  margin: 0 10px;
}

.wc-rewards-value {
  font-size: 14px;
  opacity: 0.9;
}

.wc-rewards-applied {
  background: rgba(255, 255, 255, 0.1);
  padding: 15px;
  border-radius: 6px;
  margin-bottom: 15px;
}

.wc-rewards-applied p {
  margin: 0 0 15px;
}

.wc-rewards-form {
  margin: 0;
}

.wc-rewards-input-group {
  margin-bottom: 15px;
}

.wc-rewards-input-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.wc-rewards-input-group input {
  width: 100%;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.95);
  color: #333;
}

.wc-rewards-hint {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  opacity: 0.9;
}

.wc-rewards-apply-btn,
.wc-rewards-remove-btn {
  background: #fff !important;
  color: #667eea !important;
  border: none !important;
  padding: 12px 24px !important;
  font-weight: 600 !important;
  border-radius: 6px !important;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
}

.wc-rewards-apply-btn:hover,
.wc-rewards-remove-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2) !important;
}

.wc-rewards-cart-notice {
  background: #e7f3ff;
  border-left: 4px solid #667eea;
}

/* Checkout Info */
.wc-rewards-checkout-info {
  background: #e7f3ff;
  border: 1px solid #667eea;
  border-radius: 6px;
  padding: 15px;
  margin-bottom: 20px;
}

.wc-rewards-applied {
  margin: 0;
  color: #333;
  font-weight: 500;
}

.wc-rewards-points-to-earn th {
  color: #46b450;
  font-weight: 600;
}

.wc-rewards-points-to-earn td {
  color: #46b450;
  font-weight: 600;
}

/* Count Badge */
.wc-rewards-count-badge {
  display: inline-block;
  margin-left: 10px;
  padding: 4px 10px;
  background: #f0f0f0;
  color: #666;
  font-size: 12px;
  font-weight: 500;
  border-radius: 12px;
  vertical-align: middle;
}

/* Pagination */
.wc-rewards-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 25px;
  padding: 20px 0;
  border-top: 1px solid #f0f0f0;
}

.wc-rewards-page-link {
  display: inline-block;
  padding: 8px 14px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  color: #667eea;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s;
  min-width: 40px;
  text-align: center;
}

.wc-rewards-page-link:hover {
  background: #667eea;
  color: #fff;
  border-color: #667eea;
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.wc-rewards-page-link.prev,
.wc-rewards-page-link.next {
  padding: 8px 16px;
  font-weight: 600;
}

.wc-rewards-page-current {
  display: inline-block;
  padding: 8px 14px;
  background: #667eea;
  color: #fff;
  border: 1px solid #667eea;
  border-radius: 4px;
  font-weight: 600;
  min-width: 40px;
  text-align: center;
}

.wc-rewards-page-numbers {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.wc-rewards-page-dots {
  padding: 0 5px;
  color: #999;
}

/* Responsive */
@media (max-width: 768px) {
  .wc-rewards-summary {
    grid-template-columns: 1fr;
  }

  .wc-rewards-dashboard-box {
    flex-direction: column;
    text-align: center;
  }

  .wc-rewards-history-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .wc-rewards-per-page-selector {
    width: 100%;
    justify-content: space-between;
  }

  .wc-rewards-total-records {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 5px;
  }

  .wc-rewards-history-table {
    font-size: 14px;
  }

  .wc-rewards-history-table th,
  .wc-rewards-history-table td {
    padding: 8px 5px;
  }

  .wc-rewards-pagination {
    flex-wrap: wrap;
    gap: 5px;
  }

  .wc-rewards-page-link,
  .wc-rewards-page-current {
    padding: 6px 10px;
    font-size: 14px;
    min-width: 35px;
  }

  .wc-rewards-page-link.prev,
  .wc-rewards-page-link.next {
    padding: 6px 12px;
  }
}
