.custom-manufacturer-selector {
  border: 1px solid #ced4da;
  border-radius: 0.375rem;
  background-color: #fff;
  padding: 0.375rem 0.75rem;
  min-height: 38px;
  position: relative;
  cursor: text;
}

.custom-manufacturer-selector:focus-within {
  border-color: #80bdff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.manufacturer-selected-items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-bottom: 0.25rem;
}

.manufacturer-selected-item {
  background-color: #007bff;
  color: white;
  border-radius: 0.25rem;
  padding: 0.25rem 0.5rem;
  display: flex;
  align-items: center;
  font-size: 0.875rem;
  cursor: move;
  user-select: none;
}

.manufacturer-selected-item:hover {
  background-color: #0056b3;
}

.manufacturer-selected-item.sortable-ghost {
  opacity: 0.4;
}

.manufacturer-selected-item .remove-btn {
  margin-left: 0.5rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  font-weight: bold;
  padding: 0;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.manufacturer-selected-item .remove-btn:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.manufacturer-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #ced4da;
  border-top: none;
  border-radius: 0 0 0.375rem 0.375rem;
  max-height: 200px;
  overflow-y: auto;
  z-index: 1000;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.manufacturer-dropdown-item {
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  border-bottom: 1px solid #e9ecef;
}

.manufacturer-dropdown-item:hover {
  background-color: #f8f9fa;
}

.manufacturer-dropdown-item.disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background-color: #f8f9fa;
}

.manufacturer-dropdown-item:last-child {
  border-bottom: none;
}

.manufacturer-placeholder {
  color: #6c757d;
  font-size: 0.875rem;
}

.manufacturer-search-input {
  border: none;
  outline: none;
  flex: 1;
  min-width: 120px;
  padding: 0.25rem;
  font-size: 0.875rem;
}

.manufacturer-input-container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  min-height: 24px;
}

.manufacturer-dropdown.hidden {
  display: none;
}

.sortable-drag {
  z-index: 1001;
}

.reorder-hint {
  font-size: 0.75rem;
  color: #6c757d;
  margin-top: 0.25rem;
  display: none;
}

.custom-manufacturer-selector:hover .reorder-hint {
  display: block;
}

.manufacturer-counter {
  font-size: 0.75rem;
  color: #6c757d;
  margin-left: auto;
}
