/* Retailers page styles */

/* Main content width constraint */
.retailers-main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Table styles */
.retailers-main .table-container {
  margin-top: 1.5em;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e3e6ea;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  overflow: hidden;
}

.retailers-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95em;
}

.retailers-table thead {
  background-color: #f8f9fa;
  border-bottom: 2px solid #e3e6ea;
}

.retailers-table th {
  padding: 1em;
  text-align: left;
  font-weight: 600;
  color: #495057;
  border-bottom: 1px solid #e3e6ea;
}

.retailers-table tbody tr {
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 0.2s;
}

.retailers-table tbody tr:hover {
  background-color: #f8f9fb;
}

.retailers-table tbody tr:last-child {
  border-bottom: none;
}

.retailers-table td {
  padding: 1em;
  vertical-align: middle;
}

.retailer-name-cell {
  min-width: 200px;
}

.retailer-info {
  display: flex;
  align-items: center;
  gap: 0.5em;
  margin-bottom: 0.3em;
}

.retailer-link {
  color: #2196f3;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.retailer-link:hover {
  color: #1976d2;
  text-decoration: underline;
}

/* Star rating styles */
.star-rating {
  display: inline-block;
  text-decoration: none;
  color: inherit;
  font-size: 0.85em;
}

.star-rating:hover {
  text-decoration: none;
}

.star.filled {
  color: #FFD700;
}

.star {
  color: #ccc;
}

.review-count {
  color: #666;
  font-size: 0.9em;
  margin-left: 0.25em;
}

.no-reviews-inline {
  font-size: 0.85em;
  color: #888;
  font-style: italic;
}

.updated-cell {
  min-width: 120px;
}

.last-updated {
  font-size: 0.85em;
  color: #666;
}

.last-updated.no-products {
  color: #999;
  font-style: italic;
}

.actions-cell {
  min-width: 160px;
}

.retailer-actions {
  display: flex;
  gap: 0.5em;
}

/* Button styles */
.btn {
  padding: 0.4em 0.8em;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.85em;
  font-weight: 500;
  transition: all 0.2s;
  text-align: center;
  border: none;
  cursor: pointer;
  display: inline-block;
}

.btn-sm {
  padding: 0.4em 0.8em;
  font-size: 0.85em;
  min-width: 65px;
}

.btn-primary {
  background-color: #2196f3;
  color: #fff;
}

.btn-primary:hover {
  background-color: #1976d2;
  text-decoration: none;
  color: #fff;
}

.btn-secondary {
  background-color: #f8f9fa;
  color: #495057;
  border: 1px solid #e3e6ea;
}

.btn-secondary:hover {
  background-color: #e9ecef;
  border-color: #d1d5db;
  text-decoration: none;
  color: #495057;
}

/* Show page specific styles */
.retailer-review-main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1rem;
}

.breadcrumb {
  margin-bottom: 1em;
}

.breadcrumb-link {
  color: #2196f3;
  text-decoration: none;
  font-size: 0.9em;
}

.breadcrumb-link:hover {
  text-decoration: underline;
}

.retailer-review-header {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  padding: 1.5em 2em;
  margin-bottom: 1em;
  border: 1px solid #ececec;
}

.retailer-review-title-section h1 {
  color: #222;
  margin-bottom: 0.5em;
}

.title-and-actions {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1em;
  gap: 1em;
}

.retailer-review-actions {
  display: flex;
  gap: 0.75em;
  flex-shrink: 0;
}

.retailer-rating-summary {
  display: flex;
  align-items: center;
  gap: 0.75em;
}

.stars-display {
  display: flex;
  gap: 2px;
}

.stars-display .star {
  color: #ccc;
  font-size: 1.1em;
}

.stars-display .star.filled {
  color: #FFD700;
}

.rating-summary-text {
  color: #555;
  font-size: 1rem;
  font-weight: 500;
}

.retailer-review-container {
  margin-top: 1.5em;
}

.no-reviews-section {
  text-align: center;
  padding: 2em;
}

.no-results {
  color: #666;
  font-style: italic;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .retailers-main,
  .retailer-review-main {
    max-width: none;
    padding: 0;
  }
  
  .search-results {
    padding: 0 0.5rem;
  }
  
  .table-container {
    margin-top: 1em;
    border-radius: 8px;
    overflow-x: auto;
    width: 100%;
    max-width: none;
  }
  
  .retailers-table {
    font-size: 0.85em;
    width: 100%;
    min-width: 300px;
  }
  
  .retailers-table th,
  .retailers-table td {
    padding: 0.75em 0.4em;
    vertical-align: top;
  }
  
  .retailer-name-cell {
    width: 45%;
    min-width: 140px;
  }
  
  .actions-cell {
    width: 25%;
    min-width: 70px;
    text-align: center;
  }
  
  .updated-cell {
    width: 30%;
    min-width: 100px;
  }
  
  .retailer-info {
    margin-bottom: 0.4em;
  }
  
  .retailer-link {
    display: block;
    margin-bottom: 0.2em;
    line-height: 1.2;
  }
  
  .star-rating {
    font-size: 0.8em;
    line-height: 1;
  }
  
  .review-count {
    font-size: 0.8em;
    margin-left: 0.2em;
  }
  
  .no-reviews-inline {
    font-size: 0.75em;
    margin-top: 0.1em;
  }
  
  .retailer-actions {
    gap: 0;
    justify-content: center;
  }
  
  .btn-sm {
    padding: 0.4em 0.6em;
    font-size: 0.8em;
    min-width: 60px;
    line-height: 1;
  }
  
  .last-updated {
    font-size: 0.75em;
    line-height: 1.3;
  }
  
  .retailer-review-header {
    padding: 1em;
  }
  
  .title-and-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 1em;
  }
  
  .retailer-review-actions {
    flex-direction: column;
    gap: 0.5em;
    width: 100%;
  }
  
  .retailer-rating-summary {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5em;
  }
} 