.marketplace-logo {
  width: 20px;
  height: 20px;
  margin-right: 8px;
  vertical-align: middle;
  object-fit: contain;
}

.best-price-marketplace .marketplace-logo {
  width: 24px;
  height: 24px;
}

.marketplace-name {
  display: flex;
  align-items: center;
  gap: 8px;
}

.marketplaces-table-container {
  margin-top: 20px;
  margin-bottom: 20px;
  max-height: 400px;
  overflow-y: auto;
}

.marketplaces-table {
  width: 100%;
  border-collapse: collapse;
}

.marketplaces-table th,
.marketplaces-table td {
  padding: 12px;
  border-bottom: 1px solid #eaeaea;
  text-align: left;
}

.marketplaces-table th {
  font-weight: 600;
  color: #555;
  background-color: #f5f7fa;
  position: sticky;
  top: 0;
  z-index: 1;
}

.marketplace-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.best-price-section {
  flex: 1;
}

.best-price-display {
  background-color: #f5f7fa;
  border: 1px solid #e0e0e0;
  padding: 15px;
  border-radius: 8px;
  margin-top: 10px;
}

.best-price-content {
  display: flex;
  align-items: center;
  gap: 15px;
}

.best-price-marketplace {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.best-price-marketplace img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.best-price-info {
  flex: 1;
}

.best-price-info .price {
  font-size: 18px;
  font-weight: 700;
  color: #333;
  margin: 0;
}

.best-price-info .discount {
  color: #4caf50;
  font-weight: 600;
  font-size: 14px;
}

.best-price-info .original-price {
  text-decoration: line-through;
  color: #888;
  font-size: 14px;
}

.best-price-actions {
  margin-top: 10px;
}

.empty-state {
  color: #888;
  font-style: italic;
}

.marketplace-action-cell {
  display: flex;
  gap: 8px;
}

.marketplace-row.is-best-price {
  background-color: rgba(76, 175, 80, 0.05);
}

.small.compact-btn {
  font-size: 12px;
  padding: 5px 8px;
  height: auto;
}

/* Estilos para el radio button de mejor precio */
.set-best-price {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #2196F3;
  outline: none;
  position: relative;
  cursor: pointer;
  vertical-align: middle;
}

.set-best-price:checked {
  background-color: white;
}

.set-best-price:checked::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #2196F3;
}

.admin-header h2 {
  margin: 0;
}

/* Botón de volver */
#backToProductsBtn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

#backToProductsBtn svg {
  width: 16px;
  height: 16px;
}

/* Ajustes para mejor visualización en página completa */
.marketplace-header {
  background-color: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 25px;
}

.marketplaces-table-container {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  padding: 5px;
  margin-bottom: 30px;
}

.form-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
}

/* Estilos para marketplaces */
.marketplace-summary {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.best-price-tag {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 8px;
  background-color: rgba(33, 150, 243, 0.1);
  border-radius: 4px;
}

.badge {
  display: inline-block;
  padding: 3px 6px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
}

.promo-badge {
  background-color: #ff5252;
  color: white;
}

.best-badge {
  background-color: #4caf50;
  color: white;
}

.price {
  font-weight: 600;
  color: #333;
}

.marketplace-btn {
  align-self: flex-start;
}

/* Tabla de marketplaces */
.marketplaces-table-container {
  max-height: 400px;
  overflow-y: auto;
  margin-bottom: 20px;
}

.marketplaces-table {
  width: 100%;
  border-collapse: collapse;
}

.marketplaces-table th {
  position: sticky;
  top: 0;
  background-color: #f5f5f5;
  z-index: 1;
}

/* Estilos para la visualización de precio */
.marketplace-summary {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.best-price-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.best-price-tag .price {
  font-weight: 600;
  font-size: 15px;
}

.best-price-tag small {
  color: #666;
  font-size: 12px;
}

/* Botón específico para marketplaces */
.marketplace-btn {
  align-self: flex-start;
  margin-top: 5px;
  font-size: 12px;
  background-color: #e9ecef;
  color: #495057;
}

.marketplace-btn:hover {
  background-color: #dee2e6;
}

/* Radio button para seleccionar mejor precio */
.select-best-price {
  margin-right: 0;
  cursor: pointer;
}

/* Personalizar el aspecto de campos numéricos en marketplaces */
.marketplaces-table input[type="number"] {
  max-width: 80px;
}

/* Optimización móvil para marketplaces */
@media (max-width: 768px) {
  .marketplace-header {
    flex-direction: column;
    gap: 15px;
  }
  
  .best-price-section {
    max-width: 100%;
  }
  
  .marketplaces-table-container {
    max-height: 300px;
  }
}